feat:完善企业信息

This commit is contained in:
henry
2021-12-08 10:07:54 +08:00
parent 95e8fdb9bb
commit 10a7e9cacd
8 changed files with 81 additions and 26 deletions

View File

@ -503,6 +503,20 @@ func (*Technology) Product(c *gin.Context) {
api.APIResponse(err, data)(c)
}
func (*Technology) ProductVisit(c *gin.Context) {
form := &struct {
api.IDStringForm
api.PageForm
}{}
if err := api.Bind(form)(c); err != nil {
api.APIFailure(err.(error))(c)
return
}
data, err := technology2.NewProduct()(api.GetSession()(c).(*session.Enterprise), api.GetLocal()(c).(string)).
Visit(form.Convert(), form.Page, form.PageSize)
api.APIResponse(err, data)(c)
}
func (*Technology) ProductAdd(c *gin.Context) {
form := new(productForm)