正在显示
3 个修改的文件
包含
29 行增加
和
13 行删除
@@ -9,24 +9,32 @@ type CompanyUserItem struct { | @@ -9,24 +9,32 @@ type CompanyUserItem struct { | ||
9 | UserId string `json:"userId"` | 9 | UserId string `json:"userId"` |
10 | UserName string `json:"userName"` | 10 | UserName string `json:"userName"` |
11 | UserType int `json:"userType"` | 11 | UserType int `json:"userType"` |
12 | + // 员工类型 1:固定 2:派遣 3.临时 | ||
13 | + EmployeeType int `json:"employeeType"` | ||
14 | + // IC卡号 | ||
15 | + IcCardNumber string `json:"icCardNumber"` | ||
12 | AuthFlag bool `json:"authFlag"` // 1:可操作(编辑,修改等) | 16 | AuthFlag bool `json:"authFlag"` // 1:可操作(编辑,修改等) |
13 | } | 17 | } |
14 | 18 | ||
15 | //CompanyUserInfo 用户数据详情 | 19 | //CompanyUserInfo 用户数据详情 |
16 | type CompanyUserInfo struct { | 20 | type CompanyUserInfo struct { |
17 | - Email string `json:"email"` | ||
18 | - Phone string `json:"phone"` | ||
19 | - Avatar string `json:"avatar"` | ||
20 | - EnableStatus int `json:"enableStatus"` | ||
21 | - UsersCode string `json:"userCode"` | ||
22 | - UsersID string `json:"userId"` | ||
23 | - UsersName string `json:"userName"` | ||
24 | - OrgID string `json:"orgId"` | ||
25 | - OrgName string `json:"orgName"` | ||
26 | - DepartmentID string `json:"departmentId"` | ||
27 | - DepartmentName string `json:"departmentName"` | ||
28 | - UsersOrg []UserOrg `json:"userOrg"` | ||
29 | - UsersRole []UserRole `json:"userRole"` | 21 | + Email string `json:"email"` |
22 | + Phone string `json:"phone"` | ||
23 | + Avatar string `json:"avatar"` | ||
24 | + EnableStatus int `json:"enableStatus"` | ||
25 | + UsersCode string `json:"userCode"` | ||
26 | + UsersID string `json:"userId"` | ||
27 | + UsersName string `json:"userName"` | ||
28 | + OrgID string `json:"orgId"` | ||
29 | + OrgName string `json:"orgName"` | ||
30 | + DepartmentID string `json:"departmentId"` | ||
31 | + DepartmentName string `json:"departmentName"` | ||
32 | + // 员工类型 1:固定 2:派遣 3.临时 | ||
33 | + EmployeeType int `json:"employeeType"` | ||
34 | + // IC卡号 | ||
35 | + IcCardNumber string `json:"icCardNumber"` | ||
36 | + UsersOrg []UserOrg `json:"userOrg"` | ||
37 | + UsersRole []UserRole `json:"userRole"` | ||
30 | } | 38 | } |
31 | 39 | ||
32 | type UserOrg struct { | 40 | type UserOrg struct { |
@@ -93,6 +93,8 @@ func (usersService *UsersService) CompanyUserGet(companyUserGetQuery *query.Comp | @@ -93,6 +93,8 @@ func (usersService *UsersService) CompanyUserGet(companyUserGetQuery *query.Comp | ||
93 | DepartmentName: resultUser.Department.DepartmentName, | 93 | DepartmentName: resultUser.Department.DepartmentName, |
94 | UsersOrg: usersOrg, | 94 | UsersOrg: usersOrg, |
95 | UsersRole: userRole, | 95 | UsersRole: userRole, |
96 | + EmployeeType: resultUser.UserInfo.EmployeeType, | ||
97 | + IcCardNumber: resultUser.UserInfo.IcCardNumber, | ||
96 | } | 98 | } |
97 | 99 | ||
98 | datas := map[string]interface{}{ | 100 | datas := map[string]interface{}{ |
@@ -216,6 +218,8 @@ func (usersService *UsersService) CompanyUserList(companyUserListQuery *query.Co | @@ -216,6 +218,8 @@ func (usersService *UsersService) CompanyUserList(companyUserListQuery *query.Co | ||
216 | UserId: strconv.Itoa(v.UserId), | 218 | UserId: strconv.Itoa(v.UserId), |
217 | UserName: v.UserInfo.UserName, | 219 | UserName: v.UserInfo.UserName, |
218 | UserType: v.UserType, | 220 | UserType: v.UserType, |
221 | + EmployeeType: v.UserInfo.EmployeeType, | ||
222 | + IcCardNumber: v.UserInfo.IcCardNumber, | ||
219 | } | 223 | } |
220 | if v.Org.OrgId == int(companyUserListQuery.Operator.OrgId) { | 224 | if v.Org.OrgId == int(companyUserListQuery.Operator.OrgId) { |
221 | item.AuthFlag = true | 225 | item.AuthFlag = true |
@@ -23,6 +23,10 @@ type UserDetail struct { | @@ -23,6 +23,10 @@ type UserDetail struct { | ||
23 | Email string `json:"email"` | 23 | Email string `json:"email"` |
24 | UserName string `json:"userName"` | 24 | UserName string `json:"userName"` |
25 | Avatar string `json:"avatar"` | 25 | Avatar string `json:"avatar"` |
26 | + // 员工类型 1:固定 2:派遣 3.临时 | ||
27 | + EmployeeType int `json:"employeeType,omitempty"` | ||
28 | + // IC卡号 | ||
29 | + IcCardNumber string `json:"icCardNumber,omitempty"` | ||
26 | } `json:"userInfo,omitempty"` | 30 | } `json:"userInfo,omitempty"` |
27 | Company *struct { | 31 | Company *struct { |
28 | CompanyId int `json:"companyId"` | 32 | CompanyId int `json:"companyId"` |
-
请 注册 或 登录 后发表评论