feat:完善信息
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user