dengbiao il y a 1 mois
Parent
révision
531e00bf35
9 fichiers modifiés avec 1234 ajouts et 24 suppressions
  1. +6
    -0
      app/hdl/hdl_data_center_generate_data.go
  2. +9
    -9
      app/hdl/hdl_finance_index.go
  3. +9
    -9
      app/hdl/hdl_operator_index.go
  4. +3
    -2
      app/svc/svc_finance_index.go
  5. +3
    -2
      app/svc/svc_index.go
  6. +3
    -2
      app/svc/svc_operator_index.go
  7. +451
    -0
      docs/docs.go
  8. +451
    -0
      docs/swagger.json
  9. +299
    -0
      docs/swagger.yaml

+ 6
- 0
app/hdl/hdl_data_center_generate_data.go Voir le fichier

@@ -5,6 +5,7 @@ import (
"applet/app/lib/validate"
"applet/app/md"
"applet/app/svc"
"fmt"
"github.com/gin-gonic/gin"
)

@@ -127,6 +128,11 @@ func GenerateDataDoing(c *gin.Context) {
return
}
res := svc.DataCenterGenerateDataDoing(c, req)
if res != nil {
fmt.Println(res.Error())
e.OutErr(c, 400, e.NewErr(400, "生成失败"))
return
}
e.OutSuc(c, res, nil)
return
}


+ 9
- 9
app/hdl/hdl_finance_index.go Voir le fichier

