feat:完善项目信息

This commit is contained in:
henry
2022-01-21 14:16:48 +08:00
parent 1c027dd2d1
commit adb5bd7283
9 changed files with 158 additions and 8 deletions

View File

@ -195,6 +195,20 @@ func (*Technology) ProductDetail(c *gin.Context) {
api.APIResponse(err, data)(c)
}
func (*Technology) ProductExamine(c *gin.Context) {
form := &struct {
api.TenantIDStringForm
Status int `json:"status" form:"status"`
Remark string `json:"remark" form:"remark"`
}{}
if err := api.Bind(form)(c); err != nil {
api.APIFailure(err.(error))(c)
return
}
err := technology.NewProduct()(api.GetSession()(c).(*session.Admin)).Examine(form.Convert(), form.Status, form.Remark)
api.APIResponse(err)(c)
}
func (*Technology) ProductDelete(c *gin.Context) {
form := new(api.IDStringForm)
@ -220,6 +234,20 @@ func (*Technology) Achievement(c *gin.Context) {
api.APIResponse(err, data)(c)
}
func (*Technology) AchievementExamine(c *gin.Context) {
form := &struct {
api.TenantIDStringForm
Status int `json:"status" form:"status"`
Remark string `json:"remark" form:"remark"`
}{}
if err := api.Bind(form)(c); err != nil {
api.APIFailure(err.(error))(c)
return
}
err := technology.NewAchievement()(api.GetSession()(c).(*session.Admin)).Examine(form.Convert(), form.Status, form.Remark)
api.APIResponse(err)(c)
}
func (*Technology) AchievementDetail(c *gin.Context) {
form := new(api.IDStringForm)
@ -269,6 +297,20 @@ func (*Technology) DemandDetail(c *gin.Context) {
api.APIResponse(err, data)(c)
}
func (*Technology) DemandExamine(c *gin.Context) {
form := &struct {
api.TenantIDStringForm
Status int `json:"status" form:"status"`
Remark string `json:"remark" form:"remark"`
}{}
if err := api.Bind(form)(c); err != nil {
api.APIFailure(err.(error))(c)
return
}
err := technology.NewDemand()(api.GetSession()(c).(*session.Admin)).Examine(form.Convert(), form.Status, form.Remark)
api.APIResponse(err)(c)
}
func (*Technology) DemandDelete(c *gin.Context) {
form := new(api.IDStringForm)