feat:完善项目管理,增加专家列表信息

This commit is contained in:
henry
2021-12-10 18:16:41 +08:00
parent 2ee564d540
commit fdcd46bf49
14 changed files with 265 additions and 109 deletions

View File

@ -1,30 +0,0 @@
package api
import (
"SciencesServer/app/api/enterprise/controller/identity"
"SciencesServer/app/basic/api"
"SciencesServer/app/session"
"github.com/gin-gonic/gin"
)
type Identity struct{}
// Expert 专家信息
func (*Identity) Expert(c *gin.Context) {
form := &struct {
Name string `json:"name" form:"name"`
Mobile string `json:"mobile" form:"mobile"`
api.PageForm
}{}
if err := api.Bind(form)(c); err != nil {
api.APIFailure(err.(error))(c)
return
}
data, err := identity.NewInstance()(api.GetSession()(c).(*session.Enterprise), api.GetLocal()(c).(string)).
Expert(form.Name, form.Mobile, form.Page, form.PageSize)
api.APIResponse(err, data)(c)
}
func (*Identity) Company(c *gin.Context) {
}

View File

@ -190,3 +190,20 @@ func (*Manage) CompanyProduct(c *gin.Context) {
Product(form.Convert(), form.Page, form.PageSize)
api.APIResponse(err, data)(c)
}
// 专家信息
func (*Manage) Expert(c *gin.Context) {
form := &struct {
Name string `json:"name" form:"name"`
Mobile string `json:"mobile" form:"mobile"`
api.PageForm
}{}
if err := api.Bind(form)(c); err != nil {
api.APIFailure(err.(error))(c)
return
}
data, err := manage.NewExpert()(api.GetSession()(c).(*session.Enterprise), api.GetLocal()(c).(string)).
Instance(form.Name, form.Mobile, form.Page, form.PageSize)
api.APIResponse(err, data)(c)
}