...
|
...
|
@@ -22,8 +22,6 @@ func (controller *TemplateController) CreateTemplate() { |
|
|
ua := middlewares.GetUser(controller.Ctx)
|
|
|
in.CompanyId = ua.CompanyId
|
|
|
in.CreatorId = ua.UserId
|
|
|
//in.CompanyId = middlewares.GetCompanyId(controller.Ctx)
|
|
|
//in.CreatorId = middlewares.GetUserId(controller.Ctx)
|
|
|
controller.Response(ruService.Create(in))
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -36,7 +34,6 @@ func (controller *TemplateController) UpdateTemplate() { |
|
|
} else {
|
|
|
ua := middlewares.GetUser(controller.Ctx)
|
|
|
in.CompanyId = ua.CompanyId
|
|
|
//in.CompanyId = middlewares.GetCompanyId(controller.Ctx)
|
|
|
controller.Response(ruService.Update(in))
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -74,7 +71,6 @@ func (controller *TemplateController) ListTemplate() { |
|
|
}
|
|
|
ua := middlewares.GetUser(controller.Ctx)
|
|
|
in.CompanyId = ua.CompanyId
|
|
|
//in.CompanyId = middlewares.GetCompanyId(controller.Ctx)
|
|
|
controller.Response(ruService.List(in))
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -90,7 +86,6 @@ func (controller *TemplateController) ListEnableTemplate() { |
|
|
} else {
|
|
|
ua := middlewares.GetUser(controller.Ctx)
|
|
|
in.CompanyId = ua.CompanyId
|
|
|
//in.CompanyId = middlewares.GetCompanyId(controller.Ctx)
|
|
|
controller.Response(ruService.List(in))
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -103,7 +98,6 @@ func (controller *TemplateController) StateTemplate() { |
|
|
} else {
|
|
|
ua := middlewares.GetUser(controller.Ctx)
|
|
|
in.CompanyId = ua.CompanyId
|
|
|
//in.CompanyId = middlewares.GetCompanyId(controller.Ctx)
|
|
|
controller.Response(ruService.State(in))
|
|
|
}
|
|
|
}
|
...
|
...
|
|