diff --git a/conf/corp/1002.json b/conf/corp/1002.json index 540548d..2572145 100644 --- a/conf/corp/1002.json +++ b/conf/corp/1002.json @@ -1,6 +1,33 @@ { "salary_latest": 14, "staff_config": [ + { + "name": "用户角色", + "key": "user_role", + "type": "checkbox", + "option": [{ + "name": "管理员", + "value": "1" + },{ + "name": "财务", + "value": "2" + },{ + "name": "后勤", + "value": "1" + }] + }, + { + "name": "性别", + "key": "user_sex", + "type": "radio", + "option": [{ + "name": "男", + "value": "1" + },{ + "name": "女", + "value": "2" + }] + }, { "name": "目标绩效", "key": "perft_target" diff --git a/server/service/staff_user.go b/server/service/staff_user.go index daa26cc..a8ccc1c 100644 --- a/server/service/staff_user.go +++ b/server/service/staff_user.go @@ -83,6 +83,7 @@ func (s *StaffUser) List(sess *session.AdminSession, req *api.StaffListReq) (int } return total, items } + func (s *StaffUser) Create(sess *session.AdminSession, req *api.StaffCreateReq) { staffUser, err := dao.NewStaffUserDao().GetByUsername(sess.GetAdmin().CorpId, req.Username)