...
|
...
|
@@ -4,10 +4,11 @@ import ( |
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/background/company/command"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/background/company/query"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/background/company/service"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers"
|
|
|
)
|
|
|
|
|
|
type CompanyController struct {
|
|
|
baseController
|
|
|
controllers.BaseController
|
|
|
}
|
|
|
|
|
|
// func (controller *CompanyController) CreateCompany() {
|
...
|
...
|
@@ -51,7 +52,7 @@ func (controller *CompanyController) SearchCompany() { |
|
|
listCompanyQuery := &query.ListCompanyQuery{}
|
|
|
controller.Unmarshal(listCompanyQuery)
|
|
|
cnt, data, err := companyService.ListCompany(listCompanyQuery)
|
|
|
controller.returnPageListData(cnt, data, err, listCompanyQuery.PageNumber)
|
|
|
controller.ReturnPageListData(cnt, data, err, listCompanyQuery.PageNumber)
|
|
|
}
|
|
|
|
|
|
func (controller *CompanyController) AuditCompany() {
|
...
|
...
|
|