feat:完善项目信息

This commit is contained in:
henry
2022-01-19 14:22:44 +08:00
parent 61d345b571
commit 417d7961ec
9 changed files with 128 additions and 25 deletions

View File

@ -71,6 +71,19 @@ func (*Manage) CompanyDetail(c *gin.Context) {
api.APIResponse(err, data)(c)
}
func (*Manage) CompanyForm(c *gin.Context) {
form := &struct {
manageForm
config.IdentityForCompany
}{}
if err := api.Bind(form)(c); err != nil {
api.APIFailure(err.(error))(c)
return
}
err := manage.NewCompany()(api.GetSession()(c).(*session.Admin)).Form(form.bind(), &form.IdentityForCompany)
api.APIResponse(err)(c)
}
func (*Manage) CompanyExamine(c *gin.Context) {
form := &struct {
manageExamineForm