...
|
...
|
@@ -46,6 +46,9 @@ func (companyService *CompanyService) GetCompany(getCompanyQuery *query.GetCompa |
|
|
}
|
|
|
|
|
|
func (companyService *CompanyService) AuditCompany(cmd *command.AuditCompanyCommand) (interface{}, error) {
|
|
|
if err := cmd.ValidateCommand(); err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(domain.Operator{})
|
|
|
_, err := creationUserGateway.AuditCompany(allied_creation_user.ReqCompanyAudit{
|
|
|
CompanyId: int(cmd.CompanyId),
|
...
|
...
|
@@ -72,6 +75,9 @@ func (companyService *CompanyService) AuditCompany(cmd *command.AuditCompanyComm |
|
|
}
|
|
|
|
|
|
func (companyService *CompanyService) EnableCompany(cmd *command.EnableCompanyCommand) (interface{}, error) {
|
|
|
if err := cmd.ValidateCommand(); err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(domain.Operator{})
|
|
|
_, err := creationUserGateway.EnableCompany(allied_creation_user.ReqCompanyEnable{
|
|
|
CompanyId: int(cmd.CompanyId),
|
...
|
...
|
|