正在显示
3 个修改的文件
包含
7 行增加
和
2 行删除
| @@ -77,6 +77,7 @@ func (service SyncCompanyService) DoAction(action string, byteData []byte) error | @@ -77,6 +77,7 @@ func (service SyncCompanyService) DoAction(action string, byteData []byte) error | ||
| 77 | } | 77 | } |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | +//addCompany 添加公司 | ||
| 80 | func (service SyncCompanyService) addCompany(data CompanytData) error { | 81 | func (service SyncCompanyService) addCompany(data CompanytData) error { |
| 81 | var ( | 82 | var ( |
| 82 | transactionContext, _ = factory.CreateTransactionContext(nil) | 83 | transactionContext, _ = factory.CreateTransactionContext(nil) |
| @@ -145,6 +146,7 @@ func (service SyncCompanyService) addCompany(data CompanytData) error { | @@ -145,6 +146,7 @@ func (service SyncCompanyService) addCompany(data CompanytData) error { | ||
| 145 | return nil | 146 | return nil |
| 146 | } | 147 | } |
| 147 | 148 | ||
| 149 | +//updateCompany 更新公司数据 | ||
| 148 | func (service SyncCompanyService) updateCompany(data CompanytData) error { | 150 | func (service SyncCompanyService) updateCompany(data CompanytData) error { |
| 149 | var ( | 151 | var ( |
| 150 | transactionContext, _ = factory.CreateTransactionContext(nil) | 152 | transactionContext, _ = factory.CreateTransactionContext(nil) |
| @@ -216,6 +218,7 @@ func (service SyncCompanyService) updateCompany(data CompanytData) error { | @@ -216,6 +218,7 @@ func (service SyncCompanyService) updateCompany(data CompanytData) error { | ||
| 216 | return nil | 218 | return nil |
| 217 | } | 219 | } |
| 218 | 220 | ||
| 221 | +//updateCompanyCharge 变更公司的负责人 | ||
| 219 | func (service SyncCompanyService) updateCompanyCharge(data CompanyCharge) error { | 222 | func (service SyncCompanyService) updateCompanyCharge(data CompanyCharge) error { |
| 220 | var ( | 223 | var ( |
| 221 | transactionContext, _ = factory.CreateTransactionContext(nil) | 224 | transactionContext, _ = factory.CreateTransactionContext(nil) |
| @@ -155,6 +155,7 @@ func (service SyncEmployeeService) DoAction(action string, byteData []byte) erro | @@ -155,6 +155,7 @@ func (service SyncEmployeeService) DoAction(action string, byteData []byte) erro | ||
| 155 | } | 155 | } |
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | +//addEmployeeData 添加用户 | ||
| 158 | func (service SyncEmployeeService) addEmployeeData(datas []EmployeeData) error { | 159 | func (service SyncEmployeeService) addEmployeeData(datas []EmployeeData) error { |
| 159 | var ( | 160 | var ( |
| 160 | transactionContext, _ = factory.CreateTransactionContext(nil) | 161 | transactionContext, _ = factory.CreateTransactionContext(nil) |
| @@ -203,6 +204,7 @@ func (service SyncEmployeeService) addEmployeeData(datas []EmployeeData) error { | @@ -203,6 +204,7 @@ func (service SyncEmployeeService) addEmployeeData(datas []EmployeeData) error { | ||
| 203 | return err | 204 | return err |
| 204 | } | 205 | } |
| 205 | 206 | ||
| 207 | +// updateEmployeeData 更新用户 | ||
| 206 | func (service SyncEmployeeService) updateEmployeeData(datas []EmployeeData) error { | 208 | func (service SyncEmployeeService) updateEmployeeData(datas []EmployeeData) error { |
| 207 | var ( | 209 | var ( |
| 208 | transactionContext, _ = factory.CreateTransactionContext(nil) | 210 | transactionContext, _ = factory.CreateTransactionContext(nil) |
| @@ -280,7 +282,7 @@ func (service SyncEmployeeService) deleteEmployeeData(data DeleteUserData) error | @@ -280,7 +282,7 @@ func (service SyncEmployeeService) deleteEmployeeData(data DeleteUserData) error | ||
| 280 | return err | 282 | return err |
| 281 | } | 283 | } |
| 282 | 284 | ||
| 283 | -//UpdateUsersStatus 批量更新用户的状态 | 285 | +//updateUsersStatus 批量更新用户的状态 |
| 284 | func (service SyncEmployeeService) updateUsersStatus(data ForbidAllowUserData) error { | 286 | func (service SyncEmployeeService) updateUsersStatus(data ForbidAllowUserData) error { |
| 285 | var ( | 287 | var ( |
| 286 | transactionContext, _ = factory.CreateTransactionContext(nil) | 288 | transactionContext, _ = factory.CreateTransactionContext(nil) |
| @@ -90,7 +90,7 @@ type ResponseLogin struct { | @@ -90,7 +90,7 @@ type ResponseLogin struct { | ||
| 90 | Imtoken string `json:"imtoken"` //网易云imtoken | 90 | Imtoken string `json:"imtoken"` //网易云imtoken |
| 91 | Accid int64 `json:"accid"` //网易云id | 91 | Accid int64 `json:"accid"` //网易云id |
| 92 | CustomerAccount int64 `json:"customerAccount"` //客服id | 92 | CustomerAccount int64 `json:"customerAccount"` //客服id |
| 93 | - CompanyId int64 `json:"companyId"` //总后台的公司id | 93 | + CompanyId int64 `json:"companyId"` //总后台的公司id ,对应company表中的admin_company_id |
| 94 | Muid int64 `json:"muid"` //企业平台的用户id,对应本系统中users表的id | 94 | Muid int64 `json:"muid"` //企业平台的用户id,对应本系统中users表的id |
| 95 | } `json:"data"` | 95 | } `json:"data"` |
| 96 | } | 96 | } |
-
请 注册 或 登录 后发表评论