切换导航条
此项目
正在载入...
登录
mmm-go
/
partnermg
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
唐旭辉
5 years ago
提交
465ac5769af0d39ef3e716fc8f98037e80384f92
1 个父辈
6942e9fa
添加注释
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
7 行增加
和
2 行删除
pkg/application/unifiedUserCenter/service/company.go
pkg/application/unifiedUserCenter/service/employee.go
pkg/infrastructure/serviceGateway/httplib_usercenter_service.go
pkg/application/unifiedUserCenter/service/company.go
查看文件 @
465ac57
...
...
@@ -77,6 +77,7 @@ func (service SyncCompanyService) DoAction(action string, byteData []byte) error
}
}
//addCompany 添加公司
func
(
service
SyncCompanyService
)
addCompany
(
data
CompanytData
)
error
{
var
(
transactionContext
,
_
=
factory
.
CreateTransactionContext
(
nil
)
...
...
@@ -145,6 +146,7 @@ func (service SyncCompanyService) addCompany(data CompanytData) error {
return
nil
}
//updateCompany 更新公司数据
func
(
service
SyncCompanyService
)
updateCompany
(
data
CompanytData
)
error
{
var
(
transactionContext
,
_
=
factory
.
CreateTransactionContext
(
nil
)
...
...
@@ -216,6 +218,7 @@ func (service SyncCompanyService) updateCompany(data CompanytData) error {
return
nil
}
//updateCompanyCharge 变更公司的负责人
func
(
service
SyncCompanyService
)
updateCompanyCharge
(
data
CompanyCharge
)
error
{
var
(
transactionContext
,
_
=
factory
.
CreateTransactionContext
(
nil
)
...
...
pkg/application/unifiedUserCenter/service/employee.go
查看文件 @
465ac57
...
...
@@ -155,6 +155,7 @@ func (service SyncEmployeeService) DoAction(action string, byteData []byte) erro
}
}
//addEmployeeData 添加用户
func
(
service
SyncEmployeeService
)
addEmployeeData
(
datas
[]
EmployeeData
)
error
{
var
(
transactionContext
,
_
=
factory
.
CreateTransactionContext
(
nil
)
...
...
@@ -203,6 +204,7 @@ func (service SyncEmployeeService) addEmployeeData(datas []EmployeeData) error {
return
err
}
// updateEmployeeData 更新用户
func
(
service
SyncEmployeeService
)
updateEmployeeData
(
datas
[]
EmployeeData
)
error
{
var
(
transactionContext
,
_
=
factory
.
CreateTransactionContext
(
nil
)
...
...
@@ -280,7 +282,7 @@ func (service SyncEmployeeService) deleteEmployeeData(data DeleteUserData) error
return
err
}
//
U
pdateUsersStatus 批量更新用户的状态
//
u
pdateUsersStatus 批量更新用户的状态
func
(
service
SyncEmployeeService
)
updateUsersStatus
(
data
ForbidAllowUserData
)
error
{
var
(
transactionContext
,
_
=
factory
.
CreateTransactionContext
(
nil
)
...
...
pkg/infrastructure/serviceGateway/httplib_usercenter_service.go
查看文件 @
465ac57
...
...
@@ -90,7 +90,7 @@ type ResponseLogin struct {
Imtoken
string
`json:"imtoken"`
//网易云imtoken
Accid
int64
`json:"accid"`
//网易云id
CustomerAccount
int64
`json:"customerAccount"`
//客服id
CompanyId
int64
`json:"companyId"`
//总后台的公司id
CompanyId
int64
`json:"companyId"`
//总后台的公司id
,对应company表中的admin_company_id
Muid
int64
`json:"muid"`
//企业平台的用户id,对应本系统中users表的id
}
`json:"data"`
}
...
...
请
注册
或
登录
后发表评论