feat:完善信息

This commit is contained in:
henry
2021-10-14 16:40:23 +08:00
parent 456b8a849e
commit 1fa9adbd25
2 changed files with 40 additions and 1 deletions

View File

@ -43,7 +43,7 @@ type (
func (a *Technology) Paper(c *gin.Context) {
form := &struct {
Title string `json:"title"`
Title string `json:"title" form:"title"`
api.PageForm
}{}
if err := api.Bind(form)(c); err != nil {
@ -113,6 +113,18 @@ func (a *Technology) Demand(c *gin.Context) {
api.APIResponse(err, data)(c)
}
func (a *Technology) DemandDetail(c *gin.Context) {
form := new(api.IDStringForm)
if err := api.Bind(form)(c); err != nil {
api.APIFailure(err.(error))(c)
return
}
data, err := technology.NewDemand()(api.GetSession()(c).(*service.SessionEnterprise), api.GetLocal()(c).(string)).
Detail(form.Convert())
api.APIResponse(err, data)(c)
}
func (a *Technology) DemandAdd(c *gin.Context) {
form := new(demandForm)