Update create repo
This commit is contained in:
parent
5b5d54621e
commit
b4727c7601
5 changed files with 34 additions and 30 deletions
|
@ -18,7 +18,7 @@ import (
|
|||
|
||||
type CreateRepoForm struct {
|
||||
UserId int64 `form:"userId"`
|
||||
RepoName string `form:"repo" binding:"Required"`
|
||||
RepoName string `form:"repo" binding:"Required;AlphaDash"`
|
||||
Visibility string `form:"visibility"`
|
||||
Description string `form:"desc" binding:"MaxSize(100)"`
|
||||
Language string `form:"language"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue