mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Add delete repo
This commit is contained in:
1 parent
18ba149137
commit
27104ac89a
10 files changed
+34
-18
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user