作者 郑周

新建项目逻辑补充

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