...
|
...
|
@@ -2,6 +2,9 @@ package controllers |
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
"io"
|
|
|
"path/filepath"
|
|
|
|
|
|
"github.com/linmadan/egglib-go/core/application"
|
|
|
"github.com/linmadan/egglib-go/utils/json"
|
|
|
"github.com/linmadan/egglib-go/web/beego"
|
...
|
...
|
@@ -9,8 +12,6 @@ import ( |
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/middleware"
|
|
|
"io"
|
|
|
"path/filepath"
|
|
|
)
|
|
|
|
|
|
type BaseController struct {
|
...
|
...
|
@@ -59,21 +60,21 @@ func (controller *BaseController) Response(data interface{}, err error) { |
|
|
controller.ServeJSON()
|
|
|
}
|
|
|
|
|
|
func (controller *BaseController) GetUserId() int64 {
|
|
|
return 1
|
|
|
}
|
|
|
// func (controller *BaseController) GetUserId() int64 {
|
|
|
// return 1
|
|
|
// }
|
|
|
|
|
|
func (controller *BaseController) GetCompanyId() int64 {
|
|
|
return 1
|
|
|
}
|
|
|
// func (controller *BaseController) GetCompanyId() int64 {
|
|
|
// return 1
|
|
|
// }
|
|
|
|
|
|
func (controller *BaseController) GetUserBaseId() int64 {
|
|
|
return 1
|
|
|
}
|
|
|
// func (controller *BaseController) GetUserBaseId() int64 {
|
|
|
// return 1
|
|
|
// }
|
|
|
|
|
|
func (controller *BaseController) GetOrgId() int64 {
|
|
|
return 1
|
|
|
}
|
|
|
// func (controller *BaseController) GetOrgId() int64 {
|
|
|
// return 1
|
|
|
// }
|
|
|
|
|
|
func (controller *BaseController) GetOperator() domain.Operator {
|
|
|
token := controller.Ctx.Input.Header("X-Mmm-Accesstoken")
|
...
|
...
|
|