@@ -33,7 +33,7 @@ func Base(c *gin.Context) { | |||
// @Param req body md.CloudBundleUpdateStateReq true "(分页信息必填)" | |||
// @Success 200 {string} "具体数据" | |||
// @Failure 400 {object} md.Response "具体错误" | |||
// @Router /api/cloudBundle/del [post] | |||
// @Router /api/cloudBundle/update/state [post] | |||
func UpdateState(c *gin.Context) { | |||
cloud_bundle.UpdateState(c) | |||
} | |||
@@ -38,17 +38,22 @@ type CloudBundleBuildReq struct { | |||
IsCombine string `json:"isCombine"` | |||
} | |||
type CloudBundleBase struct { | |||
AndroidLogo string `json:"android_logo"` | |||
AndroidStartImg []map[string]string `json:"android_start_img"` | |||
IosLogo string `json:"ios_logo"` | |||
IosStartImg []map[string]string `json:"ios_start_img"` | |||
AndroidLogo string `json:"android_logo"` | |||
IosLogo string `json:"ios_logo"` | |||
Build10802280 string `json:"build_1080_2280"` | |||
Build11252436 string `json:"build_1125_2436"` | |||
Build12422208 string `json:"build_1242_2208"` | |||
Build6401136 string `json:"build_640_1136"` | |||
Build640960 string `json:"build_640_960"` | |||
Build7201280 string `json:"build_720_1280"` | |||
Build7501334 string `json:"build_750_1334"` | |||
} | |||
type CloudBundleBaseResp struct { | |||
AndroidLogo string `json:"android_logo"` | |||
AndroidStartImg []map[string]string `json:"android_start_img"` | |||
IosLogo string `json:"ios_logo"` | |||
IosStartImg []map[string]string `json:"ios_start_img"` | |||
AndroidLogo string `json:"android_logo"` | |||
IosLogo string `json:"ios_logo"` | |||
LaunchScreen map[string]string `json:"launch_screen"` | |||
} | |||
type CloudBundleUpdateStateReq struct { | |||
Id string `json:"id"` | |||
State string `json:"state"` | |||
@@ -58,13 +63,25 @@ type CloudBundleUpdateStateReq struct { | |||
ErrorMsg string `json:"error_msg"` | |||
} | |||
type CloudBundleImgResp struct { | |||
AndroidLogo string `json:"android_logo"` | |||
AndroidLogoUrl string `json:"android_logo_url"` | |||
AndroidStartImg []map[string]string `json:"android_start_img"` | |||
IosLogo string `json:"ios_logo"` | |||
IosLogoUrl string `json:"ios_logo_url"` | |||
IosStartImg []map[string]string `json:"ios_start_img"` | |||
Guide []Guide `json:"guide"` | |||
AndroidLogo string `json:"android_logo"` | |||
AndroidLogoUrl string `json:"android_logo_url"` | |||
IosLogo string `json:"ios_logo"` | |||
IosLogoUrl string `json:"ios_logo_url"` | |||
Guide []Guide `json:"guide"` | |||
Build10802280 string `json:"build_1080_2280"` | |||
Build11252436 string `json:"build_1125_2436"` | |||
Build12422208 string `json:"build_1242_2208"` | |||
Build6401136 string `json:"build_640_1136"` | |||
Build640960 string `json:"build_640_960"` | |||
Build7201280 string `json:"build_720_1280"` | |||
Build7501334 string `json:"build_750_1334"` | |||
Build10802280Url string `json:"build_1080_2280_url"` | |||
Build11252436Url string `json:"build_1125_2436_url"` | |||
Build12422208Url string `json:"build_1242_2208_url"` | |||
Build6401136Url string `json:"build_640_1136_url"` | |||
Build640960Url string `json:"build_640_960_url"` | |||
Build7201280Url string `json:"build_720_1280_url"` | |||
Build7501334Url string `json:"build_750_1334_url"` | |||
} | |||
type Guide struct { | |||
@@ -15,17 +15,19 @@ func Base(c *gin.Context) { | |||
appCloudBundleData := svc.GetSysCfgStr("app_cloud_bundle_data") | |||
tmp := md.CloudBundleBase{} | |||
json.Unmarshal([]byte(appCloudBundleData), &tmp) | |||
for k, v := range tmp.AndroidStartImg { | |||
tmp.AndroidStartImg[k]["img"] = svc.GetOssUrl(v["img"]) | |||
} | |||
for k, v := range tmp.IosStartImg { | |||
tmp.IosStartImg[k]["img"] = svc.GetOssUrl(v["img"]) | |||
var launchScreen = map[string]string{ | |||
"640_960": svc.GetOssUrl(tmp.Build640960), | |||
"640_1136": svc.GetOssUrl(tmp.Build6401136), | |||
"1242_2208": svc.GetOssUrl(tmp.Build12422208), | |||
"750_1334": svc.GetOssUrl(tmp.Build7501334), | |||
"1125_2436": svc.GetOssUrl(tmp.Build11252436), | |||
"720_1280": svc.GetOssUrl(tmp.Build7201280), | |||
"1080_2280": svc.GetOssUrl(tmp.Build10802280), | |||
} | |||
var res = md.CloudBundleBaseResp{ | |||
AndroidLogo: svc.GetOssUrl(tmp.AndroidLogo), | |||
AndroidStartImg: tmp.IosStartImg, | |||
IosLogo: svc.GetOssUrl(tmp.IosLogo), | |||
IosStartImg: tmp.IosStartImg, | |||
AndroidLogo: svc.GetOssUrl(tmp.AndroidLogo), | |||
IosLogo: svc.GetOssUrl(tmp.IosLogo), | |||
LaunchScreen: launchScreen, | |||
} | |||
e.OutSuc(c, res, nil) | |||
return | |||
@@ -1,4 +1,5 @@ | |||
// Package docs Code generated by swaggo/swag. DO NOT EDIT | |||
// Code generated by swaggo/swag. DO NOT EDIT. | |||
package docs | |||
import "github.com/swaggo/swag" | |||
@@ -1116,6 +1117,53 @@ const docTemplate = `{ | |||
} | |||
} | |||
}, | |||
"/api/cloudBundle/update/state": { | |||
"post": { | |||
"description": "打包机使用-云打包更新状态", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
"produces": [ | |||
"application/json" | |||
], | |||
"tags": [ | |||
"打包机使用" | |||
], | |||
"summary": "打包机使用-云打包更新状态等", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
"description": "验证参数Bearer和token空格拼接", | |||
"name": "Authorization", | |||
"in": "header", | |||
"required": true | |||
}, | |||
{ | |||
"description": "(分页信息必填)", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.CloudBundleUpdateStateReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "具体数据", | |||
"schema": { | |||
"type": "string" | |||
} | |||
}, | |||
"400": { | |||
"description": "具体错误", | |||
"schema": { | |||
"$ref": "#/definitions/md.Response" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
"/api/cloudBundle/upload": { | |||
"post": { | |||
"description": "打包机使用-云打包-上传许可链接(获取)", | |||
@@ -1352,7 +1400,9 @@ const docTemplate = `{ | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": {} | |||
"schema": { | |||
"type": "object" | |||
} | |||
} | |||
], | |||
"responses": { | |||
@@ -6034,7 +6084,7 @@ const docTemplate = `{ | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.UserFeedbackSayReq" | |||
"$ref": "#/definitions/md.UserFeedbackChangeStateReq" | |||
} | |||
} | |||
], | |||
@@ -7727,25 +7777,13 @@ const docTemplate = `{ | |||
"android_logo": { | |||
"type": "string" | |||
}, | |||
"android_start_img": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"additionalProperties": { | |||
"type": "string" | |||
} | |||
} | |||
}, | |||
"ios_logo": { | |||
"type": "string" | |||
}, | |||
"ios_start_img": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"additionalProperties": { | |||
"type": "string" | |||
} | |||
"launch_screen": { | |||
"type": "object", | |||
"additionalProperties": { | |||
"type": "string" | |||
} | |||
} | |||
} | |||
@@ -7788,14 +7826,47 @@ const docTemplate = `{ | |||
"android_logo_url": { | |||
"type": "string" | |||
}, | |||
"android_start_img": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"additionalProperties": { | |||
"type": "string" | |||
} | |||
} | |||
"build_1080_2280": { | |||
"type": "string" | |||
}, | |||
"build_1080_2280_url": { | |||
"type": "string" | |||
}, | |||
"build_1125_2436": { | |||
"type": "string" | |||
}, | |||
"build_1125_2436_url": { | |||
"type": "string" | |||
}, | |||
"build_1242_2208": { | |||
"type": "string" | |||
}, | |||
"build_1242_2208_url": { | |||
"type": "string" | |||
}, | |||
"build_640_1136": { | |||
"type": "string" | |||
}, | |||
"build_640_1136_url": { | |||
"type": "string" | |||
}, | |||
"build_640_960": { | |||
"type": "string" | |||
}, | |||
"build_640_960_url": { | |||
"type": "string" | |||
}, | |||
"build_720_1280": { | |||
"type": "string" | |||
}, | |||
"build_720_1280_url": { | |||
"type": "string" | |||
}, | |||
"build_750_1334": { | |||
"type": "string" | |||
}, | |||
"build_750_1334_url": { | |||
"type": "string" | |||
}, | |||
"guide": { | |||
"type": "array", | |||
@@ -7808,15 +7879,6 @@ const docTemplate = `{ | |||
}, | |||
"ios_logo_url": { | |||
"type": "string" | |||
}, | |||
"ios_start_img": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"additionalProperties": { | |||
"type": "string" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
@@ -11847,6 +11909,18 @@ const docTemplate = `{ | |||
} | |||
} | |||
}, | |||
"md.UserFeedbackChangeStateReq": { | |||
"type": "object", | |||
"properties": { | |||
"id": { | |||
"type": "string" | |||
}, | |||
"state": { | |||
"type": "string", | |||
"example": "0待解决 1处理中 2已解决" | |||
} | |||
} | |||
}, | |||
"md.UserFeedbackDelReq": { | |||
"type": "object", | |||
"properties": { | |||
@@ -12801,8 +12875,6 @@ var SwaggerInfo = &swag.Spec{ | |||
Description: "管理后台接口文档", | |||
InfoInstanceName: "swagger", | |||
SwaggerTemplate: docTemplate, | |||
LeftDelim: "{{", | |||
RightDelim: "}}", | |||
} | |||
func init() { | |||
@@ -1109,6 +1109,53 @@ | |||
} | |||
} | |||
}, | |||
"/api/cloudBundle/update/state": { | |||
"post": { | |||
"description": "打包机使用-云打包更新状态", | |||
"consumes": [ | |||
"application/json" | |||
], | |||
"produces": [ | |||
"application/json" | |||
], | |||
"tags": [ | |||
"打包机使用" | |||
], | |||
"summary": "打包机使用-云打包更新状态等", | |||
"parameters": [ | |||
{ | |||
"type": "string", | |||
"description": "验证参数Bearer和token空格拼接", | |||
"name": "Authorization", | |||
"in": "header", | |||
"required": true | |||
}, | |||
{ | |||
"description": "(分页信息必填)", | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.CloudBundleUpdateStateReq" | |||
} | |||
} | |||
], | |||
"responses": { | |||
"200": { | |||
"description": "具体数据", | |||
"schema": { | |||
"type": "string" | |||
} | |||
}, | |||
"400": { | |||
"description": "具体错误", | |||
"schema": { | |||
"$ref": "#/definitions/md.Response" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
"/api/cloudBundle/upload": { | |||
"post": { | |||
"description": "打包机使用-云打包-上传许可链接(获取)", | |||
@@ -1345,7 +1392,9 @@ | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": {} | |||
"schema": { | |||
"type": "object" | |||
} | |||
} | |||
], | |||
"responses": { | |||
@@ -6027,7 +6076,7 @@ | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"$ref": "#/definitions/md.UserFeedbackSayReq" | |||
"$ref": "#/definitions/md.UserFeedbackChangeStateReq" | |||
} | |||
} | |||
], | |||
@@ -7720,25 +7769,13 @@ | |||
"android_logo": { | |||
"type": "string" | |||
}, | |||
"android_start_img": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"additionalProperties": { | |||
"type": "string" | |||
} | |||
} | |||
}, | |||
"ios_logo": { | |||
"type": "string" | |||
}, | |||
"ios_start_img": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"additionalProperties": { | |||
"type": "string" | |||
} | |||
"launch_screen": { | |||
"type": "object", | |||
"additionalProperties": { | |||
"type": "string" | |||
} | |||
} | |||
} | |||
@@ -7781,14 +7818,47 @@ | |||
"android_logo_url": { | |||
"type": "string" | |||
}, | |||
"android_start_img": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"additionalProperties": { | |||
"type": "string" | |||
} | |||
} | |||
"build_1080_2280": { | |||
"type": "string" | |||
}, | |||
"build_1080_2280_url": { | |||
"type": "string" | |||
}, | |||
"build_1125_2436": { | |||
"type": "string" | |||
}, | |||
"build_1125_2436_url": { | |||
"type": "string" | |||
}, | |||
"build_1242_2208": { | |||
"type": "string" | |||
}, | |||
"build_1242_2208_url": { | |||
"type": "string" | |||
}, | |||
"build_640_1136": { | |||
"type": "string" | |||
}, | |||
"build_640_1136_url": { | |||
"type": "string" | |||
}, | |||
"build_640_960": { | |||
"type": "string" | |||
}, | |||
"build_640_960_url": { | |||
"type": "string" | |||
}, | |||
"build_720_1280": { | |||
"type": "string" | |||
}, | |||
"build_720_1280_url": { | |||
"type": "string" | |||
}, | |||
"build_750_1334": { | |||
"type": "string" | |||
}, | |||
"build_750_1334_url": { | |||
"type": "string" | |||
}, | |||
"guide": { | |||
"type": "array", | |||
@@ -7801,15 +7871,6 @@ | |||
}, | |||
"ios_logo_url": { | |||
"type": "string" | |||
}, | |||
"ios_start_img": { | |||
"type": "array", | |||
"items": { | |||
"type": "object", | |||
"additionalProperties": { | |||
"type": "string" | |||
} | |||
} | |||
} | |||
} | |||
}, | |||
@@ -11840,6 +11901,18 @@ | |||
} | |||
} | |||
}, | |||
"md.UserFeedbackChangeStateReq": { | |||
"type": "object", | |||
"properties": { | |||
"id": { | |||
"type": "string" | |||
}, | |||
"state": { | |||
"type": "string", | |||
"example": "0待解决 1处理中 2已解决" | |||
} | |||
} | |||
}, | |||
"md.UserFeedbackDelReq": { | |||
"type": "object", | |||
"properties": { | |||
@@ -841,20 +841,12 @@ definitions: | |||
properties: | |||
android_logo: | |||
type: string | |||
android_start_img: | |||
items: | |||
additionalProperties: | |||
type: string | |||
type: object | |||
type: array | |||
ios_logo: | |||
type: string | |||
ios_start_img: | |||
items: | |||
additionalProperties: | |||
type: string | |||
type: object | |||
type: array | |||
launch_screen: | |||
additionalProperties: | |||
type: string | |||
type: object | |||
type: object | |||
md.CloudBundleBuildReq: | |||
properties: | |||
@@ -881,12 +873,34 @@ definitions: | |||
type: string | |||
android_logo_url: | |||
type: string | |||
android_start_img: | |||
items: | |||
additionalProperties: | |||
type: string | |||
type: object | |||
type: array | |||
build_640_960: | |||
type: string | |||
build_640_960_url: | |||
type: string | |||
build_640_1136: | |||
type: string | |||
build_640_1136_url: | |||
type: string | |||
build_720_1280: | |||
type: string | |||
build_720_1280_url: | |||
type: string | |||
build_750_1334: | |||
type: string | |||
build_750_1334_url: | |||
type: string | |||
build_1080_2280: | |||
type: string | |||
build_1080_2280_url: | |||
type: string | |||
build_1125_2436: | |||
type: string | |||
build_1125_2436_url: | |||
type: string | |||
build_1242_2208: | |||
type: string | |||
build_1242_2208_url: | |||
type: string | |||
guide: | |||
items: | |||
$ref: '#/definitions/md.Guide' | |||
@@ -895,12 +909,6 @@ definitions: | |||
type: string | |||
ios_logo_url: | |||
type: string | |||
ios_start_img: | |||
items: | |||
additionalProperties: | |||
type: string | |||
type: object | |||
type: array | |||
type: object | |||
md.CloudBundleList: | |||
properties: | |||
@@ -3702,6 +3710,14 @@ definitions: | |||
sort: | |||
type: string | |||
type: object | |||
md.UserFeedbackChangeStateReq: | |||
properties: | |||
id: | |||
type: string | |||
state: | |||
example: 0待解决 1处理中 2已解决 | |||
type: string | |||
type: object | |||
md.UserFeedbackDelReq: | |||
properties: | |||
id: | |||
@@ -5077,6 +5093,37 @@ paths: | |||
summary: 云打包-云打包版本列表 | |||
tags: | |||
- 云打包 | |||
/api/cloudBundle/update/state: | |||
post: | |||
consumes: | |||
- application/json | |||
description: 打包机使用-云打包更新状态 | |||
parameters: | |||
- description: 验证参数Bearer和token空格拼接 | |||
in: header | |||
name: Authorization | |||
required: true | |||
type: string | |||
- description: (分页信息必填) | |||
in: body | |||
name: req | |||
required: true | |||
schema: | |||
$ref: '#/definitions/md.CloudBundleUpdateStateReq' | |||
produces: | |||
- application/json | |||
responses: | |||
"200": | |||
description: 具体数据 | |||
schema: | |||
type: string | |||
"400": | |||
description: 具体错误 | |||
schema: | |||
$ref: '#/definitions/md.Response' | |||
summary: 打包机使用-云打包更新状态等 | |||
tags: | |||
- 打包机使用 | |||
/api/cloudBundle/upload: | |||
post: | |||
consumes: | |||
@@ -5230,7 +5277,8 @@ paths: | |||
in: body | |||
name: req | |||
required: true | |||
schema: {} | |||
schema: | |||
type: object | |||
produces: | |||
- application/json | |||
responses: | |||
@@ -8388,7 +8436,7 @@ paths: | |||
name: req | |||
required: true | |||
schema: | |||
$ref: '#/definitions/md.UserFeedbackSayReq' | |||
$ref: '#/definitions/md.UserFeedbackChangeStateReq' | |||
produces: | |||
- application/json | |||
responses: | |||