huangjiajun pirms 3 mēnešiem
vecāks
revīzija
ed2f720d01
3 mainītis faili ar 1817 papildinājumiem un 35 dzēšanām
  1. +680
    -15
      docs/docs.go
  2. +680
    -15
      docs/swagger.json
  3. +457
    -5
      docs/swagger.yaml

+ 680
- 15
docs/docs.go Parādīt failu

@@ -347,6 +347,288 @@ const docTemplate = `{
}
}
},
"/api/medium/applet/application/ad/space/audit": {
"post": {
"description": "小程序应用-广告位审核",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "广告位审核",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceSaveReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/medium/applet/application/ad/space/list": {
"post": {
"description": "媒体中心-媒体列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "媒体列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容---这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/medium/applet/application/ad/space/save": {
"post": {
"description": "小程序应用-广告位列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "广告位列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容---这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/medium/applet/application/audit": {
"post": {
"description": "小程序应用-审核",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "审核",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationSaveReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/medium/applet/application/list": {
"post": {
"description": "小程序应用-列表数据",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "应用列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容---这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.AppletApplicationListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/medium/applet/application/medium/list": {
"post": {
"description": "媒体中心-媒体列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "媒体列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationMediumListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容---这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.AppletApplicationMediumListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/mediumQualification/bank": {
"post": {
"responses": {
@@ -1475,7 +1757,7 @@ const docTemplate = `{
},
"/api/setCenter/basic/getOss": {
"get": {
"description": "基础设置-oss获取",
"description": "基础设置-mob获取",
"consumes": [
"application/json"
],
@@ -1485,7 +1767,7 @@ const docTemplate = `{
"tags": [
"设置中心-基础设置"
],
"summary": "oss获取",
"summary": "mob获取",
"parameters": [
{
"type": "string",
@@ -1513,7 +1795,7 @@ const docTemplate = `{
},
"/api/setCenter/basic/setOss": {
"post": {
"description": "基础设置-oss设置",
"description": "基础设置-mob设置",
"consumes": [
"application/json"
],
@@ -1523,7 +1805,7 @@ const docTemplate = `{
"tags": [
"设置中心-基础设置"
],
"summary": "oss设置",
"summary": "mob设置",
"parameters": [
{
"type": "string",
@@ -1538,7 +1820,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.SetOssReq"
"$ref": "#/definitions/md.SetMobReq"
}
}
],
@@ -2178,20 +2460,392 @@ const docTemplate = `{
}
}
},
"md.AppletUpdateReq": {
"md.AppletApplicationAdSpaceListData": {
"type": "object",
"required": [
"id",
"logo",
"name"
],
"properties": {
"id": {
"type": "integer"
"ad_id": {
"type": "string",
"example": "广告位id"
},
"logo": {
"app_id": {
"type": "string",
"example": "小程序logo"
"example": "小程序appid"
},
"cooperate_state": {
"type": "string",
"example": "合作状态"
},
"id": {
"type": "string",
"example": "id"
},
"kind": {
"type": "string",
"example": "广告位类型"
},
"logo": {
"type": "string",
"example": "logo"
},
"memo": {
"type": "string",
"example": "备注"
},
"name": {
"type": "string",
"example": "应用名称"
},
"platform": {
"type": "string",
"example": "平台"
},
"state": {
"type": "string",
"example": "应用状态 state=2 才能再次编辑"
}
}
},
"md.AppletApplicationAdSpaceListReq": {
"type": "object",
"properties": {
"cooperate_state": {
"type": "string",
"example": "合作状态"
},
"limit": {
"type": "string"
},
"medium_id": {
"type": "string",
"example": "媒体id"
},
"name": {
"type": "string"
},
"page": {
"type": "string"
},
"platform": {
"type": "string"
}
}
},
"md.AppletApplicationAdSpaceListRes": {
"type": "object",
"properties": {
"ad_type": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"cooperate_state": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceListData"
}
},
"platform": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"state": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"total": {
"type": "integer"
}
}
},
"md.AppletApplicationAdSpaceMediumListData": {
"type": "object",
"properties": {
"account": {
"type": "string",
"example": "账号"
},
"contact_name": {
"type": "string",
"example": "联系人"
},
"count": {
"type": "string",
"example": "广告位数量"
},
"id": {
"type": "string",
"example": "id"
},
"medium_id": {
"type": "string",
"example": "媒体id"
},
"name": {
"type": "string",
"example": "名称"
},
"phone": {
"type": "string",
"example": "联系电话"
}
}
},
"md.AppletApplicationAdSpaceMediumListReq": {
"type": "object",
"properties": {
"account": {
"type": "string",
"example": "媒体账号"
},
"limit": {
"type": "string"
},
"name": {
"type": "string",
"example": "媒体名称"
},
"page": {
"type": "string"
}
}
},
"md.AppletApplicationAdSpaceMediumListRes": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListData"
}
},
"total": {
"type": "integer"
}
}
},
"md.AppletApplicationAdSpaceSaveReq": {
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "id 多个逗号隔开"
},
"memo": {
"type": "string",
"example": "备注"
},
"state": {
"type": "string",
"example": "审核状态"
}
}
},
"md.AppletApplicationListData": {
"type": "object",
"properties": {
"app_id": {
"type": "string",
"example": "小程序appid"
},
"cooperate_state": {
"type": "string",
"example": "合作状态"
},
"id": {
"type": "string",
"example": "id"
},
"logo": {
"type": "string",
"example": "logo"
},
"memo": {
"type": "string",
"example": "备注"
},
"name": {
"type": "string",
"example": "应用名称"
},
"original_id": {
"type": "string",
"example": "小程序id"
},
"platform": {
"type": "string",
"example": "平台"
},
"state": {
"type": "string",
"example": "应用状态 state=3 才能再次编辑"
}
}
},
"md.AppletApplicationListReq": {
"type": "object",
"properties": {
"cooperate_state": {
"type": "string",
"example": "合作状态"
},
"limit": {
"type": "string"
},
"medium_id": {
"type": "string",
"example": "媒体id"
},
"name": {
"type": "string"
},
"page": {
"type": "string"
},
"platform": {
"type": "string"
}
}
},
"md.AppletApplicationListRes": {
"type": "object",
"properties": {
"cooperate_state": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AppletApplicationListData"
}
},
"platform": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"state": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"total": {
"type": "integer"
}
}
},
"md.AppletApplicationMediumListData": {
"type": "object",
"properties": {
"account": {
"type": "string",
"example": "账号"
},
"contact_name": {
"type": "string",
"example": "联系人"
},
"count": {
"type": "string",
"example": "应用数量"
},
"id": {
"type": "string",
"example": "id"
},
"medium_id": {
"type": "string",
"example": "媒体id"
},
"name": {
"type": "string",
"example": "名称"
},
"phone": {
"type": "string",
"example": "联系电话"
}
}
},
"md.AppletApplicationMediumListReq": {
"type": "object",
"properties": {
"account": {
"type": "string",
"example": "媒体账号"
},
"limit": {
"type": "string"
},
"name": {
"type": "string",
"example": "媒体名称"
},
"page": {
"type": "string"
}
}
},
"md.AppletApplicationMediumListRes": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AppletApplicationMediumListData"
}
},
"total": {
"type": "integer"
}
}
},
"md.AppletApplicationSaveReq": {
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "id 多个逗号隔开"
},
"memo": {
"type": "string",
"example": "备注"
},
"state": {
"type": "string",
"example": "审核状态"
}
}
},
"md.AppletUpdateReq": {
"type": "object",
"required": [
"id",
"logo",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"logo": {
"type": "string",
"example": "小程序logo"
},
"name": {
"type": "string",
@@ -2565,6 +3219,17 @@ const docTemplate = `{
}
}
},
"md.SetMobReq": {
"type": "object",
"properties": {
"mob_app_key": {
"type": "string"
},
"mob_app_secret": {
"type": "string"
}
}
},
"md.SetOssReq": {
"type": "object",
"required": [


+ 680
- 15
docs/swagger.json Parādīt failu

@@ -339,6 +339,288 @@
}
}
},
"/api/medium/applet/application/ad/space/audit": {
"post": {
"description": "小程序应用-广告位审核",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "广告位审核",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceSaveReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/medium/applet/application/ad/space/list": {
"post": {
"description": "媒体中心-媒体列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "媒体列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容---这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/medium/applet/application/ad/space/save": {
"post": {
"description": "小程序应用-广告位列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "广告位列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容---这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/medium/applet/application/audit": {
"post": {
"description": "小程序应用-审核",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "审核",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationSaveReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/medium/applet/application/list": {
"post": {
"description": "小程序应用-列表数据",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "应用列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容---这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.AppletApplicationListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/medium/applet/application/medium/list": {
"post": {
"description": "媒体中心-媒体列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"媒体中心------嘉俊"
],
"summary": "媒体列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AppletApplicationMediumListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容---这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.AppletApplicationMediumListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/mediumQualification/bank": {
"post": {
"responses": {
@@ -1467,7 +1749,7 @@
},
"/api/setCenter/basic/getOss": {
"get": {
"description": "基础设置-oss获取",
"description": "基础设置-mob获取",
"consumes": [
"application/json"
],
@@ -1477,7 +1759,7 @@
"tags": [
"设置中心-基础设置"
],
"summary": "oss获取",
"summary": "mob获取",
"parameters": [
{
"type": "string",
@@ -1505,7 +1787,7 @@
},
"/api/setCenter/basic/setOss": {
"post": {
"description": "基础设置-oss设置",
"description": "基础设置-mob设置",
"consumes": [
"application/json"
],
@@ -1515,7 +1797,7 @@
"tags": [
"设置中心-基础设置"
],
"summary": "oss设置",
"summary": "mob设置",
"parameters": [
{
"type": "string",
@@ -1530,7 +1812,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.SetOssReq"
"$ref": "#/definitions/md.SetMobReq"
}
}
],
@@ -2170,20 +2452,392 @@
}
}
},
"md.AppletUpdateReq": {
"md.AppletApplicationAdSpaceListData": {
"type": "object",
"required": [
"id",
"logo",
"name"
],
"properties": {
"id": {
"type": "integer"
"ad_id": {
"type": "string",
"example": "广告位id"
},
"logo": {
"app_id": {
"type": "string",
"example": "小程序logo"
"example": "小程序appid"
},
"cooperate_state": {
"type": "string",
"example": "合作状态"
},
"id": {
"type": "string",
"example": "id"
},
"kind": {
"type": "string",
"example": "广告位类型"
},
"logo": {
"type": "string",
"example": "logo"
},
"memo": {
"type": "string",
"example": "备注"
},
"name": {
"type": "string",
"example": "应用名称"
},
"platform": {
"type": "string",
"example": "平台"
},
"state": {
"type": "string",
"example": "应用状态 state=2 才能再次编辑"
}
}
},
"md.AppletApplicationAdSpaceListReq": {
"type": "object",
"properties": {
"cooperate_state": {
"type": "string",
"example": "合作状态"
},
"limit": {
"type": "string"
},
"medium_id": {
"type": "string",
"example": "媒体id"
},
"name": {
"type": "string"
},
"page": {
"type": "string"
},
"platform": {
"type": "string"
}
}
},
"md.AppletApplicationAdSpaceListRes": {
"type": "object",
"properties": {
"ad_type": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"cooperate_state": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceListData"
}
},
"platform": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"state": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"total": {
"type": "integer"
}
}
},
"md.AppletApplicationAdSpaceMediumListData": {
"type": "object",
"properties": {
"account": {
"type": "string",
"example": "账号"
},
"contact_name": {
"type": "string",
"example": "联系人"
},
"count": {
"type": "string",
"example": "广告位数量"
},
"id": {
"type": "string",
"example": "id"
},
"medium_id": {
"type": "string",
"example": "媒体id"
},
"name": {
"type": "string",
"example": "名称"
},
"phone": {
"type": "string",
"example": "联系电话"
}
}
},
"md.AppletApplicationAdSpaceMediumListReq": {
"type": "object",
"properties": {
"account": {
"type": "string",
"example": "媒体账号"
},
"limit": {
"type": "string"
},
"name": {
"type": "string",
"example": "媒体名称"
},
"page": {
"type": "string"
}
}
},
"md.AppletApplicationAdSpaceMediumListRes": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListData"
}
},
"total": {
"type": "integer"
}
}
},
"md.AppletApplicationAdSpaceSaveReq": {
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "id 多个逗号隔开"
},
"memo": {
"type": "string",
"example": "备注"
},
"state": {
"type": "string",
"example": "审核状态"
}
}
},
"md.AppletApplicationListData": {
"type": "object",
"properties": {
"app_id": {
"type": "string",
"example": "小程序appid"
},
"cooperate_state": {
"type": "string",
"example": "合作状态"
},
"id": {
"type": "string",
"example": "id"
},
"logo": {
"type": "string",
"example": "logo"
},
"memo": {
"type": "string",
"example": "备注"
},
"name": {
"type": "string",
"example": "应用名称"
},
"original_id": {
"type": "string",
"example": "小程序id"
},
"platform": {
"type": "string",
"example": "平台"
},
"state": {
"type": "string",
"example": "应用状态 state=3 才能再次编辑"
}
}
},
"md.AppletApplicationListReq": {
"type": "object",
"properties": {
"cooperate_state": {
"type": "string",
"example": "合作状态"
},
"limit": {
"type": "string"
},
"medium_id": {
"type": "string",
"example": "媒体id"
},
"name": {
"type": "string"
},
"page": {
"type": "string"
},
"platform": {
"type": "string"
}
}
},
"md.AppletApplicationListRes": {
"type": "object",
"properties": {
"cooperate_state": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AppletApplicationListData"
}
},
"platform": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"state": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"total": {
"type": "integer"
}
}
},
"md.AppletApplicationMediumListData": {
"type": "object",
"properties": {
"account": {
"type": "string",
"example": "账号"
},
"contact_name": {
"type": "string",
"example": "联系人"
},
"count": {
"type": "string",
"example": "应用数量"
},
"id": {
"type": "string",
"example": "id"
},
"medium_id": {
"type": "string",
"example": "媒体id"
},
"name": {
"type": "string",
"example": "名称"
},
"phone": {
"type": "string",
"example": "联系电话"
}
}
},
"md.AppletApplicationMediumListReq": {
"type": "object",
"properties": {
"account": {
"type": "string",
"example": "媒体账号"
},
"limit": {
"type": "string"
},
"name": {
"type": "string",
"example": "媒体名称"
},
"page": {
"type": "string"
}
}
},
"md.AppletApplicationMediumListRes": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.AppletApplicationMediumListData"
}
},
"total": {
"type": "integer"
}
}
},
"md.AppletApplicationSaveReq": {
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "id 多个逗号隔开"
},
"memo": {
"type": "string",
"example": "备注"
},
"state": {
"type": "string",
"example": "审核状态"
}
}
},
"md.AppletUpdateReq": {
"type": "object",
"required": [
"id",
"logo",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"logo": {
"type": "string",
"example": "小程序logo"
},
"name": {
"type": "string",
@@ -2557,6 +3211,17 @@
}
}
},
"md.SetMobReq": {
"type": "object",
"properties": {
"mob_app_key": {
"type": "string"
},
"mob_app_secret": {
"type": "string"
}
}
},
"md.SetOssReq": {
"type": "object",
"required": [


+ 457
- 5
docs/swagger.yaml Parādīt failu

@@ -287,6 +287,265 @@ definitions:
- name
- original_id
type: object
md.AppletApplicationAdSpaceListData:
properties:
ad_id:
example: 广告位id
type: string
app_id:
example: 小程序appid
type: string
cooperate_state:
example: 合作状态
type: string
id:
example: id
type: string
kind:
example: 广告位类型
type: string
logo:
example: logo
type: string
memo:
example: 备注
type: string
name:
example: 应用名称
type: string
platform:
example: 平台
type: string
state:
example: 应用状态 state=2 才能再次编辑
type: string
type: object
md.AppletApplicationAdSpaceListReq:
properties:
cooperate_state:
example: 合作状态
type: string
limit:
type: string
medium_id:
example: 媒体id
type: string
name:
type: string
page:
type: string
platform:
type: string
type: object
md.AppletApplicationAdSpaceListRes:
properties:
ad_type:
items:
$ref: '#/definitions/md.SelectData'
type: array
cooperate_state:
items:
$ref: '#/definitions/md.SelectData'
type: array
list:
items:
$ref: '#/definitions/md.AppletApplicationAdSpaceListData'
type: array
platform:
items:
$ref: '#/definitions/md.SelectData'
type: array
state:
items:
$ref: '#/definitions/md.SelectData'
type: array
total:
type: integer
type: object
md.AppletApplicationAdSpaceMediumListData:
properties:
account:
example: 账号
type: string
contact_name:
example: 联系人
type: string
count:
example: 广告位数量
type: string
id:
example: id
type: string
medium_id:
example: 媒体id
type: string
name:
example: 名称
type: string
phone:
example: 联系电话
type: string
type: object
md.AppletApplicationAdSpaceMediumListReq:
properties:
account:
example: 媒体账号
type: string
limit:
type: string
name:
example: 媒体名称
type: string
page:
type: string
type: object
md.AppletApplicationAdSpaceMediumListRes:
properties:
list:
items:
$ref: '#/definitions/md.AppletApplicationAdSpaceMediumListData'
type: array
total:
type: integer
type: object
md.AppletApplicationAdSpaceSaveReq:
properties:
id:
example: id 多个逗号隔开
type: string
memo:
example: 备注
type: string
state:
example: 审核状态
type: string
type: object
md.AppletApplicationListData:
properties:
app_id:
example: 小程序appid
type: string
cooperate_state:
example: 合作状态
type: string
id:
example: id
type: string
logo:
example: logo
type: string
memo:
example: 备注
type: string
name:
example: 应用名称
type: string
original_id:
example: 小程序id
type: string
platform:
example: 平台
type: string
state:
example: 应用状态 state=3 才能再次编辑
type: string
type: object
md.AppletApplicationListReq:
properties:
cooperate_state:
example: 合作状态
type: string
limit:
type: string
medium_id:
example: 媒体id
type: string
name:
type: string
page:
type: string
platform:
type: string
type: object
md.AppletApplicationListRes:
properties:
cooperate_state:
items:
$ref: '#/definitions/md.SelectData'
type: array
list:
items:
$ref: '#/definitions/md.AppletApplicationListData'
type: array
platform:
items:
$ref: '#/definitions/md.SelectData'
type: array
state:
items:
$ref: '#/definitions/md.SelectData'
type: array
total:
type: integer
type: object
md.AppletApplicationMediumListData:
properties:
account:
example: 账号
type: string
contact_name:
example: 联系人
type: string
count:
example: 应用数量
type: string
id:
example: id
type: string
medium_id:
example: 媒体id
type: string
name:
example: 名称
type: string
phone:
example: 联系电话
type: string
type: object
md.AppletApplicationMediumListReq:
properties:
account:
example: 媒体账号
type: string
limit:
type: string
name:
example: 媒体名称
type: string
page:
type: string
type: object
md.AppletApplicationMediumListRes:
properties:
list:
items:
$ref: '#/definitions/md.AppletApplicationMediumListData'
type: array
total:
type: integer
type: object
md.AppletApplicationSaveReq:
properties:
id:
example: id 多个逗号隔开
type: string
memo:
example: 备注
type: string
state:
example: 审核状态
type: string
type: object
md.AppletUpdateReq:
properties:
id:
@@ -558,6 +817,13 @@ definitions:
example: 值
type: string
type: object
md.SetMobReq:
properties:
mob_app_key:
type: string
mob_app_secret:
type: string
type: object
md.SetOssReq:
properties:
file_access_key:
@@ -929,6 +1195,192 @@ paths:
summary: 登陆
tags:
- 登录
/api/medium/applet/application/ad/space/audit:
post:
consumes:
- application/json
description: 小程序应用-广告位审核
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 请求参数
in: body
name: args
required: true
schema:
$ref: '#/definitions/md.AppletApplicationAdSpaceSaveReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 广告位审核
tags:
- 媒体中心------嘉俊
/api/medium/applet/application/ad/space/list:
post:
consumes:
- application/json
description: 媒体中心-媒体列表
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 请求参数
in: body
name: args
required: true
schema:
$ref: '#/definitions/md.AppletApplicationAdSpaceMediumListReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容---这是data里面的数据
schema:
$ref: '#/definitions/md.AppletApplicationAdSpaceMediumListRes'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 媒体列表
tags:
- 媒体中心------嘉俊
/api/medium/applet/application/ad/space/save:
post:
consumes:
- application/json
description: 小程序应用-广告位列表
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 请求参数
in: body
name: args
required: true
schema:
$ref: '#/definitions/md.AppletApplicationAdSpaceListReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容---这是data里面的数据
schema:
$ref: '#/definitions/md.AppletApplicationAdSpaceListRes'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 广告位列表
tags:
- 媒体中心------嘉俊
/api/medium/applet/application/audit:
post:
consumes:
- application/json
description: 小程序应用-审核
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 请求参数
in: body
name: args
required: true
schema:
$ref: '#/definitions/md.AppletApplicationSaveReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 审核
tags:
- 媒体中心------嘉俊
/api/medium/applet/application/list:
post:
consumes:
- application/json
description: 小程序应用-列表数据
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 请求参数
in: body
name: args
required: true
schema:
$ref: '#/definitions/md.AppletApplicationListReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容---这是data里面的数据
schema:
$ref: '#/definitions/md.AppletApplicationListRes'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 应用列表
tags:
- 媒体中心------嘉俊
/api/medium/applet/application/medium/list:
post:
consumes:
- application/json
description: 媒体中心-媒体列表
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 请求参数
in: body
name: args
required: true
schema:
$ref: '#/definitions/md.AppletApplicationMediumListReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容---这是data里面的数据
schema:
$ref: '#/definitions/md.AppletApplicationMediumListRes'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 媒体列表
tags:
- 媒体中心------嘉俊
/api/mediumQualification/bank:
post:
responses:
@@ -1674,7 +2126,7 @@ paths:
get:
consumes:
- application/json
description: 基础设置-oss获取
description: 基础设置-mob获取
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
@@ -1692,14 +2144,14 @@ paths:
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: oss获取
summary: mob获取
tags:
- 设置中心-基础设置
/api/setCenter/basic/setOss:
post:
consumes:
- application/json
description: 基础设置-oss设置
description: 基础设置-mob设置
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
@@ -1711,7 +2163,7 @@ paths:
name: args
required: true
schema:
$ref: '#/definitions/md.SetOssReq'
$ref: '#/definitions/md.SetMobReq'
produces:
- application/json
responses:
@@ -1723,7 +2175,7 @@ paths:
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: oss设置
summary: mob设置
tags:
- 设置中心-基础设置
/api/setCenter/basic/wxOpenGet:


Notiek ielāde…
Atcelt
Saglabāt