@@ -10,29 +10,29 @@ import (

// FinanceIndexTotal
// @Summary 统计数据
// @Tags 首页------嘉俊
// @Description 首页-统计数据
// @Tags 财务首页------嘉俊
// @Description 财务首页-统计数据
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json
// @Produce json
// @Success 200 {string} "具体看返回内容 这是data里面的数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/index/total [GET]
// @Router /api/financeIndex/total [GET]
func FinanceIndexTotal(c *gin.Context) {
svc.FinanceIndexTotal(c)
}

// FinanceIndexAppList
// @Summary 应用数据
// @Tags 首页------嘉俊
// @Description 首页-应用数据
// @Tags 财务首页------嘉俊
// @Description 财务首页-应用数据
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json
// @Produce json
// @Param args body md.IndexAppListReq true "请求参数"
// @Success 200 {object} md.IndexAppListRes "具体看返回内容 这是data里面的数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/index/app/list [POST]
// @Router /api/financeIndex/app/list [POST]
func FinanceIndexAppList(c *gin.Context) {
var req md.IndexAppListReq
err := c.ShouldBindJSON(&req)
@@ -49,15 +49,15 @@ func FinanceIndexAppList(c *gin.Context) {

// FinanceIndexAppListTable
// @Summary 应用数据-每个应用的折线图
// @Tags 首页------嘉俊
// @Description 首页-应用数据-每个应用的折线图
// @Tags 财务首页------嘉俊
// @Description 财务首页-应用数据-每个应用的折线图
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json
// @Produce json
// @Param args body md.IndexAppListTableReq true "请求参数"
// @Success 200 {string} "具体看返回内容 "
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/index/app/list/table [POST]
// @Router /api/financeIndex/app/list/table [POST]
func FinanceIndexAppListTable(c *gin.Context) {
var req md.IndexAppListTableReq
err := c.ShouldBindJSON(&req)


+ 9
- 9
app/hdl/hdl_operator_index.go Voir le fichier

@@ -10,29 +10,29 @@ import (

// OperatorIndexTotal
// @Summary 统计数据
// @Tags 首页------嘉俊
// @Description 首页-统计数据
// @Tags 运营首页------嘉俊
// @Description 运营首页-统计数据
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json
// @Produce json
// @Success 200 {string} "具体看返回内容 这是data里面的数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/index/total [GET]
// @Router /api/operatorIndex/total [GET]
func OperatorIndexTotal(c *gin.Context) {
svc.OperatorIndexTotal(c)
}

// OperatorIndexAppList
// @Summary 应用数据
// @Tags 首页------嘉俊
// @Description 首页-应用数据
// @Tags 运营首页------嘉俊
// @Description 运营首页-应用数据
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json
// @Produce json
// @Param args body md.IndexAppListReq true "请求参数"
// @Success 200 {object} md.IndexAppListRes "具体看返回内容 这是data里面的数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/index/app/list [POST]
// @Router /api/operatorIndex/app/list [POST]
func OperatorIndexAppList(c *gin.Context) {
var req md.IndexAppListReq
err := c.ShouldBindJSON(&req)
@@ -49,15 +49,15 @@ func OperatorIndexAppList(c *gin.Context) {

// OperatorIndexAppListTable
// @Summary 应用数据-每个应用的折线图
// @Tags 首页------嘉俊
// @Description 首页-应用数据-每个应用的折线图
// @Tags 运营首页------嘉俊
// @Description 运营首页-应用数据-每个应用的折线图
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json
// @Produce json
// @Param args body md.IndexAppListTableReq true "请求参数"
// @Success 200 {string} "具体看返回内容 "
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/index/app/list/table [POST]
// @Router /api/operatorIndex/app/list/table [POST]
func OperatorIndexAppListTable(c *gin.Context) {
var req md.IndexAppListTableReq
err := c.ShouldBindJSON(&req)


+ 3
- 2
app/svc/svc_finance_index.go Voir le fichier

@@ -116,7 +116,7 @@ func FinanceBeforeSevenPoint(c *gin.Context, req md.IndexAppListTableReq) map[st
for _, v := range date {
for k1, v1 := range dateList {
if strings.Contains(v1, v["date"]) {
appData[v["app_id"]][k1] = utils.Float64ToStr(utils.StrToFloat64(appData[v["app_id"]][k1]) + utils.StrToFloat64(v["media_revenue"]))
appData[v["app_id"]][k1] = utils.Float64ToStr(utils.StrToFloat64(appData[v["app_id"]][k1]) + utils.StrToFloat64(v["media_revenue"])/100)
}
}
}
@@ -160,7 +160,7 @@ func FinanceIndexAppList(c *gin.Context, req md.IndexAppListReq) md.IndexAppList
}
dataList := []md.IndexAppListDataList{
{Name: "广告预估收益", Type: "media_revenue", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "media_revenue"), Value: utils.Float64ToStr(utils.StrToFloat64(v["media_revenue"]) / 100)},
{Name: "ECPM", Type: "ecpm", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "ecpm"), Value: utils.Float64ToStr(utils.StrToFloat64(v["ecpm"]) / float64(day))},
{Name: "ECPM", Type: "ecpm", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "ecpm"), Value: utils.Float64ToStr(utils.StrToFloat64(v["ecpm"]) / 100 / utils.StrToFloat64(v["count"]))},
{Name: "曝光量", Type: "exposure_count", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "exposure_count"), Value: v["exposure_count"]},
{Name: "点击量", Type: "click_count", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "click_count"), Value: v["click_count"]},
{Name: "点击率", Type: "click_rate", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "click_rate"), Value: utils.GetPrec(v["click_rate"], "2") + "%"},
@@ -218,6 +218,7 @@ func commFinanceTotal(c *gin.Context, startDate, endDate string) []map[string]st
func commFinanceTotalByApp(c *gin.Context, req md.IndexAppListReq, appId []string) []map[string]string {
sql := `
SELECT
COUNT(*) as count,
app_id as app_id,
SUM(exposure_count) as exposure_count,
SUM(click_count) as click_count,


+ 3
- 2
app/svc/svc_index.go Voir le fichier

@@ -128,7 +128,7 @@ func BeforeSevenPoint(c *gin.Context, req md.IndexAppListTableReq) map[string][]
for _, v := range date {
for k1, v1 := range dateList {
if strings.Contains(v1, v["date"]) {
appData[v["app_id"]][k1] = utils.Float64ToStr(utils.StrToFloat64(appData[v["app_id"]][k1]) + utils.StrToFloat64(v["media_revenue"]))
appData[v["app_id"]][k1] = utils.Float64ToStr(utils.StrToFloat64(appData[v["app_id"]][k1]) + utils.StrToFloat64(v["media_revenue"])/100)
}
}
}
@@ -172,7 +172,7 @@ func IndexAppList(c *gin.Context, req md.IndexAppListReq) md.IndexAppListRes {
}
dataList := []md.IndexAppListDataList{
{Name: "广告预估收益", Type: "media_revenue", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "media_revenue"), Value: utils.Float64ToStr(utils.StrToFloat64(v["media_revenue"]) / 100)},
{Name: "ECPM", Type: "ecpm", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "ecpm"), Value: utils.Float64ToStr(utils.StrToFloat64(v["ecpm"]) / float64(day))},
{Name: "ECPM", Type: "ecpm", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "ecpm"), Value: utils.Float64ToStr(utils.StrToFloat64(v["ecpm"]) / 100 / utils.StrToFloat64(v["count"]))},
{Name: "曝光量", Type: "exposure_count", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "exposure_count"), Value: v["exposure_count"]},
{Name: "点击量", Type: "click_count", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "click_count"), Value: v["click_count"]},
{Name: "点击率", Type: "click_rate", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "click_rate"), Value: utils.GetPrec(v["click_rate"], "2") + "%"},
@@ -229,6 +229,7 @@ func commTotal(c *gin.Context, startDate, endDate string) []map[string]string {
func commTotalByApp(c *gin.Context, req md.IndexAppListReq, appId []string) []map[string]string {
sql := `
SELECT
COUNT(*) as count,
app_id as app_id,
SUM(exposure_count) as exposure_count,
SUM(click_count) as click_count,


+ 3
- 2
app/svc/svc_operator_index.go Voir le fichier

@@ -79,7 +79,7 @@ func OperatorBeforeSevenPoint(c *gin.Context, req md.IndexAppListTableReq) map[s
for _, v := range date {
for k1, v1 := range dateList {
if strings.Contains(v1, v["date"]) {
appData[v["app_id"]][k1] = utils.Float64ToStr(utils.StrToFloat64(appData[v["app_id"]][k1]) + utils.StrToFloat64(v["media_revenue"]))
appData[v["app_id"]][k1] = utils.Float64ToStr(utils.StrToFloat64(appData[v["app_id"]][k1]) + utils.StrToFloat64(v["media_revenue"])/100)
}
}
}
@@ -123,7 +123,7 @@ func OperatorIndexAppList(c *gin.Context, req md.IndexAppListReq) md.IndexAppLis
}
dataList := []md.IndexAppListDataList{
{Name: "广告预估收益", Type: "media_revenue", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "media_revenue"), Value: utils.Float64ToStr(utils.StrToFloat64(v["media_revenue"]) / 100)},
{Name: "ECPM", Type: "ecpm", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "ecpm"), Value: utils.Float64ToStr(utils.StrToFloat64(v["ecpm"]) / float64(day))},
{Name: "ECPM", Type: "ecpm", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "ecpm"), Value: utils.Float64ToStr(utils.StrToFloat64(v["ecpm"]) / 100 / utils.StrToFloat64(v["count"]))},
{Name: "曝光量", Type: "exposure_count", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "exposure_count"), Value: v["exposure_count"]},
{Name: "点击量", Type: "click_count", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "click_count"), Value: v["click_count"]},
{Name: "点击率", Type: "click_rate", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "click_rate"), Value: utils.GetPrec(v["click_rate"], "2") + "%"},
@@ -180,6 +180,7 @@ func commOperatorTotal(c *gin.Context, startDate, endDate string) []map[string]s
func commOperatorTotalByApp(c *gin.Context, req md.IndexAppListReq, appId []string) []map[string]string {
sql := `
SELECT
COUNT(*) as count,
app_id as app_id,
SUM(exposure_count) as exposure_count,
SUM(click_count) as click_count,


+ 451
- 0
docs/docs.go Voir le fichier

@@ -1878,6 +1878,138 @@ const docTemplate = `{
}
}
},
"/api/financeIndex/app/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.IndexAppListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.IndexAppListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financeIndex/app/list/table": {
"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.IndexAppListTableReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financeIndex/total": {
"get": {
"description": "财务首页-统计数据",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"财务首页------嘉俊"
],
"summary": "统计数据",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/agent/list": {
"post": {
"description": "资产动态-代理预付",
@@ -3216,6 +3348,138 @@ const docTemplate = `{
}
}
},
"/api/operatorIndex/app/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.IndexAppListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.IndexAppListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/operatorIndex/app/list/table": {
"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.IndexAppListTableReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/operatorIndex/total": {
"get": {
"description": "运营首页-统计数据",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"运营首页------嘉俊"
],
"summary": "统计数据",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/qiniuyun/upload": {
"post": {
"description": "七牛云-七牛云上传",
@@ -4528,6 +4792,44 @@ const docTemplate = `{
}
}
},
"/api/setCenter/basic/getSeo": {
"get": {
"description": "基础设置-logo获取",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"设置中心-基础设置"
],
"summary": "Seo获取",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/md.SetSeoResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/setCenter/basic/setLogo": {
"post": {
"description": "基础设置-logo设置",
@@ -4669,6 +4971,53 @@ const docTemplate = `{
}
}
},
"/api/setCenter/basic/setSeo": {
"post": {
"description": "基础设置-logo设置",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"设置中心-基础设置"
],
"summary": "Seo设置",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.SetSeoReq"
}
}
],
"responses": {
"200": {
"description": "success",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/setCenter/basic/wxOpenGet": {
"get": {
"description": "基础设置-微信三方应用获取",
@@ -5219,11 +5568,23 @@ const docTemplate = `{
"name"
],
"properties": {
"label": {
"type": "string"
},
"logo": {
"type": "string"
},
"memo": {
"type": "string"
},
"name": {
"type": "string"
},
"seo_logo": {
"type": "string"
},
"seo_title": {
"type": "string"
}
}
},
@@ -6637,6 +6998,14 @@ const docTemplate = `{
"id": {
"type": "string",
"example": "列表id"
},
"now_ecpm": {
"type": "string",
"example": "现-广告千次曝光收益(元)"
},
"now_exposure_count": {
"type": "string",
"example": "现-曝光量"
}
}
},
@@ -8033,14 +8402,26 @@ const docTemplate = `{
"md.MediumDivisionStrategy": {
"type": "object",
"properties": {
"agent_revenue": {
"type": "string",
"example": "代理收益"
},
"agent_revenue_rate": {
"type": "string",
"example": "代理收益百分比"
},
"agreement_sharing": {
"type": "string",
"example": "协议分成"
},
"agreement_sharing_rate": {
"type": "string",
"example": "协议分成百分比"
},
"commission_retention": {
"type": "string",
"example": "佣金留存"
},
"commission_retention_rate": {
"type": "string",
"example": "佣金留存百分比"
@@ -8053,10 +8434,18 @@ const docTemplate = `{
"type": "string",
"example": "曝光量"
},
"extra_revenue": {
"type": "string",
"example": "额外收益"
},
"extra_revenue_rate": {
"type": "string",
"example": "额外收益百分比"
},
"media_revenue": {
"type": "string",
"example": "媒体收益"
},
"media_revenue_rate": {
"type": "string",
"example": "媒体收益百分比"
@@ -8065,6 +8454,10 @@ const docTemplate = `{
"type": "string",
"example": "原-ecpm(元)"
},
"platform_retention": {
"type": "string",
"example": "平台留存"
},
"platform_retention_rate": {
"type": "string",
"example": "平台留存百分比"
@@ -8082,6 +8475,10 @@ const docTemplate = `{
"type": "string",
"example": "营业执照地址"
},
"business_license_img": {
"type": "string",
"example": "营业执照图片"
},
"company_name": {
"type": "string",
"example": "公司名称"
@@ -8605,9 +9002,15 @@ const docTemplate = `{
"md.SetLogoReq": {
"type": "object",
"properties": {
"agent_login_logo": {
"type": "string"
},
"agent_logo": {
"type": "string"
},
"medium_login_logo": {
"type": "string"
},
"medium_logo": {
"type": "string"
}
@@ -8689,6 +9092,42 @@ const docTemplate = `{
}
}
},
"md.SetSeoReq": {
"type": "object",
"properties": {
"seo_agent_logo": {
"type": "string"
},
"seo_agent_title": {
"type": "string"
},
"seo_medium_logo": {
"type": "string"
},
"seo_medium_title": {
"type": "string"
},
"seo_platform_logo": {
"type": "string"
},
"seo_platform_title": {
"type": "string"
}
}
},
"md.SetSeoResp": {
"type": "object",
"properties": {
"data": {
"description": "数据内容",
"allOf": [
{
"$ref": "#/definitions/md.SetSeoReq"
}
]
}
}
},
"md.SettleCenterDataData": {
"type": "object",
"properties": {
@@ -8930,6 +9369,12 @@ const docTemplate = `{
"role_id"
],
"properties": {
"label": {
"type": "string"
},
"logo": {
"type": "string"
},
"memo": {
"type": "string"
},
@@ -8938,6 +9383,12 @@ const docTemplate = `{
},
"role_id": {
"type": "integer"
},
"seo_logo": {
"type": "string"
},
"seo_title": {
"type": "string"
}
}
},


+ 451
- 0
docs/swagger.json Voir le fichier

@@ -1870,6 +1870,138 @@
}
}
},
"/api/financeIndex/app/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.IndexAppListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.IndexAppListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financeIndex/app/list/table": {
"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.IndexAppListTableReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financeIndex/total": {
"get": {
"description": "财务首页-统计数据",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"财务首页------嘉俊"
],
"summary": "统计数据",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/agent/list": {
"post": {
"description": "资产动态-代理预付",
@@ -3208,6 +3340,138 @@
}
}
},
"/api/operatorIndex/app/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.IndexAppListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.IndexAppListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/operatorIndex/app/list/table": {
"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.IndexAppListTableReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 ",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/operatorIndex/total": {
"get": {
"description": "运营首页-统计数据",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"运营首页------嘉俊"
],
"summary": "统计数据",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/qiniuyun/upload": {
"post": {
"description": "七牛云-七牛云上传",
@@ -4520,6 +4784,44 @@
}
}
},
"/api/setCenter/basic/getSeo": {
"get": {
"description": "基础设置-logo获取",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"设置中心-基础设置"
],
"summary": "Seo获取",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/md.SetSeoResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/setCenter/basic/setLogo": {
"post": {
"description": "基础设置-logo设置",
@@ -4661,6 +4963,53 @@
}
}
},
"/api/setCenter/basic/setSeo": {
"post": {
"description": "基础设置-logo设置",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"设置中心-基础设置"
],
"summary": "Seo设置",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "请求参数",
"name": "args",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.SetSeoReq"
}
}
],
"responses": {
"200": {
"description": "success",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/setCenter/basic/wxOpenGet": {
"get": {
"description": "基础设置-微信三方应用获取",
@@ -5211,11 +5560,23 @@
"name"
],
"properties": {
"label": {
"type": "string"
},
"logo": {
"type": "string"
},
"memo": {
"type": "string"
},
"name": {
"type": "string"
},
"seo_logo": {
"type": "string"
},
"seo_title": {
"type": "string"
}
}
},
@@ -6629,6 +6990,14 @@
"id": {
"type": "string",
"example": "列表id"
},
"now_ecpm": {
"type": "string",
"example": "现-广告千次曝光收益(元)"
},
"now_exposure_count": {
"type": "string",
"example": "现-曝光量"
}
}
},
@@ -8025,14 +8394,26 @@
"md.MediumDivisionStrategy": {
"type": "object",
"properties": {
"agent_revenue": {
"type": "string",
"example": "代理收益"
},
"agent_revenue_rate": {
"type": "string",
"example": "代理收益百分比"
},
"agreement_sharing": {
"type": "string",
"example": "协议分成"
},
"agreement_sharing_rate": {
"type": "string",
"example": "协议分成百分比"
},
"commission_retention": {
"type": "string",
"example": "佣金留存"
},
"commission_retention_rate": {
"type": "string",
"example": "佣金留存百分比"
@@ -8045,10 +8426,18 @@
"type": "string",
"example": "曝光量"
},
"extra_revenue": {
"type": "string",
"example": "额外收益"
},
"extra_revenue_rate": {
"type": "string",
"example": "额外收益百分比"
},
"media_revenue": {
"type": "string",
"example": "媒体收益"
},
"media_revenue_rate": {
"type": "string",
"example": "媒体收益百分比"
@@ -8057,6 +8446,10 @@
"type": "string",
"example": "原-ecpm(元)"
},
"platform_retention": {
"type": "string",
"example": "平台留存"
},
"platform_retention_rate": {
"type": "string",
"example": "平台留存百分比"
@@ -8074,6 +8467,10 @@
"type": "string",
"example": "营业执照地址"
},
"business_license_img": {
"type": "string",
"example": "营业执照图片"
},
"company_name": {
"type": "string",
"example": "公司名称"
@@ -8597,9 +8994,15 @@
"md.SetLogoReq": {
"type": "object",
"properties": {
"agent_login_logo": {
"type": "string"
},
"agent_logo": {
"type": "string"
},
"medium_login_logo": {
"type": "string"
},
"medium_logo": {
"type": "string"
}
@@ -8681,6 +9084,42 @@
}
}
},
"md.SetSeoReq": {
"type": "object",
"properties": {
"seo_agent_logo": {
"type": "string"
},
"seo_agent_title": {
"type": "string"
},
"seo_medium_logo": {
"type": "string"
},
"seo_medium_title": {
"type": "string"
},
"seo_platform_logo": {
"type": "string"
},
"seo_platform_title": {
"type": "string"
}
}
},
"md.SetSeoResp": {
"type": "object",
"properties": {
"data": {
"description": "数据内容",
"allOf": [
{
"$ref": "#/definitions/md.SetSeoReq"
}
]
}
}
},
"md.SettleCenterDataData": {
"type": "object",
"properties": {
@@ -8922,6 +9361,12 @@
"role_id"
],
"properties": {
"label": {
"type": "string"
},
"logo": {
"type": "string"
},
"memo": {
"type": "string"
},
@@ -8930,6 +9375,12 @@
},
"role_id": {
"type": "integer"
},
"seo_logo": {
"type": "string"
},
"seo_title": {
"type": "string"
}
}
},


+ 299
- 0
docs/swagger.yaml Voir le fichier

@@ -36,10 +36,18 @@ definitions:
type: object
md.AddRoleReq:
properties:
label:
type: string
logo:
type: string
memo:
type: string
name:
type: string
seo_logo:
type: string
seo_title:
type: string
required:
- memo
- name
@@ -1037,6 +1045,12 @@ definitions:
id:
example: 列表id
type: string
now_ecpm:
example: 现-广告千次曝光收益(元)
type: string
now_exposure_count:
example: 现-曝光量
type: string
type: object
md.DataCenterOriginalDataData:
properties:
@@ -2002,12 +2016,21 @@ definitions:
type: object
md.MediumDivisionStrategy:
properties:
agent_revenue:
example: 代理收益
type: string
agent_revenue_rate:
example: 代理收益百分比
type: string
agreement_sharing:
example: 协议分成
type: string
agreement_sharing_rate:
example: 协议分成百分比
type: string
commission_retention:
example: 佣金留存
type: string
commission_retention_rate:
example: 佣金留存百分比
type: string
@@ -2017,15 +2040,24 @@ definitions:
exposure_count:
example: 曝光量
type: string
extra_revenue:
example: 额外收益
type: string
extra_revenue_rate:
example: 额外收益百分比
type: string
media_revenue:
example: 媒体收益
type: string
media_revenue_rate:
example: 媒体收益百分比
type: string
old_ecpm:
example: 原-ecpm(元)
type: string
platform_retention:
example: 平台留存
type: string
platform_retention_rate:
example: 平台留存百分比
type: string
@@ -2038,6 +2070,9 @@ definitions:
business_license_address:
example: 营业执照地址
type: string
business_license_img:
example: 营业执照图片
type: string
company_name:
example: 公司名称
type: string
@@ -2404,8 +2439,12 @@ definitions:
type: object
md.SetLogoReq:
properties:
agent_login_logo:
type: string
agent_logo:
type: string
medium_login_logo:
type: string
medium_logo:
type: string
type: object
@@ -2459,6 +2498,28 @@ definitions:
$ref: '#/definitions/md.QiNiuBucketRegion'
type: array
type: object
md.SetSeoReq:
properties:
seo_agent_logo:
type: string
seo_agent_title:
type: string
seo_medium_logo:
type: string
seo_medium_title:
type: string
seo_platform_logo:
type: string
seo_platform_title:
type: string
type: object
md.SetSeoResp:
properties:
data:
allOf:
- $ref: '#/definitions/md.SetSeoReq'
description: 数据内容
type: object
md.SettleCenterDataData:
properties:
account:
@@ -2618,12 +2679,20 @@ definitions:
type: object
md.UpdateRoleReq:
properties:
label:
type: string
logo:
type: string
memo:
type: string
name:
type: string
role_id:
type: integer
seo_logo:
type: string
seo_title:
type: string
required:
- memo
- name
@@ -3925,6 +3994,93 @@ paths:
summary: 平台报表
tags:
- 财务中心------嘉俊
/api/financeIndex/app/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.IndexAppListReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容 这是data里面的数据
schema:
$ref: '#/definitions/md.IndexAppListRes'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 应用数据
tags:
- 财务首页------嘉俊
/api/financeIndex/app/list/table:
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.IndexAppListTableReq'
produces:
- application/json
responses:
"200":
description: '具体看返回内容 '
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 应用数据-每个应用的折线图
tags:
- 财务首页------嘉俊
/api/financeIndex/total:
get:
consumes:
- application/json
description: 财务首页-统计数据
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
produces:
- application/json
responses:
"200":
description: 具体看返回内容 这是data里面的数据
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 统计数据
tags:
- 财务首页------嘉俊
/api/financialDynamics/agent/list:
post:
consumes:
@@ -4807,6 +4963,93 @@ paths:
summary: 主体资质审核
tags:
- 媒体资质------嘉俊
/api/operatorIndex/app/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.IndexAppListReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容 这是data里面的数据
schema:
$ref: '#/definitions/md.IndexAppListRes'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 应用数据
tags:
- 运营首页------嘉俊
/api/operatorIndex/app/list/table:
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.IndexAppListTableReq'
produces:
- application/json
responses:
"200":
description: '具体看返回内容 '
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 应用数据-每个应用的折线图
tags:
- 运营首页------嘉俊
/api/operatorIndex/total:
get:
consumes:
- application/json
description: 运营首页-统计数据
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
produces:
- application/json
responses:
"200":
description: 具体看返回内容 这是data里面的数据
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 统计数据
tags:
- 运营首页------嘉俊
/api/qiniuyun/upload:
post:
consumes:
@@ -5671,6 +5914,31 @@ paths:
summary: oss获取
tags:
- 设置中心-基础设置
/api/setCenter/basic/getSeo:
get:
consumes:
- application/json
description: 基础设置-logo获取
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/md.SetSeoResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: Seo获取
tags:
- 设置中心-基础设置
/api/setCenter/basic/setLogo:
post:
consumes:
@@ -5764,6 +6032,37 @@ paths:
summary: oss设置
tags:
- 设置中心-基础设置
/api/setCenter/basic/setSeo:
post:
consumes:
- application/json
description: 基础设置-logo设置
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 请求参数
in: body
name: args
required: true
schema:
$ref: '#/definitions/md.SetSeoReq'
produces:
- application/json
responses:
"200":
description: success
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: Seo设置
tags:
- 设置中心-基础设置
/api/setCenter/basic/wxOpenGet:
get:
consumes:


Chargement…
Annuler
Enregistrer