正在显示
4 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -9,7 +9,7 @@ type RoleItem struct { | @@ -9,7 +9,7 @@ type RoleItem struct { | ||
| 9 | OrgName string `json:"orgName"` | 9 | OrgName string `json:"orgName"` |
| 10 | RoleType int `json:"roleType"` | 10 | RoleType int `json:"roleType"` |
| 11 | Ext Ext `json:"ext"` | 11 | Ext Ext `json:"ext"` |
| 12 | - AuthFlag int `json:"authFlag"` // 1:可操作(编辑,修改等) | 12 | + AuthFlag bool `json:"authFlag"` // 1:可操作(编辑,修改等) |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | type Ext struct { | 15 | type Ext struct { |
| @@ -109,7 +109,7 @@ func (rolesService *RolesService) RoleList(roleListQuery *query.RoleListQuery) ( | @@ -109,7 +109,7 @@ func (rolesService *RolesService) RoleList(roleListQuery *query.RoleListQuery) ( | ||
| 109 | Ext: v.Ext, | 109 | Ext: v.Ext, |
| 110 | } | 110 | } |
| 111 | if int64(v.OrgID) == roleListQuery.Operator.OrgId { | 111 | if int64(v.OrgID) == roleListQuery.Operator.OrgId { |
| 112 | - item.AuthFlag = 1 | 112 | + item.AuthFlag = true |
| 113 | } | 113 | } |
| 114 | result = append(result, item) | 114 | result = append(result, item) |
| 115 | } | 115 | } |
| @@ -9,7 +9,7 @@ type CompanyUserItem struct { | @@ -9,7 +9,7 @@ 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 | - AuthFlag int `json:"authFlag"` // 1:可操作(编辑,修改等) | 12 | + AuthFlag bool `json:"authFlag"` // 1:可操作(编辑,修改等) |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | //CompanyUserInfo 用户数据详情 | 15 | //CompanyUserInfo 用户数据详情 |
| @@ -85,5 +85,5 @@ type CooperationUserItem struct { | @@ -85,5 +85,5 @@ type CooperationUserItem struct { | ||
| 85 | UserName string `json:"userName"` | 85 | UserName string `json:"userName"` |
| 86 | OrgName string `json:"orgName"` | 86 | OrgName string `json:"orgName"` |
| 87 | OrgId string `json:"orgId"` | 87 | OrgId string `json:"orgId"` |
| 88 | - AuthFlag int `json:"authFlag"` // 1:可操作(编辑,修改等) | 88 | + AuthFlag bool `json:"authFlag"` // 1:可操作(编辑,修改等) |
| 89 | } | 89 | } |
| @@ -211,7 +211,7 @@ func (usersService *UsersService) CompanyUserList(companyUserListQuery *query.Co | @@ -211,7 +211,7 @@ func (usersService *UsersService) CompanyUserList(companyUserListQuery *query.Co | ||
| 211 | UserType: v.UserType, | 211 | UserType: v.UserType, |
| 212 | } | 212 | } |
| 213 | if v.Org.OrgId == int(companyUserListQuery.Operator.OrgId) { | 213 | if v.Org.OrgId == int(companyUserListQuery.Operator.OrgId) { |
| 214 | - item.AuthFlag = 1 | 214 | + item.AuthFlag = true |
| 215 | } | 215 | } |
| 216 | listData = append(listData, item) | 216 | listData = append(listData, item) |
| 217 | } | 217 | } |
| @@ -402,7 +402,7 @@ func (usersService *UsersService) CooperationUserList(cooperationUserListQuery * | @@ -402,7 +402,7 @@ func (usersService *UsersService) CooperationUserList(cooperationUserListQuery * | ||
| 402 | OrgId: strconv.Itoa(v.Org.OrgId), | 402 | OrgId: strconv.Itoa(v.Org.OrgId), |
| 403 | } | 403 | } |
| 404 | if v.Org.OrgId == int(cooperationUserListQuery.Operator.OrgId) { | 404 | if v.Org.OrgId == int(cooperationUserListQuery.Operator.OrgId) { |
| 405 | - item.AuthFlag = 1 | 405 | + item.AuthFlag = true |
| 406 | } | 406 | } |
| 407 | if !v.CooperationInfo.CooperationDeadline.IsZero() && v.CooperationInfo.CooperationDeadline.After(time.Unix(1136044800, 0)) { | 407 | if !v.CooperationInfo.CooperationDeadline.IsZero() && v.CooperationInfo.CooperationDeadline.After(time.Unix(1136044800, 0)) { |
| 408 | item.CooperationDeadline = v.CooperationInfo.CooperationDeadline.Format("2006-01-02") | 408 | item.CooperationDeadline = v.CooperationInfo.CooperationDeadline.Format("2006-01-02") |
-
请 注册 或 登录 后发表评论