...
|
...
|
@@ -85,7 +85,19 @@ func (controller *RuleController) ListRuleRelCreator() { |
|
|
}
|
|
|
ua := middlewares.GetUser(controller.Ctx)
|
|
|
in.CompanyId = ua.CompanyId
|
|
|
//in.CompanyId = middlewares.GetCompanyId(controller.Ctx)
|
|
|
controller.Response(ruService.ListRelCreator(in))
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (controller *RuleController) ListCreator() {
|
|
|
ruService := service.NewEvaluationRuleService()
|
|
|
in := &command.QueryCreatorCommand{}
|
|
|
if err := controller.Unmarshal(in); err != nil {
|
|
|
controller.Response(nil, application.ThrowError(application.ARG_ERROR, err.Error()))
|
|
|
} else {
|
|
|
|
|
|
ua := middlewares.GetUser(controller.Ctx)
|
|
|
in.CompanyId = ua.CompanyId
|
|
|
controller.Response(ruService.ListCreator(in))
|
|
|
}
|
|
|
} |
...
|
...
|
|