...
|
...
|
@@ -127,10 +127,13 @@ func (usersService *UsersService) CompanyUserAdd(companyUserAddCommand *command. |
|
|
EnableStatus: companyUserAddCommand.EnableStatus,
|
|
|
UserName: companyUserAddCommand.UsersName,
|
|
|
Phone: companyUserAddCommand.Phone,
|
|
|
Avatar: companyUserAddCommand.Avator,
|
|
|
Email: companyUserAddCommand.Avator,
|
|
|
Avatar: companyUserAddCommand.Avatar,
|
|
|
Email: companyUserAddCommand.Avatar,
|
|
|
Password: "123456", //TODO 填充密码
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
}
|
|
|
|
|
|
data := struct {
|
|
|
UserId string `json:"userId"`
|
...
|
...
|
@@ -169,7 +172,7 @@ func (usersService *UsersService) CompanyUserList(companyUserListQuery *query.Co |
|
|
Offset: (companyUserListQuery.PageNumber - 1) * companyUserListQuery.PageSize,
|
|
|
Limit: companyUserListQuery.PageSize,
|
|
|
CompanyId: companyUserListQuery.Operator.CompanyId,
|
|
|
OrganizationId: companyUserListQuery.Operator.OrgId,
|
|
|
OrganizationId: 0,
|
|
|
DepartmentId: 0,
|
|
|
UserName: companyUserListQuery.UserName,
|
|
|
DepName: companyUserListQuery.DepartmentName,
|
...
|
...
|
|