|
@@ -9,6 +9,7 @@ import ( |
|
|
"net/http" |
|
|
"net/http" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
//CommitOpenIRepo 新建启智项目申请页面提交 |
|
|
func CommitOpenIRepo(ctx *context.APIContext, form api.TechRepo) { |
|
|
func CommitOpenIRepo(ctx *context.APIContext, form api.TechRepo) { |
|
|
//解析项目路径,查找项目 |
|
|
//解析项目路径,查找项目 |
|
|
repo, err := repository.FindRepoByUrl(form.Url) |
|
|
repo, err := repository.FindRepoByUrl(form.Url) |
|
@@ -40,3 +41,17 @@ func CommitOpenIRepo(ctx *context.APIContext, form api.TechRepo) { |
|
|
ctx.JSON(http.StatusOK, response.OuterSuccess()) |
|
|
ctx.JSON(http.StatusOK, response.OuterSuccess()) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//CommitNotOpenIRepo 新建非启智项目申请页面提交 |
|
|
|
|
|
func CommitNotOpenIRepo(ctx *context.APIContext, form api.TechRepo) { |
|
|
|
|
|
////查找项目编号 |
|
|
|
|
|
//tech, err := models.GetTechByTechNo(form.TechNo) |
|
|
|
|
|
//if err != nil { |
|
|
|
|
|
// ctx.JSON(http.StatusOK, response.OuterServerError(err.Error())) |
|
|
|
|
|
// return |
|
|
|
|
|
//} |
|
|
|
|
|
// |
|
|
|
|
|
////调用迁移接口 |
|
|
|
|
|
|
|
|
|
|
|
return |
|
|
|
|
|
} |