作者 郑周

新建项目逻辑补充

@@ -91,7 +91,7 @@ func (controller *ProjectController) ListProject() { @@ -91,7 +91,7 @@ func (controller *ProjectController) ListProject() {
91 } 91 }
92 } 92 }
93 93
94 -func (controller *ProjectController) StateProject() { 94 +func (controller *ProjectController) ActivateProject() {
95 ruService := service.NewEvaluationProjectService() 95 ruService := service.NewEvaluationProjectService()
96 in := &command.ActivateProjectCommand{} 96 in := &command.ActivateProjectCommand{}
97 if err := controller.Unmarshal(in); err != nil { 97 if err := controller.Unmarshal(in); err != nil {
@@ -18,6 +18,7 @@ func init() { @@ -18,6 +18,7 @@ func init() {
18 web.NSRouter("/detail", &controllers.ProjectController{}, "Put:UpdateProjectForTemplate"), 18 web.NSRouter("/detail", &controllers.ProjectController{}, "Put:UpdateProjectForTemplate"),
19 web.NSRouter("/check-recipients", &controllers.ProjectController{}, "Post:CheckRecipients"), 19 web.NSRouter("/check-recipients", &controllers.ProjectController{}, "Post:CheckRecipients"),
20 web.NSRouter("/copy", &controllers.ProjectController{}, "Post:CopyProject"), 20 web.NSRouter("/copy", &controllers.ProjectController{}, "Post:CopyProject"),
  21 + web.NSRouter("/activate", &controllers.ProjectController{}, "Post:ActivateProject"),
21 ) 22 )
22 web.AddNamespace(ns) 23 web.AddNamespace(ns)
23 } 24 }