diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-13 14:50:32 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-13 14:50:32 +0800 |
commit | 1902500b0dcefa20627129b48c8131da8798c169 (patch) | |
tree | 1a960236b5de97bafaddc76e4bc18830ccc30e3d /modules | |
parent | 3a1fa012f7069c5d6b606a3330ec68abdcc125ed (diff) | |
parent | 27104ac89a4c489809068ae5c6dbe383ce7fbde2 (diff) |
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/repo.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/auth/repo.go b/modules/auth/repo.go index d7696646..5fe091d6 100644 --- a/modules/auth/repo.go +++ b/modules/auth/repo.go @@ -56,6 +56,12 @@ 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"` +} + func RepoAssignment(redirect bool) martini.Handler { return func(params martini.Params, r render.Render, data base.TmplData, session sessions.Session) { // assign false first |