diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-17 20:04:58 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-17 20:04:58 +0800 |
commit | a30e72323d1f8f6be7716a0548d99ef06807172b (patch) | |
tree | ea47ee0ed1836c47edd13267aefab1daf14fefe0 /modules/auth/repo.go | |
parent | 914ce405af975a6bf65cedd279e1bf75ca1671d5 (diff) | |
parent | 5bc2a1a6f98ae42ab5c30299d26082ffae54b859 (diff) |
merge
Diffstat (limited to 'modules/auth/repo.go')
-rw-r--r-- | modules/auth/repo.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/modules/auth/repo.go b/modules/auth/repo.go index ac1b6b69..2cc93744 100644 --- a/modules/auth/repo.go +++ b/modules/auth/repo.go @@ -17,7 +17,6 @@ import ( ) type CreateRepoForm struct { - UserId int64 `form:"userId"` RepoName string `form:"repo" binding:"Required;AlphaDash"` Visibility string `form:"visibility"` Description string `form:"desc" binding:"MaxSize(100)"` @@ -52,9 +51,3 @@ func (f *CreateRepoForm) Validate(errors *binding.Errors, req *http.Request, con validate(errors, data, f) } - -type DeleteRepoForm struct { - UserId int64 `form:"userId" binding:"Required"` - UserName string `form:"userName" binding:"Required"` - RepoId int64 `form:"repoId" binding:"Required"` -} |