From 130b24897d1e60558626ccf3c07f586df5e1853b Mon Sep 17 00:00:00 2001 From: barnettZQG Date: Fri, 10 Aug 2018 17:25:04 +0800 Subject: [PATCH] [REV] update code --- api/handler/service.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/handler/service.go b/api/handler/service.go index 127abd3b5..14e9546f9 100644 --- a/api/handler/service.go +++ b/api/handler/service.go @@ -85,6 +85,7 @@ func (s *ServiceAction) ServiceBuild(tenantID, serviceID string, r *api_model.Bu r.Body.Kind = "source" } switch r.Body.Kind { + //deprecated case "source": //源码构建 if err := s.sourceBuild(r, service); err != nil { @@ -93,6 +94,7 @@ func (s *ServiceAction) ServiceBuild(tenantID, serviceID string, r *api_model.Bu } logger.Info("源码构建应用任务发送成功 ", map[string]string{"step": "source-service", "status": "starting"}) return nil + //deprecated case "slug": //源码构建的分享至云市安装回平台 if err := s.slugBuild(r, service); err != nil { @@ -101,6 +103,7 @@ func (s *ServiceAction) ServiceBuild(tenantID, serviceID string, r *api_model.Bu } logger.Info("slug构建应用任务发送成功 ", map[string]string{"step": "source-service", "status": "starting"}) return nil + //deprecated case "image": //镜像构建 if err := s.imageBuild(r, service); err != nil { @@ -109,6 +112,7 @@ func (s *ServiceAction) ServiceBuild(tenantID, serviceID string, r *api_model.Bu } logger.Info("镜像构建应用任务发送成功 ", map[string]string{"step": "image-service", "status": "starting"}) return nil + //deprecated case "market": //镜像构建分享至云市安装回平台 if err := s.marketBuild(r, service); err != nil {