作者 yangfu

角色组织修改

... ... @@ -47,7 +47,7 @@ spec:
- cn-hangzhou.i-bp1hyp5oips9cdwxxgxy
containers:
- name: allied-creation-gateway
image: 192.168.0.243:5000/mmm/allied-creation-gateway:dev
image: 192.168.0.243:5000/mmm/allied-creation-gateway:test
imagePullPolicy: Always
ports:
- containerPort: 8082
... ...
... ... @@ -38,6 +38,7 @@ type UserOrg struct {
type UserRole struct {
RoleID string `json:"roleId"`
OrgId int64 `json:"orgId,string"`
RoleName string `json:"roleName"`
OrgName string `json:"orgName"`
RoleType int `json:"roleType"`
... ...
... ... @@ -72,6 +72,7 @@ func (usersService *UsersService) CompanyUserGet(companyUserGetQuery *query.Comp
for _, v := range resultUser.UserRole {
userRole = append(userRole, dto.UserRole{
RoleID: strconv.Itoa(v.RoleID),
OrgId: v.OrgId,
RoleName: v.RoleName,
OrgName: v.Ext.OrgName,
RoleType: v.RoleType,
... ...
... ... @@ -48,6 +48,7 @@ type UserDetail struct {
RoleID int `json:"roleId"`
RoleName string `json:"roleName"`
RoleType int `json:"roleType"`
OrgId int64 `json:"orgId"`
Ext struct {
OrgName string `json:"orgName"`
} `json:"ext,omitempty"`
... ...