feat:完善项目管理
This commit is contained in:
@ -221,3 +221,17 @@ func (*Manage) ResearchLaboratory(c *gin.Context) {
|
||||
Laboratory(form.Name, form.Page, form.PageSize)
|
||||
api.APIResponse(err, data)(c)
|
||||
}
|
||||
|
||||
func (*Manage) ResearchVisit(c *gin.Context) {
|
||||
form := &struct {
|
||||
CompanyName string `json:"company_name" form:"company_name"`
|
||||
api.PageForm
|
||||
}{}
|
||||
if err := api.Bind(form)(c); err != nil {
|
||||
api.APIFailure(err.(error))(c)
|
||||
return
|
||||
}
|
||||
data, err := manage.NewResearch()(api.GetSession()(c).(*session.Enterprise), api.GetLocal()(c).(string)).
|
||||
Visit(form.Page, form.PageSize)
|
||||
api.APIResponse(err, data)(c)
|
||||
}
|
||||
|
Reference in New Issue
Block a user