feat:完善项目

This commit is contained in:
henry
2021-11-09 18:38:57 +08:00
parent 47fe7e5bad
commit fb77e15579
6 changed files with 110 additions and 35 deletions

View File

@ -125,8 +125,17 @@ func (c *Instance) Person(materialID uint64, kind, page, pageSize int) (*basic.P
}
// Workbench 工作台
func (c *Instance) Workbench() {
func (c *Instance) Workbench(materialID uint64, kind, page, pageSize int) (*basic.PageDataResponse, error) {
// 查询用户角色信息
mSysUserRole := model.NewSysUserRole()
roleIDs := make([]string, 0)
err := model2.Pluck(mSysUserRole.SysUserRole, "id", &roleIDs, model2.NewWhere("uid", c.UID))
if err != nil {
return nil, err
}
return nil, nil
}
func (c *Instance) Detail(id uint64) (interface{}, error) {