This commit is contained in:
jiangyong27 2025-03-28 18:08:02 +08:00
parent 4048e2d5db
commit 196ac17251
2 changed files with 28 additions and 0 deletions

View File

@ -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"

View File

@ -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)