作者 唐旭辉

添加注释

... ... @@ -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)
... ...
... ... @@ -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
}
//UpdateUsersStatus 批量更新用户的状态
//updateUsersStatus 批量更新用户的状态
func (service SyncEmployeeService) updateUsersStatus(data ForbidAllowUserData) error {
var (
transactionContext, _ = factory.CreateTransactionContext(nil)
... ...
... ... @@ -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"`
}
... ...