|
|
|
@@ -334,6 +334,17 @@ func ActiveUser(ctx *context.Context) { |
|
|
|
resultMap["Users"] = result |
|
|
|
ctx.JSON(http.StatusOK, response.SuccessWithData(resultMap)) |
|
|
|
} |
|
|
|
func ActiveOrg(ctx *context.Context) { |
|
|
|
result, err := repository.GetActiveOrgs() |
|
|
|
if err != nil { |
|
|
|
log.Error("ActiveOrg err. %v", err) |
|
|
|
ctx.JSON(http.StatusOK, response.Success()) |
|
|
|
return |
|
|
|
} |
|
|
|
resultMap := make(map[string]interface{}, 0) |
|
|
|
resultMap["Orgs"] = result |
|
|
|
ctx.JSON(http.StatusOK, response.SuccessWithData(resultMap)) |
|
|
|
} |
|
|
|
|
|
|
|
func RepoFind(ctx *context.Context) { |
|
|
|
keyword := strings.Trim(ctx.Query("q"), " ") |
|
|
|
|