Ver código fonte

更新

master
huangjiajun 2 meses atrás
pai
commit
5451db829d
10 arquivos alterados com 1984 adições e 19 exclusões
  1. +94
    -1
      app/hdl/hdl_financial_dynamics.go
  2. +9
    -6
      app/md/fin_agent_flow.go
  3. +8
    -6
      app/md/fin_medium_flow.go
  4. +54
    -0
      app/md/md_financial_dynamics.go
  5. +4
    -0
      app/md/md_settle_center.go
  6. +4
    -0
      app/router/router.go
  7. +231
    -6
      app/svc/svc_financial_dynamics.go
  8. +590
    -0
      docs/docs.go
  9. +590
    -0
      docs/swagger.json
  10. +400
    -0
      docs/swagger.yaml

+ 94
- 1
app/hdl/hdl_financial_dynamics.go Ver arquivo

@@ -18,7 +18,7 @@ import (
// @Param args body md.FinancialDynamicsMediumTotalReq true "请求参数"
// @Success 200 {object} md.FinancialDynamicsMediumTotalRes "具体看返回内容 这是data里面的数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/financialDynamics/medium/list [POST]
// @Router /api/financialDynamics/medium/total [POST]
func FinancialDynamicsMediumTotal(c *gin.Context) {
var req md.FinancialDynamicsMediumTotalReq
err := c.ShouldBindJSON(&req)
@@ -57,6 +57,99 @@ func FinancialDynamicsMediumList(c *gin.Context) {
e.OutSuc(c, res, nil)
return
}

// FinancialDynamicsMediumSave
// @Summary 媒体预付-创建
// @Tags 资产动态------嘉俊
// @Description 资产动态-媒体预付-创建
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json
// @Produce json
// @Param args body md.FinancialDynamicsMediumSaveReq true "请求参数"
// @Success 200 {string} "具体看返回内容 这是data里面的数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/financialDynamics/medium/save [POST]
func FinancialDynamicsMediumSave(c *gin.Context) {
var req md.FinancialDynamicsMediumSaveReq
err := c.ShouldBindJSON(&req)
if err != nil {
err = validate.HandleValidateErr(err)
err1 := err.(e.E)
e.OutErr(c, err1.Code, err1.Error())
return
}
svc.FinancialDynamicsMediumSave(c, req)
}

// FinancialDynamicsAgentTotal
// @Summary 代理预付-统计
// @Tags 资产动态------嘉俊
// @Description 资产动态-代理预付-统计
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json
// @Produce json
// @Param args body md.FinancialDynamicsAgentTotalReq true "请求参数"
// @Success 200 {object} md.FinancialDynamicsAgentTotalRes "具体看返回内容 这是data里面的数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/financialDynamics/agent/total [POST]
func FinancialDynamicsAgentTotal(c *gin.Context) {
var req md.FinancialDynamicsAgentTotalReq
err := c.ShouldBindJSON(&req)
if err != nil {
err = validate.HandleValidateErr(err)
err1 := err.(e.E)
e.OutErr(c, err1.Code, err1.Error())
return
}
res := svc.FinancialDynamicsAgentTotal(c, req)
e.OutSuc(c, res, nil)
return
}

// FinancialDynamicsAgentList
// @Summary 代理预付
// @Tags 资产动态------嘉俊
// @Description 资产动态-代理预付
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json
// @Produce json
// @Param args body md.FinancialDynamicsAgentListReq true "请求参数"
// @Success 200 {object} md.FinancialDynamicsAgentListRes "具体看返回内容 这是data里面的数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/financialDynamics/agent/list [POST]
func FinancialDynamicsAgentList(c *gin.Context) {
var req md.FinancialDynamicsAgentListReq
err := c.ShouldBindJSON(&req)
if err != nil {
err = validate.HandleValidateErr(err)
err1 := err.(e.E)
e.OutErr(c, err1.Code, err1.Error())
return
}
res := svc.FinancialDynamicsAgentList(c, req)
e.OutSuc(c, res, nil)
return
}

// FinancialDynamicsAgentSave
// @Summary 代理预付-创建
// @Tags 资产动态------嘉俊
// @Description 资产动态-代理预付-创建
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json
// @Produce json
// @Param args body md.FinancialDynamicsAgentSaveReq true "请求参数"
// @Success 200 {string} "具体看返回内容 这是data里面的数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/financialDynamics/agent/save [POST]
func FinancialDynamicsAgentSave(c *gin.Context) {
var req md.FinancialDynamicsAgentSaveReq
err := c.ShouldBindJSON(&req)
if err != nil {
err = validate.HandleValidateErr(err)
err1 := err.(e.E)
e.OutErr(c, err1.Code, err1.Error())
return
}
svc.FinancialDynamicsAgentSave(c, req)
}

+ 9
- 6
app/md/fin_agent_flow.go Ver arquivo

@@ -10,15 +10,18 @@ const (
)

const (
AdminUpdateAddTitleForAgentFlow = "管理员修改增加"
AdminUpdateSubTitleForAgentFlow = "管理员修改减少"
SettlementSubTitleForAgentFlow = "结算款扣除"
AdminUpdateAddTitleForAgentFlow = "管理员修改增加"
AdminUpdateSubTitleForAgentFlow = "管理员修改减少"
SettlementSubTitleForAgentFlow = "结算款扣除"
FinancialDynamicsTitleKindForAgentFlow = "平台预付"
)

const (
AdminUpdateAddKindForAgentFlow = 1 // 管理员修改增加
AdminUpdateSubKindForAgentFlow = 2 // 管理员修改增加
SettlementSubKindForAgentFlow = 3 // 结算款扣除
AdminUpdateAddKindForAgentFlow = 1 // 管理员修改增加
AdminUpdateSubKindForAgentFlow = 2 // 管理员修改增加
SettlementSubKindForAgentFlow = 3 // 结算款扣除
FinancialDynamicsKindForAgentFlow = 4 // 平台预付

)

const DealAgentAmountRequestIdPrefix = "%s:deal_agent_amount:%d"


+ 8
- 6
app/md/fin_medium_flow.go Ver arquivo

@@ -10,15 +10,17 @@ const (
)

const (
AdminUpdateAddTitleForMediumFlow = "管理员修改增加"
AdminUpdateSubTitleForMediumFlow = "管理员修改减少"
SettlementSubTitleForMediumFlow = "结算款扣除"
AdminUpdateAddTitleForMediumFlow = "管理员修改增加"
AdminUpdateSubTitleForMediumFlow = "管理员修改减少"
SettlementSubTitleForMediumFlow = "结算款扣除"
FinancialDynamicsTitleKindForMediumFlow = "平台预付"
)

const (
AdminUpdateAddKindForMediumFlow = 1 // 管理员修改增加
AdminUpdateSubKindForMediumFlow = 2 // 管理员修改增加
SettlementSubKindForMediumFlow = 3 // 结算款扣除
AdminUpdateAddKindForMediumFlow = 1 // 管理员修改增加
AdminUpdateSubKindForMediumFlow = 2 // 管理员修改增加
SettlementSubKindForMediumFlow = 3 // 结算款扣除
FinancialDynamicsKindForMediumFlow = 4 // 平台预付
)

const DealMediumAmountRequestIdPrefix = "%s:deal_medium_amount:%d"


+ 54
- 0
app/md/md_financial_dynamics.go Ver arquivo

@@ -37,3 +37,57 @@ type FinancialDynamicsMediumTotalRes struct {
UseAmount string `json:"use_amount" example:"已消耗金额"`
PayCount string `json:"pay_count" example:"预付次数"`
}
type FinancialDynamicsMediumSaveReq struct {
Uid string `json:"uid"`
Amount string `json:"amount" example:"支付金额"`
PayMethod string `json:"pay_method" example:"支付方式 0对私 1对公"`
Certificate string `json:"certificate" example:"支付凭证"`
Memo string `json:"memo" example:"备注"`
BusinessKind string `json:"business_kind" example:"支付类型(1:广告合作)"`
}

type FinancialDynamicsAgentListReq struct {
Limit string `json:"limit"`
Page string `json:"page" `
Uid string `json:"uid" example:""`
StartTime string `json:"start_time" example:"2024-08-29 00:00:00"`
EndTime string `json:"end_time" `
}
type FinancialDynamicsAgentTotalReq struct {
Uid string `json:"uid" example:""`
StartTime string `json:"start_time" example:"2024-08-29 00:00:00"`
EndTime string `json:"end_time" `
}

type FinancialDynamicsAgentListRes struct {
List []FinancialDynamicsAgentListData `json:"list" `
Total int64 `json:"total"`
User []SelectData `json:"user"`
BusinessKind []SelectData `json:"business_kind"`
PayMethod []SelectData `json:"pay_method"`
}

type FinancialDynamicsAgentListData struct {
Id string `json:"id"`
Name string `json:"name"`
PayTime string `json:"pay_time" example:"支付时间"`
Amount string `json:"amount" example:"支付金额"`
PayMethod string `json:"pay_method" example:"支付方式 0对私 1对公"`
Certificate string `json:"certificate" example:"支付凭证"`
Memo string `json:"memo" example:"备注"`
BusinessKind string `json:"business_kind" example:"支付类型(1:广告合作)"`
}
type FinancialDynamicsAgentTotalRes struct {
BalanceAmount string `json:"balance_amount" example:"账户余额"`
AllAmount string `json:"all_amount" example:"预付总金额"`
UseAmount string `json:"use_amount" example:"已消耗金额"`
PayCount string `json:"pay_count" example:"预付次数"`
}
type FinancialDynamicsAgentSaveReq struct {
Uid string `json:"uid"`
Amount string `json:"amount" example:"支付金额"`
PayMethod string `json:"pay_method" example:"支付方式 0对私 1对公"`
Certificate string `json:"certificate" example:"支付凭证"`
Memo string `json:"memo" example:"备注"`
BusinessKind string `json:"business_kind" example:"支付类型(1:广告合作)"`
}

+ 4
- 0
app/md/md_settle_center.go Ver arquivo

@@ -9,6 +9,10 @@ var AccountSettleState = []SelectData{
var BusinessKind = []SelectData{
{Name: "广告合作", Value: "1"},
}
var PayMethod = []SelectData{
{Name: "对私账户", Value: "0"},
{Name: "对公账户", Value: "1"},
}
var InvoiceCate = []SelectData{
{Name: "电子发票", Value: "0"},
{Name: "纸质发票", Value: "1"},


+ 4
- 0
app/router/router.go Ver arquivo

@@ -216,4 +216,8 @@ func rFinancialDynamics(r *gin.RouterGroup) {
r.POST("/medium/total", hdl.FinancialDynamicsMediumTotal) //资产动态-媒体预付统计
r.POST("/medium/list", hdl.FinancialDynamicsMediumList) //资产动态-媒体预付
r.POST("/medium/save", hdl.FinancialDynamicsMediumSave) //资产动态-媒体预付创建

r.POST("/agent/total", hdl.FinancialDynamicsAgentTotal) //资产动态-代理预付统计
r.POST("/agent/list", hdl.FinancialDynamicsAgentList) //资产动态-代理预付
r.POST("/agent/save", hdl.FinancialDynamicsAgentSave) //资产动态-代理预付创建
}

+ 231
- 6
app/svc/svc_financial_dynamics.go Ver arquivo

@@ -1,13 +1,70 @@
package svc

import (
"applet/app/e"
"applet/app/md"
"applet/app/utils"
"applet/app/utils/cache"
db "code.fnuoos.com/zhimeng/model.git/src"
"code.fnuoos.com/zhimeng/model.git/src/super/implement"
"code.fnuoos.com/zhimeng/model.git/src/super/model"
"fmt"
"github.com/gin-gonic/gin"
"time"
)

func FinancialDynamicsMediumSave(c *gin.Context, req md.FinancialDynamicsMediumSaveReq) {
// 加锁 防止并发提取
mutexKey := fmt.Sprintf("%s:FinancialDynamicsMediumSave", c.GetString("mid"))
withdrawAvailable, err := cache.Do("SET", mutexKey, 1, "EX", 5, "NX")
if err != nil {
e.OutErr(c, 400, err)

return
}
if withdrawAvailable != "OK" {
e.OutErr(c, 400, e.NewErr(400000, "请求过于频繁,请稍后再试"))
return
}
engine := db.Db
sess := engine.NewSession()
defer sess.Close()
sess.Begin()
var data model.MediumFinancialDynamics
data.CreateAt = time.Now().Format("2006-01-02 15:04:05")
data.MediumId = utils.StrToInt(req.Uid)
data.Amount = req.Amount
data.Memo = req.Memo
data.Uuid = utils.StrToInt(c.GetString("mid"))
data.BusinessKind = utils.StrToInt(req.BusinessKind)
data.Certificate = req.Certificate
data.PayMethod = utils.StrToInt(req.PayMethod)
data.PayTime = time.Now().Format("2006-01-02 15:04:05")
data.UpdateAt = time.Now().Format("2006-01-02 15:04:05")
insert, _ := engine.Insert(&data)
if insert == 0 {
sess.Rollback()
e.OutErr(c, 400, e.NewErr(400, "创建失败"))
return
}
err = DealMediumAmount(sess, md.DealMediumAmount{
Mid: c.GetString("mid"),
Type: md.FinMediumFlowDirectionIncome,
Kind: md.FinancialDynamicsKindForMediumFlow,
OrdId: utils.IntToStr(data.Id),
MediumId: utils.StrToInt(req.Uid),
Amount: utils.StrToFloat64(req.Amount),
Memo: md.FinancialDynamicsTitleKindForMediumFlow,
})
if err != nil {
sess.Rollback()
e.OutErr(c, 400, e.NewErr(400, "创建失败"))
return
}
sess.Commit()
e.OutSuc(c, "success", nil)
return
}
func FinancialDynamicsMediumList(c *gin.Context, req md.FinancialDynamicsMediumListReq) md.FinancialDynamicsMediumListRes {
engine := db.Db
NewMediumFinancialDynamicsDb := implement.NewMediumFinancialDynamicsDb(engine)
@@ -31,21 +88,189 @@ func FinancialDynamicsMediumList(c *gin.Context, req md.FinancialDynamicsMediumL
data = append(data, tmp)
}
}
user := make([]md.SelectData, 0)
res := md.FinancialDynamicsMediumListRes{
List: data,
Total: total,
PayMethod: md.PayMethod,
BusinessKind: md.BusinessKind,
}
var userList []model.MediumList
db.Db.Where("settlement_type=4").Find(&userList)
for _, v := range userList {
tmp := md.SelectData{
Name: v.CompanyName,
Value: utils.IntToStr(v.MediumId),
}
if v.CompanyAbbreviation != "" {
tmp.Name = v.CompanyAbbreviation
}
user = append(user, tmp)
}
res.User = user
return res
}
func FinancialDynamicsMediumTotal(c *gin.Context, req md.FinancialDynamicsMediumTotalReq) md.FinancialDynamicsMediumTotalRes {
//engine := db.Db
//sql:=`select sum(amount) `
engine := db.Db
sql := `select sum(amount) as amount,COUNT(*) as count from %s where %s`
where := "uuid=" + c.GetString("mid")
if req.Uid != "" {
where += " and medium_id=" + req.Uid
}
sql1 := fmt.Sprintf(sql, "medium_list", where)
res := md.FinancialDynamicsMediumTotalRes{
BalanceAmount: "",
AllAmount: "",
UseAmount: "",
PayCount: "",
BalanceAmount: "0.00",
AllAmount: "0.00",
UseAmount: "0.00",
PayCount: "0",
}
nativeString, _ := db.QueryNativeString(engine, sql1)
for _, v := range nativeString {
if utils.StrToFloat64(v["amount"]) > 0 {
res.BalanceAmount = v["amount"]
}
}
sql2 := fmt.Sprintf(sql, "medium_financial_dynamics", where)
nativeString2, _ := db.QueryNativeString(engine, sql2)
for _, v := range nativeString2 {
if utils.StrToFloat64(v["amount"]) > 0 {
res.AllAmount = v["amount"]
}
if utils.StrToFloat64(v["count"]) > 0 {
res.PayCount = v["count"]
}
}
res.UseAmount = utils.Float64ToStr(utils.StrToFloat64(res.AllAmount) - utils.StrToFloat64(res.BalanceAmount))
return res
}

func FinancialDynamicsAgentSave(c *gin.Context, req md.FinancialDynamicsAgentSaveReq) {
// 加锁 防止并发提取
mutexKey := fmt.Sprintf("%s:FinancialDynamicsAgentSave", c.GetString("mid"))
withdrawAvailable, err := cache.Do("SET", mutexKey, 1, "EX", 5, "NX")
if err != nil {
e.OutErr(c, 400, err)

return
}
if withdrawAvailable != "OK" {
e.OutErr(c, 400, e.NewErr(400000, "请求过于频繁,请稍后再试"))
return
}
engine := db.Db
sess := engine.NewSession()
defer sess.Close()
sess.Begin()
var data model.AgentFinancialDynamics
data.CreateAt = time.Now().Format("2006-01-02 15:04:05")
data.AgentId = utils.StrToInt(req.Uid)
data.Amount = req.Amount
data.Memo = req.Memo
data.Uuid = utils.StrToInt(c.GetString("mid"))
data.BusinessKind = utils.StrToInt(req.BusinessKind)
data.Certificate = req.Certificate
data.PayMethod = utils.StrToInt(req.PayMethod)
data.PayTime = time.Now().Format("2006-01-02 15:04:05")
data.UpdateAt = time.Now().Format("2006-01-02 15:04:05")
insert, _ := engine.Insert(&data)
if insert == 0 {
sess.Rollback()
e.OutErr(c, 400, e.NewErr(400, "创建失败"))
return
}
err = DealAgentAmount(sess, md.DealAgentAmount{
Mid: c.GetString("mid"),
Type: md.FinAgentFlowDirectionIncome,
Kind: md.FinancialDynamicsKindForAgentFlow,
OrdId: utils.IntToStr(data.Id),
AgentId: utils.StrToInt(req.Uid),
Amount: utils.StrToFloat64(req.Amount),
Memo: md.FinancialDynamicsTitleKindForAgentFlow,
})
if err != nil {
sess.Rollback()
e.OutErr(c, 400, e.NewErr(400, "创建失败"))
return
}
sess.Commit()
e.OutSuc(c, "success", nil)
return
}
func FinancialDynamicsAgentList(c *gin.Context, req md.FinancialDynamicsAgentListReq) md.FinancialDynamicsAgentListRes {
engine := db.Db
NewAgentFinancialDynamicsDb := implement.NewAgentFinancialDynamicsDb(engine)
list, total, _ := NewAgentFinancialDynamicsDb.FindAgentFinancialDynamics(c.GetString("mid"), req.Uid, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit))
data := make([]md.FinancialDynamicsAgentListData, 0)
if len(list) > 0 {
for _, v := range list {
var tmp = md.FinancialDynamicsAgentListData{
Id: utils.IntToStr(v.Id),
PayTime: v.PayTime,
Amount: v.Amount,
PayMethod: utils.IntToStr(v.PayMethod),
Certificate: v.Certificate,
Memo: v.Memo,
BusinessKind: utils.IntToStr(v.BusinessKind),
}
agent := GetAgentInfo(c, v.AgentId)
if agent != nil {
tmp.Name = agent["name"]
}
data = append(data, tmp)
}
}
user := make([]md.SelectData, 0)
res := md.FinancialDynamicsAgentListRes{
List: data,
Total: total,
PayMethod: md.PayMethod,
BusinessKind: md.BusinessKind,
}
var userList []model.AgentList
db.Db.Where("settlement_type=4").Find(&userList)
for _, v := range userList {
tmp := md.SelectData{
Name: v.CompanyName,
Value: utils.IntToStr(v.AgentId),
}
if v.CompanyAbbreviation != "" {
tmp.Name = v.CompanyAbbreviation
}
user = append(user, tmp)
}
res.User = user
return res
}
func FinancialDynamicsAgentTotal(c *gin.Context, req md.FinancialDynamicsAgentTotalReq) md.FinancialDynamicsAgentTotalRes {
engine := db.Db
sql := `select sum(amount) as amount,COUNT(*) as count from %s where %s`
where := "uuid=" + c.GetString("mid")
if req.Uid != "" {
where += " and agent_id=" + req.Uid
}
sql1 := fmt.Sprintf(sql, "agent_list", where)
res := md.FinancialDynamicsAgentTotalRes{
BalanceAmount: "0.00",
AllAmount: "0.00",
UseAmount: "0.00",
PayCount: "0",
}
nativeString, _ := db.QueryNativeString(engine, sql1)
for _, v := range nativeString {
if utils.StrToFloat64(v["amount"]) > 0 {
res.BalanceAmount = v["amount"]
}
}
sql2 := fmt.Sprintf(sql, "agent_financial_dynamics", where)
nativeString2, _ := db.QueryNativeString(engine, sql2)
for _, v := range nativeString2 {
if utils.StrToFloat64(v["amount"]) > 0 {
res.AllAmount = v["amount"]
}
if utils.StrToFloat64(v["count"]) > 0 {
res.PayCount = v["count"]
}
}
res.UseAmount = utils.Float64ToStr(utils.StrToFloat64(res.AllAmount) - utils.StrToFloat64(res.BalanceAmount))
return res
}

+ 590
- 0
docs/docs.go Ver arquivo

@@ -1878,6 +1878,288 @@ const docTemplate = `{
}
}
},
"/api/financialDynamics/agent/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.FinancialDynamicsAgentListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.FinancialDynamicsAgentListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/agent/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.FinancialDynamicsAgentSaveReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/agent/total": {
"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.FinancialDynamicsAgentTotalReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.FinancialDynamicsAgentTotalRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/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.FinancialDynamicsMediumListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.FinancialDynamicsMediumListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/medium/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.FinancialDynamicsMediumSaveReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/medium/total": {
"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.FinancialDynamicsMediumTotalReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.FinancialDynamicsMediumTotalRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/index/app/list": {
"post": {
"description": "首页-应用数据",
@@ -6607,6 +6889,314 @@ const docTemplate = `{
}
}
},
"md.FinancialDynamicsAgentListData": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"example": "支付金额"
},
"business_kind": {
"type": "string",
"example": "支付类型(1:广告合作)"
},
"certificate": {
"type": "string",
"example": "支付凭证"
},
"id": {
"type": "string"
},
"memo": {
"type": "string",
"example": "备注"
},
"name": {
"type": "string"
},
"pay_method": {
"type": "string",
"example": "支付方式 0对私 1对公"
},
"pay_time": {
"type": "string",
"example": "支付时间"
}
}
},
"md.FinancialDynamicsAgentListReq": {
"type": "object",
"properties": {
"end_time": {
"type": "string"
},
"limit": {
"type": "string"
},
"page": {
"type": "string"
},
"start_time": {
"type": "string",
"example": "2024-08-29 00:00:00"
},
"uid": {
"type": "string",
"example": ""
}
}
},
"md.FinancialDynamicsAgentListRes": {
"type": "object",
"properties": {
"business_kind": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.FinancialDynamicsAgentListData"
}
},
"pay_method": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"total": {
"type": "integer"
},
"user": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
}
}
},
"md.FinancialDynamicsAgentSaveReq": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"example": "支付金额"
},
"business_kind": {
"type": "string",
"example": "支付类型(1:广告合作)"
},
"certificate": {
"type": "string",
"example": "支付凭证"
},
"memo": {
"type": "string",
"example": "备注"
},
"pay_method": {
"type": "string",
"example": "支付方式 0对私 1对公"
},
"uid": {
"type": "string"
}
}
},
"md.FinancialDynamicsAgentTotalReq": {
"type": "object",
"properties": {
"end_time": {
"type": "string"
},
"start_time": {
"type": "string",
"example": "2024-08-29 00:00:00"
},
"uid": {
"type": "string",
"example": ""
}
}
},
"md.FinancialDynamicsAgentTotalRes": {
"type": "object",
"properties": {
"all_amount": {
"type": "string",
"example": "预付总金额"
},
"balance_amount": {
"type": "string",
"example": "账户余额"
},
"pay_count": {
"type": "string",
"example": "预付次数"
},
"use_amount": {
"type": "string",
"example": "已消耗金额"
}
}
},
"md.FinancialDynamicsMediumListData": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"example": "支付金额"
},
"business_kind": {
"type": "string",
"example": "支付类型(1:广告合作)"
},
"certificate": {
"type": "string",
"example": "支付凭证"
},
"id": {
"type": "string"
},
"memo": {
"type": "string",
"example": "备注"
},
"name": {
"type": "string"
},
"pay_method": {
"type": "string",
"example": "支付方式 0对私 1对公"
},
"pay_time": {
"type": "string",
"example": "支付时间"
}
}
},
"md.FinancialDynamicsMediumListReq": {
"type": "object",
"properties": {
"end_time": {
"type": "string"
},
"limit": {
"type": "string"
},
"page": {
"type": "string"
},
"start_time": {
"type": "string",
"example": "2024-08-29 00:00:00"
},
"uid": {
"type": "string",
"example": ""
}
}
},
"md.FinancialDynamicsMediumListRes": {
"type": "object",
"properties": {
"business_kind": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.FinancialDynamicsMediumListData"
}
},
"pay_method": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"total": {
"type": "integer"
},
"user": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
}
}
},
"md.FinancialDynamicsMediumSaveReq": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"example": "支付金额"
},
"business_kind": {
"type": "string",
"example": "支付类型(1:广告合作)"
},
"certificate": {
"type": "string",
"example": "支付凭证"
},
"memo": {
"type": "string",
"example": "备注"
},
"pay_method": {
"type": "string",
"example": "支付方式 0对私 1对公"
},
"uid": {
"type": "string"
}
}
},
"md.FinancialDynamicsMediumTotalReq": {
"type": "object",
"properties": {
"end_time": {
"type": "string"
},
"start_time": {
"type": "string",
"example": "2024-08-29 00:00:00"
},
"uid": {
"type": "string",
"example": ""
}
}
},
"md.FinancialDynamicsMediumTotalRes": {
"type": "object",
"properties": {
"all_amount": {
"type": "string",
"example": "预付总金额"
},
"balance_amount": {
"type": "string",
"example": "账户余额"
},
"pay_count": {
"type": "string",
"example": "预付次数"
},
"use_amount": {
"type": "string",
"example": "已消耗金额"
}
}
},
"md.IndexAppListData": {
"type": "object",
"properties": {


+ 590
- 0
docs/swagger.json Ver arquivo

@@ -1870,6 +1870,288 @@
}
}
},
"/api/financialDynamics/agent/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.FinancialDynamicsAgentListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.FinancialDynamicsAgentListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/agent/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.FinancialDynamicsAgentSaveReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/agent/total": {
"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.FinancialDynamicsAgentTotalReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.FinancialDynamicsAgentTotalRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/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.FinancialDynamicsMediumListReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.FinancialDynamicsMediumListRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/medium/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.FinancialDynamicsMediumSaveReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/financialDynamics/medium/total": {
"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.FinancialDynamicsMediumTotalReq"
}
}
],
"responses": {
"200": {
"description": "具体看返回内容 这是data里面的数据",
"schema": {
"$ref": "#/definitions/md.FinancialDynamicsMediumTotalRes"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/index/app/list": {
"post": {
"description": "首页-应用数据",
@@ -6599,6 +6881,314 @@
}
}
},
"md.FinancialDynamicsAgentListData": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"example": "支付金额"
},
"business_kind": {
"type": "string",
"example": "支付类型(1:广告合作)"
},
"certificate": {
"type": "string",
"example": "支付凭证"
},
"id": {
"type": "string"
},
"memo": {
"type": "string",
"example": "备注"
},
"name": {
"type": "string"
},
"pay_method": {
"type": "string",
"example": "支付方式 0对私 1对公"
},
"pay_time": {
"type": "string",
"example": "支付时间"
}
}
},
"md.FinancialDynamicsAgentListReq": {
"type": "object",
"properties": {
"end_time": {
"type": "string"
},
"limit": {
"type": "string"
},
"page": {
"type": "string"
},
"start_time": {
"type": "string",
"example": "2024-08-29 00:00:00"
},
"uid": {
"type": "string",
"example": ""
}
}
},
"md.FinancialDynamicsAgentListRes": {
"type": "object",
"properties": {
"business_kind": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.FinancialDynamicsAgentListData"
}
},
"pay_method": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"total": {
"type": "integer"
},
"user": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
}
}
},
"md.FinancialDynamicsAgentSaveReq": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"example": "支付金额"
},
"business_kind": {
"type": "string",
"example": "支付类型(1:广告合作)"
},
"certificate": {
"type": "string",
"example": "支付凭证"
},
"memo": {
"type": "string",
"example": "备注"
},
"pay_method": {
"type": "string",
"example": "支付方式 0对私 1对公"
},
"uid": {
"type": "string"
}
}
},
"md.FinancialDynamicsAgentTotalReq": {
"type": "object",
"properties": {
"end_time": {
"type": "string"
},
"start_time": {
"type": "string",
"example": "2024-08-29 00:00:00"
},
"uid": {
"type": "string",
"example": ""
}
}
},
"md.FinancialDynamicsAgentTotalRes": {
"type": "object",
"properties": {
"all_amount": {
"type": "string",
"example": "预付总金额"
},
"balance_amount": {
"type": "string",
"example": "账户余额"
},
"pay_count": {
"type": "string",
"example": "预付次数"
},
"use_amount": {
"type": "string",
"example": "已消耗金额"
}
}
},
"md.FinancialDynamicsMediumListData": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"example": "支付金额"
},
"business_kind": {
"type": "string",
"example": "支付类型(1:广告合作)"
},
"certificate": {
"type": "string",
"example": "支付凭证"
},
"id": {
"type": "string"
},
"memo": {
"type": "string",
"example": "备注"
},
"name": {
"type": "string"
},
"pay_method": {
"type": "string",
"example": "支付方式 0对私 1对公"
},
"pay_time": {
"type": "string",
"example": "支付时间"
}
}
},
"md.FinancialDynamicsMediumListReq": {
"type": "object",
"properties": {
"end_time": {
"type": "string"
},
"limit": {
"type": "string"
},
"page": {
"type": "string"
},
"start_time": {
"type": "string",
"example": "2024-08-29 00:00:00"
},
"uid": {
"type": "string",
"example": ""
}
}
},
"md.FinancialDynamicsMediumListRes": {
"type": "object",
"properties": {
"business_kind": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.FinancialDynamicsMediumListData"
}
},
"pay_method": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
},
"total": {
"type": "integer"
},
"user": {
"type": "array",
"items": {
"$ref": "#/definitions/md.SelectData"
}
}
}
},
"md.FinancialDynamicsMediumSaveReq": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"example": "支付金额"
},
"business_kind": {
"type": "string",
"example": "支付类型(1:广告合作)"
},
"certificate": {
"type": "string",
"example": "支付凭证"
},
"memo": {
"type": "string",
"example": "备注"
},
"pay_method": {
"type": "string",
"example": "支付方式 0对私 1对公"
},
"uid": {
"type": "string"
}
}
},
"md.FinancialDynamicsMediumTotalReq": {
"type": "object",
"properties": {
"end_time": {
"type": "string"
},
"start_time": {
"type": "string",
"example": "2024-08-29 00:00:00"
},
"uid": {
"type": "string",
"example": ""
}
}
},
"md.FinancialDynamicsMediumTotalRes": {
"type": "object",
"properties": {
"all_amount": {
"type": "string",
"example": "预付总金额"
},
"balance_amount": {
"type": "string",
"example": "账户余额"
},
"pay_count": {
"type": "string",
"example": "预付次数"
},
"use_amount": {
"type": "string",
"example": "已消耗金额"
}
}
},
"md.IndexAppListData": {
"type": "object",
"properties": {


+ 400
- 0
docs/swagger.yaml Ver arquivo

@@ -1497,6 +1497,220 @@ definitions:
total:
type: integer
type: object
md.FinancialDynamicsAgentListData:
properties:
amount:
example: 支付金额
type: string
business_kind:
example: 支付类型(1:广告合作)
type: string
certificate:
example: 支付凭证
type: string
id:
type: string
memo:
example: 备注
type: string
name:
type: string
pay_method:
example: 支付方式 0对私 1对公
type: string
pay_time:
example: 支付时间
type: string
type: object
md.FinancialDynamicsAgentListReq:
properties:
end_time:
type: string
limit:
type: string
page:
type: string
start_time:
example: "2024-08-29 00:00:00"
type: string
uid:
example: ""
type: string
type: object
md.FinancialDynamicsAgentListRes:
properties:
business_kind:
items:
$ref: '#/definitions/md.SelectData'
type: array
list:
items:
$ref: '#/definitions/md.FinancialDynamicsAgentListData'
type: array
pay_method:
items:
$ref: '#/definitions/md.SelectData'
type: array
total:
type: integer
user:
items:
$ref: '#/definitions/md.SelectData'
type: array
type: object
md.FinancialDynamicsAgentSaveReq:
properties:
amount:
example: 支付金额
type: string
business_kind:
example: 支付类型(1:广告合作)
type: string
certificate:
example: 支付凭证
type: string
memo:
example: 备注
type: string
pay_method:
example: 支付方式 0对私 1对公
type: string
uid:
type: string
type: object
md.FinancialDynamicsAgentTotalReq:
properties:
end_time:
type: string
start_time:
example: "2024-08-29 00:00:00"
type: string
uid:
example: ""
type: string
type: object
md.FinancialDynamicsAgentTotalRes:
properties:
all_amount:
example: 预付总金额
type: string
balance_amount:
example: 账户余额
type: string
pay_count:
example: 预付次数
type: string
use_amount:
example: 已消耗金额
type: string
type: object
md.FinancialDynamicsMediumListData:
properties:
amount:
example: 支付金额
type: string
business_kind:
example: 支付类型(1:广告合作)
type: string
certificate:
example: 支付凭证
type: string
id:
type: string
memo:
example: 备注
type: string
name:
type: string
pay_method:
example: 支付方式 0对私 1对公
type: string
pay_time:
example: 支付时间
type: string
type: object
md.FinancialDynamicsMediumListReq:
properties:
end_time:
type: string
limit:
type: string
page:
type: string
start_time:
example: "2024-08-29 00:00:00"
type: string
uid:
example: ""
type: string
type: object
md.FinancialDynamicsMediumListRes:
properties:
business_kind:
items:
$ref: '#/definitions/md.SelectData'
type: array
list:
items:
$ref: '#/definitions/md.FinancialDynamicsMediumListData'
type: array
pay_method:
items:
$ref: '#/definitions/md.SelectData'
type: array
total:
type: integer
user:
items:
$ref: '#/definitions/md.SelectData'
type: array
type: object
md.FinancialDynamicsMediumSaveReq:
properties:
amount:
example: 支付金额
type: string
business_kind:
example: 支付类型(1:广告合作)
type: string
certificate:
example: 支付凭证
type: string
memo:
example: 备注
type: string
pay_method:
example: 支付方式 0对私 1对公
type: string
uid:
type: string
type: object
md.FinancialDynamicsMediumTotalReq:
properties:
end_time:
type: string
start_time:
example: "2024-08-29 00:00:00"
type: string
uid:
example: ""
type: string
type: object
md.FinancialDynamicsMediumTotalRes:
properties:
all_amount:
example: 预付总金额
type: string
balance_amount:
example: 账户余额
type: string
pay_count:
example: 预付次数
type: string
use_amount:
example: 已消耗金额
type: string
type: object
md.IndexAppListData:
properties:
list:
@@ -3461,6 +3675,192 @@ paths:
summary: 平台报表
tags:
- 财务中心------嘉俊
/api/financialDynamics/agent/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.FinancialDynamicsAgentListReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容 这是data里面的数据
schema:
$ref: '#/definitions/md.FinancialDynamicsAgentListRes'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 代理预付
tags:
- 资产动态------嘉俊
/api/financialDynamics/agent/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.FinancialDynamicsAgentSaveReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容 这是data里面的数据
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 代理预付-创建
tags:
- 资产动态------嘉俊
/api/financialDynamics/agent/total:
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.FinancialDynamicsAgentTotalReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容 这是data里面的数据
schema:
$ref: '#/definitions/md.FinancialDynamicsAgentTotalRes'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 代理预付-统计
tags:
- 资产动态------嘉俊
/api/financialDynamics/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.FinancialDynamicsMediumListReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容 这是data里面的数据
schema:
$ref: '#/definitions/md.FinancialDynamicsMediumListRes'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 媒体预付
tags:
- 资产动态------嘉俊
/api/financialDynamics/medium/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.FinancialDynamicsMediumSaveReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容 这是data里面的数据
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 媒体预付-创建
tags:
- 资产动态------嘉俊
/api/financialDynamics/medium/total:
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.FinancialDynamicsMediumTotalReq'
produces:
- application/json
responses:
"200":
description: 具体看返回内容 这是data里面的数据
schema:
$ref: '#/definitions/md.FinancialDynamicsMediumTotalRes'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 媒体预付-统计
tags:
- 资产动态------嘉俊
/api/index/app/list:
post:
consumes:


Carregando…
Cancelar
Salvar