|
@@ -22,8 +22,6 @@ func (controller *TemplateController) CreateTemplate() { |
|
@@ -22,8 +22,6 @@ func (controller *TemplateController) CreateTemplate() { |
22
|
ua := middlewares.GetUser(controller.Ctx)
|
22
|
ua := middlewares.GetUser(controller.Ctx)
|
23
|
in.CompanyId = ua.CompanyId
|
23
|
in.CompanyId = ua.CompanyId
|
24
|
in.CreatorId = ua.UserId
|
24
|
in.CreatorId = ua.UserId
|
25
|
- //in.CompanyId = middlewares.GetCompanyId(controller.Ctx)
|
|
|
26
|
- //in.CreatorId = middlewares.GetUserId(controller.Ctx)
|
|
|
27
|
controller.Response(ruService.Create(in))
|
25
|
controller.Response(ruService.Create(in))
|
28
|
}
|
26
|
}
|
29
|
}
|
27
|
}
|
|
@@ -36,7 +34,6 @@ func (controller *TemplateController) UpdateTemplate() { |
|
@@ -36,7 +34,6 @@ func (controller *TemplateController) UpdateTemplate() { |
36
|
} else {
|
34
|
} else {
|
37
|
ua := middlewares.GetUser(controller.Ctx)
|
35
|
ua := middlewares.GetUser(controller.Ctx)
|
38
|
in.CompanyId = ua.CompanyId
|
36
|
in.CompanyId = ua.CompanyId
|
39
|
- //in.CompanyId = middlewares.GetCompanyId(controller.Ctx)
|
|
|
40
|
controller.Response(ruService.Update(in))
|
37
|
controller.Response(ruService.Update(in))
|
41
|
}
|
38
|
}
|
42
|
}
|
39
|
}
|
|
@@ -74,7 +71,6 @@ func (controller *TemplateController) ListTemplate() { |
|
@@ -74,7 +71,6 @@ func (controller *TemplateController) ListTemplate() { |
74
|
}
|
71
|
}
|
75
|
ua := middlewares.GetUser(controller.Ctx)
|
72
|
ua := middlewares.GetUser(controller.Ctx)
|
76
|
in.CompanyId = ua.CompanyId
|
73
|
in.CompanyId = ua.CompanyId
|
77
|
- //in.CompanyId = middlewares.GetCompanyId(controller.Ctx)
|
|
|
78
|
controller.Response(ruService.List(in))
|
74
|
controller.Response(ruService.List(in))
|
79
|
}
|
75
|
}
|
80
|
}
|
76
|
}
|
|
@@ -90,7 +86,6 @@ func (controller *TemplateController) ListEnableTemplate() { |
|
@@ -90,7 +86,6 @@ func (controller *TemplateController) ListEnableTemplate() { |
90
|
} else {
|
86
|
} else {
|
91
|
ua := middlewares.GetUser(controller.Ctx)
|
87
|
ua := middlewares.GetUser(controller.Ctx)
|
92
|
in.CompanyId = ua.CompanyId
|
88
|
in.CompanyId = ua.CompanyId
|
93
|
- //in.CompanyId = middlewares.GetCompanyId(controller.Ctx)
|
|
|
94
|
controller.Response(ruService.List(in))
|
89
|
controller.Response(ruService.List(in))
|
95
|
}
|
90
|
}
|
96
|
}
|
91
|
}
|
|
@@ -103,7 +98,6 @@ func (controller *TemplateController) StateTemplate() { |
|
@@ -103,7 +98,6 @@ func (controller *TemplateController) StateTemplate() { |
103
|
} else {
|
98
|
} else {
|
104
|
ua := middlewares.GetUser(controller.Ctx)
|
99
|
ua := middlewares.GetUser(controller.Ctx)
|
105
|
in.CompanyId = ua.CompanyId
|
100
|
in.CompanyId = ua.CompanyId
|
106
|
- //in.CompanyId = middlewares.GetCompanyId(controller.Ctx)
|
|
|
107
|
controller.Response(ruService.State(in))
|
101
|
controller.Response(ruService.State(in))
|
108
|
}
|
102
|
}
|
109
|
}
|
103
|
}
|