diff --git a/app/cfg/cfg_app.go b/app/cfg/cfg_app.go index 9dbbea4..8a94c58 100644 --- a/app/cfg/cfg_app.go +++ b/app/cfg/cfg_app.go @@ -10,10 +10,17 @@ type Config struct { CurlDebug bool `yaml:"curldebug"` SrvAddr string `yaml:"srv_addr"` RedisAddr string `yaml:"redis_addr"` + MQ MQCfg `yaml:"mq"` DB DBCfg `yaml:"db"` Log LogCfg `yaml:"log"` Local bool } +type MQCfg struct { + Host string `yaml:"host"` + Port string `yaml:"port"` + User string `yaml:"user"` + Pwd string `yaml:"pwd"` +} // 数据库配置结构体 type DBCfg struct { diff --git a/app/cfg/init_cfg.go b/app/cfg/init_cfg.go index 4fdbab6..fa69ed8 100644 --- a/app/cfg/init_cfg.go +++ b/app/cfg/init_cfg.go @@ -14,6 +14,7 @@ var ( CurlDebug bool SrvAddr string RedisAddr string + MQ *MQCfg DB *DBCfg Log *LogCfg Local bool @@ -47,4 +48,6 @@ func InitCfg() { Log = &conf.Log RedisAddr = conf.RedisAddr SrvAddr = conf.SrvAddr + MQ = &conf.MQ + } diff --git a/app/cfg/init_rabbitmq.go b/app/cfg/init_rabbitmq.go new file mode 100644 index 0000000..f04cd5e --- /dev/null +++ b/app/cfg/init_rabbitmq.go @@ -0,0 +1,28 @@ +package cfg + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" + "encoding/json" + "os" + "strings" + "time" +) + +func InitMq() { + data, _ := json.Marshal(MQ) + filePutContents("init_rabbit_mq", string(data)) + err := rabbit.Init(MQ.Host, MQ.Port, MQ.User, MQ.Pwd) + if err != nil { + filePutContents("init_rabbit_mq", err.Error()) + return + } +} + +func filePutContents(fileName string, content string) { + fd, _ := os.OpenFile("./tmp/"+fileName+".log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644) + fd_time := time.Now().Format("2006-01-02 15:04:05") + fd_content := strings.Join([]string{"[", fd_time, "] ", content, "\n"}, "") + buf := []byte(fd_content) + fd.Write(buf) + fd.Close() +} diff --git a/app/hdl/hdl_data_center_generate_data.go b/app/hdl/hdl_data_center_generate_data.go new file mode 100644 index 0000000..f294def --- /dev/null +++ b/app/hdl/hdl_data_center_generate_data.go @@ -0,0 +1,155 @@ +package hdl + +import ( + "applet/app/e" + "applet/app/lib/validate" + "applet/app/md" + "applet/app/svc" + "github.com/gin-gonic/gin" +) + +// GenerateDataList +// @Summary 分成数据-列表 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-分成数据-列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterGenerateDataReq true "请求参数" +// @Success 200 {object} md.DataCenterGenerateDataRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/generate/data/list [POST] +func GenerateDataList(c *gin.Context) { + var req md.DataCenterGenerateDataReq + 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.DataCenterGenerateDataList(c, req) + e.OutSuc(c, res, nil) + return +} + +// IncomeDataList +// @Summary 收益报表-列表 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-收益报表-列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterGenerateDataReq true "请求参数" +// @Success 200 {object} md.DataCenterIncomeDataRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/income/data/list [POST] +func IncomeDataList(c *gin.Context) { + var req md.DataCenterGenerateDataReq + 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.DataCenterIncomeDataList(c, req) + e.OutSuc(c, res, nil) + return +} + +// IncomeDataDetail +// @Summary 收益报表-详情 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-收益报表-详情 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterGenerateDataCommReq true "请求参数" +// @Success 200 {object} md.DataCenterIncomeDataDetail "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/income/data/detail [POST] +func IncomeDataDetail(c *gin.Context) { + var req md.DataCenterGenerateDataCommReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.DataCenterIncomeDataDetail(c, req) +} + +// GenerateDataDel +// @Summary 分成数据-删除 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-分成数据-删除 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterGenerateDataCommReq true "请求参数" +// @Success 200 {string} "具体看返回内容 " +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/generate/data/del [POST] +func GenerateDataDel(c *gin.Context) { + var req md.DataCenterGenerateDataCommReq + 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.DataCenterGenerateDataDel(c, req) + e.OutSuc(c, res, nil) + return +} + +// GenerateDataDoing +// @Summary 分成数据-应用操作 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-分成数据-应用操作 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterGenerateDataCommReq true "请求参数" +// @Success 200 {string} "具体看返回内容 " +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/generate/data/doing [POST] +func GenerateDataDoing(c *gin.Context) { + var req md.DataCenterGenerateDataCommReq + 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.DataCenterGenerateDataDoing(c, req) + e.OutSuc(c, res, nil) + return +} + +// GenerateDataDetail +// @Summary 分成数据-详情 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-分成数据-详情 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterGenerateDataCommReq true "请求参数" +// @Success 200 {object} md.DataCenterGenerateDataDetailData "具体看返回内容 " +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/generate/data/detail [POST] +func GenerateDataDetail(c *gin.Context) { + var req md.DataCenterGenerateDataCommReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.DataCenterGenerateDataDetail(c, req) +} diff --git a/app/hdl/hdl_data_center_original_data.go b/app/hdl/hdl_data_center_original_data.go new file mode 100644 index 0000000..26faddd --- /dev/null +++ b/app/hdl/hdl_data_center_original_data.go @@ -0,0 +1,285 @@ +package hdl + +import ( + "applet/app/e" + "applet/app/lib/validate" + "applet/app/md" + "applet/app/svc" + "applet/app/utils/cache" + "github.com/gin-gonic/gin" +) + +// OriginalDataList +// @Summary 原始数据-列表 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterOriginalDataReq true "请求参数" +// @Success 200 {object} md.DataCenterOriginalDataRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/list [POST] +func OriginalDataList(c *gin.Context) { + var req md.DataCenterOriginalDataReq + 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.DataCenterOriginalDataList(c, req) + e.OutSuc(c, res, nil) + return +} + +// OriginalDataDel +// @Summary 原始数据-删除 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-删除 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterOriginalDataCommReq true "请求参数" +// @Success 200 {string} "具体看返回内容 " +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/del [POST] +func OriginalDataDel(c *gin.Context) { + var req md.DataCenterOriginalDataCommReq + 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.DataCenterOriginalDataDel(c, req) + e.OutSuc(c, res, nil) + return +} + +// OriginalDataDoing +// @Summary 原始数据-应用操作 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-应用操作 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterDataCenterOriginalDataDoingReq true "请求参数" +// @Success 200 {string} "具体看返回内容 " +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/doing [POST] +func OriginalDataDoing(c *gin.Context) { + var req md.DataCenterDataCenterOriginalDataDoingReq + 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.DataCenterOriginalDataDoing(c, req) + e.OutSuc(c, res, nil) + return +} + +// OriginalDataTotal +// @Summary 原始数据-记录应用时统计 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-记录应用时统计 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterOriginalDataCommReq true "请求参数" +// @Success 200 {string} "具体看返回内容 " +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/total [POST] +func OriginalDataTotal(c *gin.Context) { + var req md.DataCenterOriginalDataCommReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.DataCenterOriginalDataTotal(c, req) +} + +// OriginalDataMoreApplication +// @Summary 原始数据-一键导入应用列表 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-一键导入应用列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterOriginalDataMoreApplicationReq true "请求参数" +// @Success 200 {object} md.DataCenterOriginalDataMoreApplicationRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/more/application [POST] +func OriginalDataMoreApplication(c *gin.Context) { + var req md.DataCenterOriginalDataMoreApplicationReq + 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.OriginalDataMoreApplication(c, req) + e.OutSuc(c, res, nil) + return +} + +// OriginalDataMoreApplicationDoing +// @Summary 原始数据-一键导入操作 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-一键导入操作 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterOriginalDataOneApplicationDoingReq true "请求参数" +// @Success 200 {string} "具体看返回内容 " +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/more/application/doing [POST] +func OriginalDataMoreApplicationDoing(c *gin.Context) { + var req md.DataCenterOriginalDataMoreApplicationDoingReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + err = svc.OriginalDataMoreApplicationDoing(c, req) + if err != nil { + e.OutErr(c, 400, e.NewErr(400, err.Error())) + return + } + e.OutSuc(c, "success", nil) + return +} + +// OriginalDataMoreApplicationState +// @Summary 原始数据-一键导入操作状态 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-一键导入操作状态 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterOriginalDataOneApplicationDoingReq true "请求参数" +// @Success 200 {string} "具体看返回内容 state=1 进行中" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/more/application/state [GET] +func OriginalDataMoreApplicationState(c *gin.Context) { + res := map[string]string{ + "state": "0", + } + state, _ := cache.GetString(c.GetString("mid") + ":original.wx.ad.data") + if state == "1" { + res["state"] = "1" + } + e.OutSuc(c, res, nil) + return +} + +// OriginalDataOneApplication +// @Summary 原始数据-单个导入应用列表 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-单个导入应用列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Success 200 {object} md.DataCenterOriginalDataOneApplicationRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/one/application [GET] +func OriginalDataOneApplication(c *gin.Context) { + svc.OriginalDataOneApplication(c) +} + +// OriginalDataOneApplicationAdList +// @Summary 原始数据-单个导入应用-广告位列表 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-单个导入应用-广告位列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterOriginalDataOneApplicationAdListReq true "请求参数" +// @Success 200 {object} md.DataCenterOriginalDataOneApplicationAdListRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/one/application/ad/list [POST] +func OriginalDataOneApplicationAdList(c *gin.Context) { + var req md.DataCenterOriginalDataOneApplicationAdListReq + 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.OriginalDataOneApplicationAdList(c, req) + e.OutSuc(c, res, nil) + return +} + +// OriginalDataOneApplicationTotal +// @Summary 原始数据-单个应用数据统计 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-单个应用数据统计 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterOriginalDataOneApplicationDoingReq true "请求参数" +// @Success 200 {object} md.DataCenterOriginalDataOneApplicationDoingRes "具体看返回内容 " +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/one/application/total [POST] +func OriginalDataOneApplicationTotal(c *gin.Context) { + var req md.DataCenterOriginalDataOneApplicationDoingReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.OriginalDataOneApplicationTotal(c, req) +} + +// OriginalDataOneApplicationDoing +// @Summary 原始数据-单个应用数据操作 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-原始数据-单个应用数据操作 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DataCenterOriginalDataOneApplicationDoingReq true "请求参数" +// @Success 200 {string} "具体看返回内容 " +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/dataCenter/original/data/one/application/doing [POST] +func OriginalDataOneApplicationDoing(c *gin.Context) { + var req md.DataCenterOriginalDataOneApplicationDoingReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + args := md.DataCenterOriginalDataMoreApplicationDoingReq{ + Ids: []md.DataCenterOriginalDataOneApplicationDoingReqData{ + { + AppId: req.AppId, + AdId: req.AdId, + }, + }, + Date: req.Date, + } + err = svc.OriginalDataMoreApplicationDoing(c, args) + if err != nil { + e.OutErr(c, 400, e.NewErr(400, err.Error())) + return + } + e.OutSuc(c, "success", nil) + return +} diff --git a/app/hdl/hdl_demo.go b/app/hdl/hdl_demo.go index d7dfada..9aecbb8 100644 --- a/app/hdl/hdl_demo.go +++ b/app/hdl/hdl_demo.go @@ -3,18 +3,23 @@ package hdl import ( "applet/app/e" "applet/app/lib/wechat" + "applet/app/md" "applet/app/svc" "applet/app/utils" + "code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" db "code.fnuoos.com/zhimeng/model.git/src" "code.fnuoos.com/zhimeng/model.git/src/super/implement" + "fmt" "github.com/gin-gonic/gin" ) func Demo(c *gin.Context) { + mediumId := utils.GenerateUniqueRandomNumbers(8) + fmt.Println(mediumId) + return appId := c.DefaultQuery("app_id", "") masterId := svc.GetMasterId(c) adUnitId := c.DefaultQuery("adunit_id", "") - //1、查找对应 user_wx_applet_list 记录 userWxAppletListDb := implement.NewUserWxAppletListDb(db.Db) UserWxAppletList, err := userWxAppletListDb.GetUserWxAppletList(masterId) @@ -36,6 +41,25 @@ func Demo(c *gin.Context) { e.OutErr(c, e.ERR_NOT_FAN, "未查询到对应三方应用记录") return } + ch, err := rabbit.Cfg.Pool.GetChannel() + if err != nil { + return + } + defer ch.Release() + var arg = md.ZhiosAdOriginalDataApplication{ + Mid: "123456", + AppId: "123", + AdId: "123", + Date: "123", + ComponentAppsecret: wxOpenThirdPartyAppList.AppSecret, + ComponentAppid: wxOpenThirdPartyAppList.Appid, + } + err = ch.PublishV2(md.AdOriginalData, arg, md.AdOriginalDataApplication) + if err != nil { + ch.PublishV2(md.AdOriginalData, arg, md.AdOriginalDataApplication) + } + return + wxApiService, err := wechat.NewWxApiService(masterId, wxOpenThirdPartyAppList.Appid, wxOpenThirdPartyAppList.AppSecret) if err != nil { e.OutErr(c, e.ERR, err.Error()) diff --git a/app/hdl/hdl_division_strategy.go b/app/hdl/hdl_division_strategy.go new file mode 100644 index 0000000..a2c9e3c --- /dev/null +++ b/app/hdl/hdl_division_strategy.go @@ -0,0 +1,90 @@ +package hdl + +import ( + "applet/app/e" + "applet/app/lib/validate" + "applet/app/md" + "applet/app/svc" + "github.com/gin-gonic/gin" +) + +// DivisionStrategyList +// @Summary 列表 +// @Tags 分成策略------嘉俊 +// @Description 分成策略-列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DivisionStrategyReq true "请求参数" +// @Success 200 {object} md.DivisionStrategyRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/divisionStrategy/list [POST] +func DivisionStrategyList(c *gin.Context) { + var req md.DivisionStrategyReq + 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.DivisionStrategyList(c, req) + e.OutSuc(c, res, nil) + return +} + +// DivisionStrategyDetail +// @Summary 详情 +// @Tags 分成策略------嘉俊 +// @Description 分成策略-详情 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DivisionStrategyDetailReq true "请求参数" +// @Success 200 {object} md.DivisionStrategyDetailRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/divisionStrategy/detail [POST] +func DivisionStrategyDetail(c *gin.Context) { + var req md.DivisionStrategyDetailReq + 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.DivisionStrategyDetail(c, req) + e.OutSuc(c, res, nil) + return +} + +// DivisionStrategySave +// @Summary 保存 +// @Tags 分成策略------嘉俊 +// @Description 分成策略-保存 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.DivisionStrategyDetailRes true "请求参数" +// @Success 200 {string} "具体看返回内容 " +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/divisionStrategy/save [POST] +func DivisionStrategySave(c *gin.Context) { + var req md.DivisionStrategyDetailRes + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + err = svc.DivisionStrategySave(c, req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + e.OutSuc(c, "success", nil) + return +} diff --git a/app/hdl/hdl_finance_center_medium.go b/app/hdl/hdl_finance_center_medium.go new file mode 100644 index 0000000..bd956b4 --- /dev/null +++ b/app/hdl/hdl_finance_center_medium.go @@ -0,0 +1,152 @@ +package hdl + +import ( + "applet/app/e" + "applet/app/lib/validate" + "applet/app/md" + "applet/app/svc" + "github.com/gin-gonic/gin" +) + +// FinanceCenterMediumList +// @Summary 媒体列表 +// @Tags 财务中心------嘉俊 +// @Description 财务中心-媒体列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.FinanceCenterDataReq true "请求参数" +// @Success 200 {object} md.FinanceCenterDataRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/financeCenter/medium/list [POST] +func FinanceCenterMediumList(c *gin.Context) { + var req md.FinanceCenterDataReq + 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.FinanceCenterMediumList(c, req) + e.OutSuc(c, res, nil) + return +} + +// FinanceCenterMediumDetail +// @Summary 媒体详情 +// @Tags 财务中心------嘉俊 +// @Description 财务中心-媒体详情 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.CommDetailReq true "请求参数" +// @Success 200 {object} md.FinanceCenterDataRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/financeCenter/medium/detail [POST] +func FinanceCenterMediumDetail(c *gin.Context) { + var req md.CommDetailReq + 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.FinanceCenterMediumDetail(c, req) + e.OutSuc(c, res, nil) + return +} + +// FinanceCenterMediumSettleFileSave +// @Summary 媒体详情-结算单保存 +// @Tags 财务中心------嘉俊 +// @Description 财务中心-媒体详情-结算单保存 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.SettleFileReq true "请求参数" +// @Success 200 {string} "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/financeCenter/medium/settle/file/save [POST] +func FinanceCenterMediumSettleFileSave(c *gin.Context) { + var req md.SettleFileReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.FinanceCenterMediumSettleFileSave(c, req) +} + +// FinanceCenterMediumPaySave +// @Summary 媒体详情-确认支付 +// @Tags 财务中心------嘉俊 +// @Description 财务中心-媒体详情-确认支付 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.CommDetailReq true "请求参数" +// @Success 200 {string} "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/financeCenter/medium/pay/save [POST] +func FinanceCenterMediumPaySave(c *gin.Context) { + var req md.CommDetailReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.FinanceCenterMediumPaySave(c, req) +} + +// FinanceCenterMediumOtherIncomeSave +// @Summary 媒体详情-其他收益调整 +// @Tags 财务中心------嘉俊 +// @Description 财务中心-媒体详情-其他收益调整 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.OtherIncomeReq true "请求参数" +// @Success 200 {string} "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/financeCenter/medium/other/income/save [POST] +func FinanceCenterMediumOtherIncomeSave(c *gin.Context) { + var req md.OtherIncomeReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.FinanceCenterMediumOtherIncomeSave(c, req) +} + +// FinanceCenterMediumInvoiceSave +// @Summary 媒体详情-发票保存 +// @Tags 财务中心------嘉俊 +// @Description 财务中心-媒体详情-发票保存 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.InvoiceReq true "请求参数" +// @Success 200 {string} "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/financeCenter/medium/invoice/save [POST] +func FinanceCenterMediumInvoiceSave(c *gin.Context) { + var req md.InvoiceReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.FinanceCenterMediumInvoiceSave(c, req) + +} diff --git a/app/hdl/hdl_settle_center_agent.go b/app/hdl/hdl_settle_center_agent.go new file mode 100644 index 0000000..cc3d983 --- /dev/null +++ b/app/hdl/hdl_settle_center_agent.go @@ -0,0 +1,80 @@ +package hdl + +import ( + "applet/app/e" + "applet/app/lib/validate" + "applet/app/md" + "applet/app/svc" + "github.com/gin-gonic/gin" +) + +// SettleCenterAgentList +// @Summary 代理列表 +// @Tags 结算中心------嘉俊 +// @Description 结算中心-代理列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.SettleCenterDataReq true "请求参数" +// @Success 200 {object} md.SettleCenterDataRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/settleCenter/agent/list [POST] +func SettleCenterAgentList(c *gin.Context) { + var req md.SettleCenterDataReq + 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.SettleCenterAgentList(c, req) + e.OutSuc(c, res, nil) + return +} + +// SettleCenterAgentSave +// @Summary 代理列表 +// @Tags 结算中心------嘉俊 +// @Description 结算中心-代理列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.SettleCenterDataSaveReq true "请求参数" +// @Success 200 {string} "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/settleCenter/agent/save [POST] +func SettleCenterAgentSave(c *gin.Context) { + var req md.SettleCenterDataSaveReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.SettleCenterAgentSave(c, req) +} + +// SettleCenterAgentDetail +// @Summary 代理列表 +// @Tags 结算中心------嘉俊 +// @Description 结算中心-代理列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.SettleCenterDataDetailReq true "请求参数" +// @Success 200 {string} "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/settleCenter/agent/detail [POST] +func SettleCenterAgentDetail(c *gin.Context) { + var req md.SettleCenterDataDetailReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.SettleCenterAgentDetail(c, req) +} diff --git a/app/hdl/hdl_settle_center_medium.go b/app/hdl/hdl_settle_center_medium.go new file mode 100644 index 0000000..a7c57d2 --- /dev/null +++ b/app/hdl/hdl_settle_center_medium.go @@ -0,0 +1,80 @@ +package hdl + +import ( + "applet/app/e" + "applet/app/lib/validate" + "applet/app/md" + "applet/app/svc" + "github.com/gin-gonic/gin" +) + +// SettleCenterMediumList +// @Summary 媒体列表 +// @Tags 结算中心------嘉俊 +// @Description 结算中心-媒体列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.SettleCenterDataReq true "请求参数" +// @Success 200 {object} md.SettleCenterDataRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/settleCenter/medium/list [POST] +func SettleCenterMediumList(c *gin.Context) { + var req md.SettleCenterDataReq + 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.SettleCenterMediumList(c, req) + e.OutSuc(c, res, nil) + return +} + +// SettleCenterMediumSave +// @Summary 媒体列表 +// @Tags 结算中心------嘉俊 +// @Description 结算中心-媒体列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.SettleCenterDataSaveReq true "请求参数" +// @Success 200 {string} "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/settleCenter/medium/save [POST] +func SettleCenterMediumSave(c *gin.Context) { + var req md.SettleCenterDataSaveReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.SettleCenterMediumSave(c, req) +} + +// SettleCenterMediumDetail +// @Summary 媒体列表 +// @Tags 结算中心------嘉俊 +// @Description 结算中心-媒体列表 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.SettleCenterDataDetailReq true "请求参数" +// @Success 200 {string} "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/settleCenter/medium/detail [POST] +func SettleCenterMediumDetail(c *gin.Context) { + var req md.SettleCenterDataDetailReq + err := c.ShouldBindJSON(&req) + if err != nil { + err = validate.HandleValidateErr(err) + err1 := err.(e.E) + e.OutErr(c, err1.Code, err1.Error()) + return + } + svc.SettleCenterMediumDetail(c, req) +} diff --git a/app/md/comm.go b/app/md/comm.go index 4fe5185..282a037 100644 --- a/app/md/comm.go +++ b/app/md/comm.go @@ -4,3 +4,6 @@ type SelectData struct { Name string `json:"name" example:"名称"` Value string `json:"value" example:"值"` } +type CommDetailReq struct { + Id string `json:"id" example:"列表id"` +} diff --git a/app/md/md__applet_application_ad_space_list.go b/app/md/md__applet_application_ad_space_list.go index fb8ffa7..ebb8e5e 100644 --- a/app/md/md__applet_application_ad_space_list.go +++ b/app/md/md__applet_application_ad_space_list.go @@ -25,6 +25,7 @@ type AppletApplicationAdSpaceListReq struct { Page string `json:"page" ` Name string `json:"name"` CooperateState string `json:"cooperate_state" example:"合作状态"` + AdType string `json:"ad_type" example:""` Platform string `json:"platform"` } type AppletApplicationAdSpaceListRes struct { diff --git a/app/md/md_data_center_generate_data.go b/app/md/md_data_center_generate_data.go new file mode 100644 index 0000000..79395c3 --- /dev/null +++ b/app/md/md_data_center_generate_data.go @@ -0,0 +1,111 @@ +package md + +type DataCenterGenerateDataReq struct { + Limit string `json:"limit"` + Page string `json:"page" ` + Name string `json:"name"` + State string `json:"state"` + Platform string `json:"platform"` + StartTime string `json:"start_time"` + EndTime string `json:"end_time"` +} + +type DataCenterGenerateDataRes struct { + List []DataCenterGenerateDataData `json:"list" ` + Total int64 `json:"total"` + State []SelectData `json:"state"` + Platform []SelectData `json:"platform"` +} + +type DataCenterGenerateDataData struct { + Id string `json:"id" example:"id"` + Date string `json:"date" example:"日期"` + Name string `json:"name" example:"名称"` + Platform string `json:"platform" example:"平台名称"` + AdvName string `json:"adv_name" example:"广告位"` + State string `json:"state" example:"状态id"` + OldExposureCount string `json:"old_exposure_count" example:"原-曝光量"` + OldClickCount string `json:"old_click_count" example:"原-点击量"` + OldClickRate string `json:"old_click_rate" example:"原-点击率"` + OldEcpm string `json:"old_ecpm" example:"'原-ecpm(元)"` + ExposureCount string `json:"exposure_count" example:"现-曝光量"` + ClickCount string `json:"click_count" example:"现-点击量"` + ClickRate string `json:"click_rate" example:"现-点击率"` + Ecpm string `json:"ecpm" example:"'现-ecpm(元)"` + PlatformRetention string `json:"platform_retention" example:"平台留存(元)"` + CommissionRetention string `json:"commission_retention" example:"佣金留存(元)"` + PriceAdjustmentRetention string `json:"price_adjustment_retention" example:"调价留存(元)"` + MediaRevenue string `json:"media_revenue" example:"媒体收益(元)"` + AgentRevenue string `json:"agent_revenue" example:"代理收益(元)"` + ExtraRevenue string `json:"extra_revenue" example:"额外收益(元)"` + AgreementSharing string `json:"agreement_sharing" example:"协议分成(元)"` + AgreementSharingTotal string `json:"agreement_sharing_total" example:"协议总分成(元)"` + IsGenerateReport string `json:"is_generate_report" example:"是否已生成报表(0:未 1:已)"` +} + +type DataCenterIncomeDataRes struct { + List []DataCenterIncomeDataData `json:"list" ` + Total int64 `json:"total"` + State []SelectData `json:"state"` + Platform []SelectData `json:"platform"` +} + +type DataCenterIncomeDataData struct { + Id string `json:"id" example:"id"` + Date string `json:"date" example:"日期"` + Name string `json:"name" example:"名称"` + Platform string `json:"platform" example:"平台名称"` + AdvName string `json:"adv_name" example:"广告位"` + State string `json:"state" example:"状态id"` + ExposureCount string `json:"exposure_count" example:"现-曝光量"` + ClickCount string `json:"click_count" example:"现-点击量"` + ClickRate string `json:"click_rate" example:"现-点击率"` + Ecpm string `json:"ecpm" example:"'现-ecpm(元)"` + MediaRevenue string `json:"media_revenue" example:"媒体收益(元)"` + AgreementSharing string `json:"agreement_sharing" example:"平台收益(元)"` + AgentRevenue string `json:"agent_revenue" example:"代理收益(元)"` + SettleAmount string `json:"settle_amount" example:"结算收益(元)"` +} +type DataCenterIncomeDataDetail struct { + Platform string `json:"platform" example:"填充来源"` + MediaRevenue string `json:"media_revenue" example:"媒体收益(元)"` + MediaRevenueRate string `json:"media_revenue_rate" example:"媒体收益百分比"` + AgreementSharingRate string `json:"agreement_sharing_rate" example:"平台收益百分比"` + AgreementSharing string `json:"agreement_sharing" example:"平台收益(元)"` + AgentRevenue string `json:"agent_revenue" example:"代理收益(元)"` + AgentRevenueRate string `json:"agent_revenue_rate" example:"代理收益百分比"` + DataSource string `json:"data_source" example:"数据来源"` + MediumName string `json:"medium_name" example:"媒体名称"` + CreateAt string `json:"create_at"` + UpdateAt string `json:"update_at"` + AgentReward []DataCenterGenerateDataDetailAgentRewardSecond `json:"agent_reward"` +} +type DataCenterGenerateDataCommReq struct { + Id string `json:"id" example:"列表id"` +} + +type DataCenterGenerateDataDetailData struct { + PlatformRetentionRate string `json:"platform_retention_rate" example:"平台留存百分比"` + CommissionRetentionRate string `json:"commission_retention_rate" example:"佣金留存百分比"` + MediaRevenueRate string `json:"media_revenue_rate" example:"媒体收益百分比"` + AgentRevenueRate string `json:"agent_revenue_rate" example:"代理收益百分比"` + ExtraRevenueRate string `json:"extra_revenue_rate" example:"额外收益百分比"` + AgreementSharingRate string `json:"agreement_sharing_rate" example:"协议分成百分比"` + CreateAt string `json:"create_at" ` + UpdateAt string `json:"update_at" ` + AgentReward []DataCenterGenerateDataDetailAgentReward `json:"agent_reward"` +} +type DataCenterGenerateDataDetailAgentReward struct { + Name string `json:"name"` + Account string `json:"account"` + AgentRevenue string `json:"agent_revenue" example:"代理收益(元)"` + AgentRevenueRate string `json:"agent_revenue_rate" example:"代理收益百分比"` + ExtraRevenue string `json:"extra_revenue" example:"额外收益(元)"` + ExtraRevenueRate string `json:"extra_revenue_rate" example:"'额外收益百分比"` +} +type DataCenterGenerateDataDetailAgentRewardSecond struct { + Name string `json:"name"` + Account string `json:"account"` + AgentRevenue string `json:"agent_revenue" example:"代理收益(元)"` + AgentRevenueRate string `json:"agent_revenue_rate" example:"代理收益百分比"` +} diff --git a/app/md/md_data_center_original_data.go b/app/md/md_data_center_original_data.go new file mode 100644 index 0000000..fc54b27 --- /dev/null +++ b/app/md/md_data_center_original_data.go @@ -0,0 +1,133 @@ +package md + +var AdState = []SelectData{ + {Name: "审核通过", Value: "1"}, + {Name: "待审核", Value: "0"}, + {Name: "审核拒绝", Value: "2"}, + {Name: "封禁中", Value: "3"}, +} + +var AdPlatform = []SelectData{ + {Name: "微信小程序", Value: "wx_applet"}, +} + +type DataCenterOriginalDataReq struct { + Limit string `json:"limit"` + Page string `json:"page" ` + Name string `json:"name"` + State string `json:"state"` + Platform string `json:"platform"` + StartTime string `json:"start_time"` + EndTime string `json:"end_time"` +} + +type DataCenterOriginalDataRes struct { + List []DataCenterOriginalDataData `json:"list" ` + Total int64 `json:"total"` + State []SelectData `json:"state"` + Platform []SelectData `json:"platform"` +} + +type DataCenterOriginalDataData struct { + Id string `json:"id" example:"id"` + Date string `json:"date" example:"日期"` + Name string `json:"name" example:"名称"` + Platform string `json:"platform" example:"平台名称"` + AdvName string `json:"adv_name" example:"广告位"` + State string `json:"state" example:"状态id"` + ReqSuccCount string `json:"req_succ_count" example:"拉取量"` + ExposureCount string `json:"exposure_count" example:"曝光量"` + ExposureRate string `json:"exposure_rate" example:"曝光率"` + ClickCount string `json:"click_count" example:"点击量"` + ClickRate string `json:"click_rate" example:"点击率"` + PublisherIncome string `json:"publisher_income" example:"总收益(元)"` + Ecpm string `json:"ecpm" example:"'ecpm(元)"` + IsApply string `json:"is_apply" example:"是否已应用"` +} + +type DataCenterOriginalDataCommReq struct { + Id string `json:"id" example:"列表id"` +} +type DataCenterDataCenterOriginalDataDoingReq struct { + Id string `json:"id" example:"列表id"` + NowExposureCount string `json:"now_exposure_count" example:"现-曝光量"` + NowEcpm string `json:"now_ecpm" example:"现-广告千次曝光收益(元)"` +} +type DataCenterOriginalDataMoreApplicationReq struct { + Limit string `json:"limit"` + Page string `json:"page" ` + Name string `json:"name"` +} + +type DataCenterOriginalDataMoreApplicationRes struct { + List []DataCenterOriginalDataMoreApplicationData `json:"list" ` + Total int64 `json:"total"` + State []SelectData `json:"state"` +} + +type DataCenterOriginalDataMoreApplicationData struct { + Id string `json:"id" example:"id"` + AppId string `json:"app_id" example:"小程序id"` + AdId string `json:"ad_id" example:"广告位id"` + Logo string `json:"logo"` + Name string `json:"name" example:"名称"` + AdvName string `json:"adv_name" example:"广告位"` + State string `json:"state" example:"状态id"` +} +type DataCenterOriginalDataOneApplicationRes struct { + List []DataCenterOriginalDataOneApplicationData `json:"list" ` +} +type DataCenterOriginalDataOneApplicationData struct { + Id string `json:"id" example:"id"` + AppId string `json:"app_id" example:"小程序id"` + Logo string `json:"logo"` + Name string `json:"name" example:"名称"` +} +type DataCenterOriginalDataOneApplicationAdListReq struct { + AppId string `json:"app_id"` +} +type DataCenterOriginalDataOneApplicationAdListRes struct { + List []DataCenterOriginalDataOneApplicationAdListData `json:"list" ` + State []SelectData `json:"state"` +} +type DataCenterOriginalDataOneApplicationAdListData struct { + Id string `json:"id" example:"id"` + Name string `json:"name" example:"名称"` + AdId string `json:"ad_id" example:"广告位id"` + State string `json:"state" example:"状态id"` +} +type DataCenterOriginalDataMoreApplicationDoingReq struct { + Ids []DataCenterOriginalDataOneApplicationDoingReqData `json:"ids"` + Date string `json:"date" example:"2024-08-28"` +} +type DataCenterOriginalDataOneApplicationDoingReqData struct { + AppId string `json:"app_id"` + AdId string `json:"ad_id"` +} +type DataCenterOriginalDataOneApplicationDoingReq struct { + AppId string `json:"app_id"` + AdId string `json:"ad_id"` + Date string `json:"date" example:"2024-08-28"` +} +type DataCenterOriginalDataOneApplicationDoingRes struct { + AdId string `json:"ad_id"` + AdSlot string `json:"ad_slot" example:"广告位类型名称"` + ExposureCount string `json:"exposure_count" example:"曝光量"` + ReqSuccCount string `json:"req_succ_count" example:"拉取量"` + PublisherIncome string `json:"publisher_income" example:"总收益(元)"` + ClickCount string `json:"click_count" example:"点击量"` + Ecpm string `json:"ecpm" example:"ecpm(元)"` + ExposureRate string `json:"exposure_rate" example:"曝光率"` + ClickRate string `json:"click_rate" example:"点击率"` +} +type MediumDivisionStrategy struct { + PlatformRetentionRate string `json:"platform_retention_rate" example:"平台留存百分比"` + CommissionRetentionRate string `json:"commission_retention_rate" example:"佣金留存百分比"` + MediaRevenueRate string `json:"media_revenue_rate" example:"媒体收益百分比"` + AgentRevenueRate string `json:"agent_revenue_rate" example:"代理收益百分比"` + ExtraRevenueRate string `json:"extra_revenue_rate" example:"额外收益百分比"` + AgreementSharingRate string `json:"agreement_sharing_rate" example:"协议分成百分比"` + ExposureCount string `json:"exposure_count" example:"曝光量"` + OldEcpm string `json:"old_ecpm" example:"原-ecpm(元)"` + Ecpm string `json:"ecpm" example:"现-ecpm(元)"` +} diff --git a/app/md/md_division_strategy.go b/app/md/md_division_strategy.go new file mode 100644 index 0000000..47ba2cb --- /dev/null +++ b/app/md/md_division_strategy.go @@ -0,0 +1,47 @@ +package md + +type DivisionStrategyReq struct { + Limit string `json:"limit"` + Page string `json:"page" ` + Name string `json:"name"` +} + +type DivisionStrategyRes struct { + List []DivisionStrategyData `json:"list" ` + Total int64 `json:"total"` +} + +type DivisionStrategyData struct { + Id string `json:"id" example:"id"` + MediumId string `json:"medium_id" example:"媒体id"` + Account string `json:"account" example:"账号"` + Name string `json:"name" example:"名称"` + PlatformRetentionRate string `json:"platform_retention_rate" example:"平台留存百分比"` + CommissionRetentionRate string `json:"commission_retention_rate" example:"佣金留存百分比"` + MediaRevenueRate string `json:"media_revenue_rate" example:"媒体收益百分比"` + AgentRevenueRate string `json:"agent_revenue_rate" example:"代理收益百分比"` + ExtraRevenueRate string `json:"extra_revenue_rate" example:"额外收益百分比"` + AgreementSharingRate string `json:"agreement_sharing_rate" example:"协议分成百分比"` +} +type DivisionStrategyDetailReq struct { + MediumId string `json:"medium_id"` +} +type DivisionStrategyDetailRes struct { + MediumId string `json:"medium_id" example:"媒体id"` + Account string `json:"account" example:"账号"` + Name string `json:"name" example:"名称"` + PlatformRetentionRate string `json:"platform_retention_rate" example:"平台留存百分比"` + CommissionRetentionRate string `json:"commission_retention_rate" example:"佣金留存百分比"` + MediaRevenueRate string `json:"media_revenue_rate" example:"媒体收益百分比"` + AgentRevenueRate string `json:"agent_revenue_rate" example:"代理收益百分比"` + ExtraRevenueRate string `json:"extra_revenue_rate" example:"额外收益百分比"` + AgreementSharingRate string `json:"agreement_sharing_rate" example:"协议分成百分比"` + AgentList []DivisionStrategyDetailByAgent `json:"agent_list"` +} +type DivisionStrategyDetailByAgent struct { + AgentId string `json:"agent_id" example:"代理id"` + Account string `json:"account" example:"账号"` + Name string `json:"name" example:"名称"` + AgentRevenueRate string `json:"agent_revenue_rate" example:"佣金比例"` + ExtraRevenueRate string `json:"extra_revenue_rate" example:"额外奖励"` +} diff --git a/app/md/md_finance_center.go b/app/md/md_finance_center.go new file mode 100644 index 0000000..3c5b017 --- /dev/null +++ b/app/md/md_finance_center.go @@ -0,0 +1,85 @@ +package md + +type FinanceCenterDataReq struct { + Limit string `json:"limit"` + Page string `json:"page" ` + PayState string `json:"pay_state" example:"读 settle_pay_state返回的"` + StartTime string `json:"start_time" example:"2024-08-29"` + EndTime string `json:"end_time" ` +} + +type FinanceCenterDataRes struct { + List []FinanceCenterDataData `json:"list" ` + Total int64 `json:"total"` + BusinessKind []SelectData `json:"business_kind"` + SettlePayState []SelectData `json:"settle_pay_state"` + SettleState []SelectData `json:"settle_state"` + SettleType []SelectData `json:"settle_type"` +} + +type FinanceCenterDataData struct { + Id string `json:"id"` + TimeStr string `json:"time_str" example:"业务时间"` + Name string `json:"name" example:"媒体名称"` + SettleType string `json:"settle_type" example:"结算单类型(1:日结 2:周结 3:月结 4:预付)"` + AllIncome string `json:"all_income" example:"合计收益"` + TopIncome string `json:"top_income" example:"上游结算"` + CommissionIncome string `json:"commission_income" example:"佣金留存"` + PlatformIncome string `json:"platform_income" example:"平台留存"` + ChangeIncome string `json:"change_income" example:"调价留存"` + MediumIncome string `json:"medium_income" example:"媒体结算"` + OtherIncome string `json:"other_income" example:"其他调整"` + PayState string `json:"pay_state" example:"结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)"` + State string `json:"state" example:"结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)"` + Label string `json:"label"` +} +type FinanceCenterDataDetailRes struct { + Data FinanceCenterDataDetail `json:"data" ` + BusinessKind []SelectData `json:"business_kind"` + SettlePayState []SelectData `json:"settle_pay_state"` + SettleState []SelectData `json:"settle_state"` + SettleType []SelectData `json:"settle_type"` + InvoiceCate []SelectData `json:"invoice_cate"` + InvoiceState []SelectData `json:"invoice_state"` +} + +type FinanceCenterDataDetail struct { + TimeStr string `json:"time_str" example:"业务时间"` + Name string `json:"name" example:"媒体名称"` + Account string `json:"account" example:"媒体账号"` + Source string `json:"source" example:"结算标示"` + SettleFile string `json:"settle_file" example:"结算单"` + Invoice Invoice `json:"invoice"` + AllIncome string `json:"all_income" example:"合计收益"` + TopIncome string `json:"top_income" example:"上游结算"` + CommissionIncome string `json:"commission_income" example:"佣金留存"` + PlatformIncome string `json:"platform_income" example:"平台留存"` + ChangeIncome string `json:"change_income" example:"调价留存"` + MediumIncome string `json:"medium_income" example:"媒体结算"` + OtherIncome string `json:"other_income" example:"其他调整"` + PayState string `json:"pay_state" example:"结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)"` + State string `json:"state" example:"结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)"` +} +type Invoice struct { + Type string `json:"type"` + Time string `json:"time"` + Count string `json:"count"` + File []InvoiceFile `json:"file"` +} +type InvoiceFile struct { + Url string `json:"url"` + State string `json:"state" example:"0待确认 1审核通过 2审核失败"` +} +type SettleFileReq struct { + Id string `json:"id" example:"列表id"` + File string `json:"file" example:"七牛云链接 带http"` +} +type InvoiceReq struct { + Id string `json:"id" example:"列表id"` + State string `json:"state" example:"1审核通过 2审核失败"` + File []InvoiceFile `json:"file" ` +} +type OtherIncomeReq struct { + Id string `json:"id" example:"列表id"` + Amount string `json:"amount" example:"其他收益"` +} diff --git a/app/md/md_mq.go b/app/md/md_mq.go new file mode 100644 index 0000000..1536702 --- /dev/null +++ b/app/md/md_mq.go @@ -0,0 +1,17 @@ +package md + +const AdOriginalData = "zhios.app.ad.original.data.exchange" + +const ( + AdOriginalDataApplication = "ad_original_data_application" //应用数据同步 +) + +type ZhiosAdOriginalDataApplication struct { + AppId string `json:"app_id"` + AdId string `json:"ad_id"` + Date string `json:"date"` + IsEnd string `json:"is_end"` //用来判断哪一个是最后一个 + Mid string `json:"mid"` + ComponentAppid string `json:"component_appid"` + ComponentAppsecret string `json:"component_appsecret"` +} diff --git a/app/md/md_settle_center.go b/app/md/md_settle_center.go new file mode 100644 index 0000000..e6b0ab1 --- /dev/null +++ b/app/md/md_settle_center.go @@ -0,0 +1,88 @@ +package md + +var AccountSettleState = []SelectData{ + {Name: "日结", Value: "1"}, + {Name: "周结", Value: "2"}, + {Name: "月结", Value: "3"}, + {Name: "预付", Value: "4"}, +} +var BusinessKind = []SelectData{ + {Name: "广告合作", Value: "1"}, +} +var InvoiceCate = []SelectData{ + {Name: "电子发票", Value: "0"}, + {Name: "纸质发票", Value: "1"}, +} +var SettlePayState = []SelectData{ + {Name: "未开始", Value: "0"}, + {Name: "待审核发票", Value: "1"}, + {Name: "发票审核中", Value: "2"}, + {Name: "发票审核拒绝", Value: "3"}, + {Name: "付款中", Value: "4"}, + {Name: "已付款", Value: "5"}, +} +var SettleState = []SelectData{ + {Name: "未开始", Value: "0"}, + {Name: "核算中", Value: "1"}, + {Name: "待签订", Value: "2"}, + {Name: "完成签订", Value: "3"}, +} +var InvoiceState = []SelectData{ + {Name: "待审核", Value: "0"}, + {Name: "审核通过", Value: "1"}, + {Name: "审核拒绝", Value: "2"}, +} + +type SettleCenterDataReq struct { + Limit string `json:"limit"` + Page string `json:"page" ` + Name string `json:"name"` + Account string `json:"account"` + State string `json:"state"` +} + +type SettleCenterDataRes struct { + List []SettleCenterDataData `json:"list" ` + Total int64 `json:"total"` + State []SelectData `json:"state"` +} + +type SettleCenterDataData struct { + Id string `json:"id"` + Name string `json:"name"` + Account string `json:"account"` + SettleType string `json:"settle_type"` + UpdateAt string `json:"update_at"` +} +type SettleCenterDataSaveReq struct { + Id string `json:"id"` + SettleType string `json:"settle_type"` +} + +type SettleCenterDataDetailReq struct { + Limit string `json:"limit"` + Id string `json:"id"` + Page string `json:"page" ` + StartTime string `json:"start_time" example:"2024-08-29"` + EndTime string `json:"end_time" ` +} + +type SettleCenterDataDetailRes struct { + List []SettleCenterDataDetailData `json:"list" ` + Total int64 `json:"total"` + BusinessKind []SelectData `json:"business_kind"` + SettlePayState []SelectData `json:"settle_pay_state"` + SettleState []SelectData `json:"settle_state"` + SettleType []SelectData `json:"settle_type"` +} + +type SettleCenterDataDetailData struct { + TimeStr string `json:"time_str"example:"业务时间"` + BusinessKind string `json:"business_kind" example:"业务类型(1:广告合作)"` + SettleType string `json:"settle_type" example:"结算单类型(1:日结 2:周结 3:月结 4:预付)"` + AllIncome string `json:"all_income" example:"总计"` + BasicIncome string `json:"basic_income" example:"基础收益"` + OtherIncome string `json:"other_income" example:"其他收益"` + PayState string `json:"pay_state" example:"结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)"` + State string `json:"state" example:"结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)"` +} diff --git a/app/router/router.go b/app/router/router.go index fcdcb99..876c120 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -68,6 +68,11 @@ func route(r *gin.RouterGroup) { rMediumQualification(r.Group("/mediumQualification")) //媒体-资质 rSetCenter(r.Group("/setCenter")) //设置中心 rMedium(r.Group("/mediumCenter")) //媒体中心 + rDivisionStrategy(r.Group("/divisionStrategy")) //分成策略 + rDataCenter(r.Group("/dataCenter")) //数据中心 + rSettleCenter(r.Group("/settleCenter")) //结算中心 + rFinanceCenter(r.Group("/financeCenter")) //财务中心 + } func rRole(r *gin.RouterGroup) { @@ -144,3 +149,46 @@ func rMedium(r *gin.RouterGroup) { r.POST("/agent/list", hdl.AgentList) //代理列表 r.POST("/agent/bind/medium/list", hdl.AgentBindMediumList) //代理绑定媒体列表 } +func rDivisionStrategy(r *gin.RouterGroup) { + r.POST("/list", hdl.DivisionStrategyList) //分成策略-列表 + r.POST("/detail", hdl.DivisionStrategyDetail) //分成策略-详情 + r.POST("/save", hdl.DivisionStrategySave) //分成策略-保存 +} +func rDataCenter(r *gin.RouterGroup) { + r.POST("/original/data/list", hdl.OriginalDataList) //数据中心-原始数据 + r.POST("/original/data/del", hdl.OriginalDataDel) //数据中心-原始数据-删除 + r.POST("/original/data/total", hdl.OriginalDataTotal) //数据中心-原始数据-记录应用时统计 + r.POST("/original/data/doing", hdl.OriginalDataDoing) //数据中心-原始数据-记录应用时操作 + r.POST("/original/data/more/application", hdl.OriginalDataMoreApplication) //数据中心-原始数据-一键导入应用列表 + r.POST("/original/data/more/application/doing", hdl.OriginalDataMoreApplicationDoing) //数据中心-原始数据-一键导入操作 + r.POST("/original/data/more/application/state", hdl.OriginalDataMoreApplicationState) //数据中心-原始数据-一键导入操作后的完成状态 + r.GET("/original/data/one/application", hdl.OriginalDataOneApplication) //数据中心-原始数据-单个导入应用列表 + r.POST("/original/data/one/application/ad/list", hdl.OriginalDataOneApplicationAdList) //数据中心-原始数据-单个导入应用-广告位列表 + r.POST("/original/data/one/application/total", hdl.OriginalDataOneApplicationTotal) //数据中心-原始数据-单个应用数据统计 + r.POST("/original/data/one/application/doing", hdl.OriginalDataOneApplicationDoing) //数据中心-原始数据-单个应用数据操作 + r.POST("/generate/data/list", hdl.GenerateDataList) //数据中心-分成数据 + r.POST("/generate/data/del", hdl.GenerateDataDel) //数据中心-分成数据-删除 + r.POST("/generate/data/detail", hdl.GenerateDataDetail) //数据中心-分成数据-详情 + r.POST("/generate/data/doing", hdl.GenerateDataDoing) //数据中心-分成数据-报表生成操作 + r.POST("/income/data/list", hdl.IncomeDataList) //数据中心-收益报表 + r.POST("/income/data/detail", hdl.IncomeDataDetail) //数据中心-收益报表-详情 + +} +func rSettleCenter(r *gin.RouterGroup) { + r.POST("/medium/list", hdl.SettleCenterMediumList) //结算中心-媒体列表 + r.POST("/medium/save", hdl.SettleCenterMediumSave) //结算中心-媒体修复结算方式 + r.POST("/medium/detail", hdl.SettleCenterMediumDetail) //结算中心-媒体结算详情 + + r.POST("/agent/list", hdl.SettleCenterAgentList) //结算中心-代理列表 + r.POST("/agent/save", hdl.SettleCenterAgentSave) //结算中心-代理修复结算方式 + r.POST("/agent/detail", hdl.SettleCenterAgentDetail) //结算中心-代理结算详情 +} +func rFinanceCenter(r *gin.RouterGroup) { + r.POST("/medium/list", hdl.FinanceCenterMediumList) //财务中心-媒体列表 + r.POST("/medium/detail", hdl.FinanceCenterMediumDetail) //财务中心-媒体详情 + r.POST("/medium/settle/file/save", hdl.FinanceCenterMediumSettleFileSave) //财务中心-媒体详情-结算单上传 + r.POST("/medium/invoice/save", hdl.FinanceCenterMediumInvoiceSave) //财务中心-媒体详情-发票审核 + r.POST("/medium/other/income/save", hdl.FinanceCenterMediumOtherIncomeSave) //财务中心-媒体详情-其他收益调整 + r.POST("/medium/pay/save", hdl.FinanceCenterMediumPaySave) //财务中心-媒体详情-确认支付 + +} diff --git a/app/svc/svc_applet_application_ad_space.go b/app/svc/svc_applet_application_ad_space.go index 2747cec..0c3a375 100644 --- a/app/svc/svc_applet_application_ad_space.go +++ b/app/svc/svc_applet_application_ad_space.go @@ -70,9 +70,7 @@ func AppletApplicationAdSpaceList(c *gin.Context) { } engine := MasterDb(c) NewAppletApplicationDb := implement.NewAppletApplicationAdSpaceListDb(engine) - //TODO::临时处理 - //appletApplicationList, total, _ := NewAppletApplicationDb.FindAppletApplicationAdSpaceList(req.Name, req.Platform, req.CooperateState, utils.StrToInt(req.MediumId), utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) - appletApplicationList, total, _ := NewAppletApplicationDb.FindAppletApplicationAdSpaceList(req.Name, req.Platform, "", req.CooperateState, utils.StrToInt(req.MediumId), utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + appletApplicationList, total, _ := NewAppletApplicationDb.FindAppletApplicationAdSpaceList(req.Name, req.Platform, req.AdType, req.CooperateState, utils.StrToInt(req.MediumId), utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) data := make([]md.AppletApplicationAdSpaceListData, 0) if len(appletApplicationList) > 0 { for _, v := range appletApplicationList { diff --git a/app/svc/svc_data_center_generate_data.go b/app/svc/svc_data_center_generate_data.go new file mode 100644 index 0000000..1e5881c --- /dev/null +++ b/app/svc/svc_data_center_generate_data.go @@ -0,0 +1,263 @@ +package svc + +import ( + "applet/app/e" + "applet/app/md" + "applet/app/utils" + "applet/app/utils/cache" + db "code.fnuoos.com/zhimeng/model.git/src" + implement2 "code.fnuoos.com/zhimeng/model.git/src/implement" + "code.fnuoos.com/zhimeng/model.git/src/super/implement" + "code.fnuoos.com/zhimeng/model.git/src/super/model" + "errors" + "fmt" + "github.com/gin-gonic/gin" +) + +func DataCenterIncomeDataList(c *gin.Context, req md.DataCenterGenerateDataReq) md.DataCenterIncomeDataRes { + engine := db.Db + NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(engine) + appId := GetAppletId(c, req.Name, req.Platform) + slotId := GetSlotId(c, req.State) + MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataList(c.GetString("mid"), appId, slotId, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + data := make([]md.DataCenterIncomeDataData, 0) + if len(MediumList) > 0 { + for _, v := range MediumList { + var tmp = md.DataCenterIncomeDataData{ + AgreementSharing: utils.Float64ToStr(float64(v.AgreementSharing) / 100), + AgentRevenue: utils.Float64ToStr(float64(v.AgentRevenue) / 100), + Id: utils.IntToStr(v.Id), + ExposureCount: utils.IntToStr(v.ExposureCount), + ClickCount: utils.IntToStr(v.ClickCount), + ClickRate: v.ClickRate, + Ecpm: utils.Float64ToStr(utils.StrToFloat64(v.Ecpm) / 100), + Date: v.Date, + MediaRevenue: utils.Float64ToStr(float64(v.MediaRevenue) / 100), + SettleAmount: utils.Float64ToStr(float64(v.MediaRevenue+v.AgentRevenue+v.AgreementSharing) / 100), + } + tmpApplet := GetAppletInfo(c, v.AppId) + if tmpApplet["platform"] != "" { + tmp.Platform = tmpApplet["platform"] + } + if tmpApplet["name"] != "" { + tmp.Name = tmpApplet["name"] + } + tmpSlot := GetSlotInfo(c, v.SlotId) + if tmpSlot["state"] != "" { + tmp.State = tmpSlot["state"] + } + if tmpSlot["name"] != "" { + tmp.AdvName = tmpSlot["name"] + } + data = append(data, tmp) + } + } + res := md.DataCenterIncomeDataRes{ + List: data, + Total: total, + State: md.AdState, + Platform: md.AdPlatform, + } + return res +} +func DataCenterIncomeDataDetail(c *gin.Context, req md.DataCenterGenerateDataCommReq) { + NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(db.Db) + data, _ := NewGenerateWxAdDataDb.GetGenerateWxAdData(utils.StrToInt(req.Id)) + if data == nil { + e.OutErr(c, 400, e.NewErr(400, "记录不存在")) + return + } + agentReward := make([]md.DataCenterGenerateDataDetailAgentRewardSecond, 0) + NewGenerateWxAdDataWithAgentFlowDb := implement.NewGenerateWxAdDataWithAgentFlowDb(db.Db) + agent, _ := NewGenerateWxAdDataWithAgentFlowDb.FindGenerateWxAdDataWithAgentFlowByStrategyId(data.Id) + if agent != nil { + for _, v := range *agent { + tmp := md.DataCenterGenerateDataDetailAgentRewardSecond{ + Name: "", + Account: "", + AgentRevenue: utils.Float64ToStr(float64(v.AgentRevenue) / 100), + AgentRevenueRate: utils.IntToStr(data.AgentRevenueRate), + } + tmpApplet := GetAgentInfo(c, v.AgentId) + if tmpApplet["name"] != "" { + tmp.Name = tmpApplet["name"] + } + if tmpApplet["account"] != "" { + tmp.Account = tmpApplet["account"] + } + agentReward = append(agentReward, tmp) + } + } + res := md.DataCenterIncomeDataDetail{ + MediaRevenue: utils.Float64ToStr(float64(data.MediaRevenue) / 100), + AgreementSharing: utils.Float64ToStr(float64(data.AgreementSharing) / 100), + AgentRevenue: utils.Float64ToStr(float64(data.AgentRevenue) / 100), + DataSource: "手动同步", + CreateAt: data.CreateAt, + UpdateAt: data.UpdateAt, + MediaRevenueRate: utils.IntToStr(data.MediaRevenueRate), + AgentRevenueRate: utils.IntToStr(data.AgentRevenueRate), + AgreementSharingRate: utils.IntToStr(data.AgreementSharingRate), + AgentReward: agentReward, + } + tmpApplet := GetAppletInfo(c, data.AppId) + if tmpApplet["platform"] != "" { + res.Platform = tmpApplet["platform"] + } + NewAppletApplicationDb := implement2.NewAppletApplicationDb(MasterDb(c)) + app, _ := NewAppletApplicationDb.GetAppletApplicationListByAppid(data.AppId) + tmp := GetMediumInfo(c, app.MediumId) + if tmp["name"] != "" { + res.MediumName = tmp["name"] + if tmp["account"] != "" { + res.MediumName += "(" + tmp["account"] + ")" + } + } + e.OutSuc(c, res, nil) + return +} + +func DataCenterGenerateDataList(c *gin.Context, req md.DataCenterGenerateDataReq) md.DataCenterGenerateDataRes { + engine := db.Db + NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(engine) + appId := GetAppletId(c, req.Name, req.Platform) + slotId := GetSlotId(c, req.State) + MediumList, total, _ := NewGenerateWxAdDataDb.FindGenerateWxAdDataList(c.GetString("mid"), appId, slotId, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + data := make([]md.DataCenterGenerateDataData, 0) + if len(MediumList) > 0 { + NewOriginalWxAdDataDb := implement.NewOriginalWxAdDataDb(engine) + for _, v := range MediumList { + wxData, _ := NewOriginalWxAdDataDb.GetOriginalWxAdData(v.Id) + var tmp = md.DataCenterGenerateDataData{ + Id: utils.IntToStr(v.Id), + ExposureCount: utils.IntToStr(v.ExposureCount), + ClickCount: utils.IntToStr(v.ClickCount), + ClickRate: v.ClickRate, + Ecpm: utils.Float64ToStr(utils.StrToFloat64(v.Ecpm) / 100), + IsGenerateReport: utils.IntToStr(v.IsGenerateReport), + Date: v.Date, + PlatformRetention: utils.Float64ToStr(float64(v.PlatformRetention) / 100), + CommissionRetention: utils.Float64ToStr(float64(v.CommissionRetention) / 100), + PriceAdjustmentRetention: utils.Float64ToStr(float64(v.PriceAdjustmentRetention) / 100), + MediaRevenue: utils.Float64ToStr(float64(v.MediaRevenue) / 100), + AgentRevenue: utils.Float64ToStr(float64(v.AgentRevenue) / 100), + ExtraRevenue: utils.Float64ToStr(float64(v.ExtraRevenue) / 100), + AgreementSharing: utils.Float64ToStr(float64(v.AgreementSharing) / 100), + AgreementSharingTotal: utils.Float64ToStr(float64(v.AgreementSharingTotal) / 100), + } + if wxData != nil { + tmp.OldClickRate = wxData.ClickRate + tmp.OldClickCount = utils.IntToStr(wxData.ClickCount) + tmp.OldEcpm = utils.Float64ToStr(utils.StrToFloat64(wxData.Ecpm) / 100) + tmp.OldExposureCount = utils.IntToStr(wxData.ExposureCount) + } + tmpApplet := GetAppletInfo(c, v.AppId) + if tmpApplet["platform"] != "" { + tmp.Platform = tmpApplet["platform"] + } + if tmpApplet["name"] != "" { + tmp.Name = tmpApplet["name"] + } + tmpSlot := GetSlotInfo(c, v.SlotId) + if tmpSlot["state"] != "" { + tmp.State = tmpSlot["state"] + } + if tmpSlot["name"] != "" { + tmp.AdvName = tmpSlot["name"] + } + data = append(data, tmp) + } + } + res := md.DataCenterGenerateDataRes{ + List: data, + Total: total, + State: md.AdState, + Platform: md.AdPlatform, + } + return res +} + +func DataCenterGenerateDataDel(c *gin.Context, req md.DataCenterGenerateDataCommReq) error { + NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(db.Db) + data, _ := NewGenerateWxAdDataDb.GetGenerateWxAdData(utils.StrToInt(req.Id)) + if data == nil { + return errors.New("记录不存在") + } + if data.IsGenerateReport == 1 { + return errors.New("记录已应用,不能删除") + } + _, err := db.Db.Where("id=?", req.Id).Delete(&model.GenerateWxAdData{}) + if err != nil { + return err + } + return nil +} +func DataCenterGenerateDataDetail(c *gin.Context, req md.DataCenterGenerateDataCommReq) { + NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(db.Db) + data, _ := NewGenerateWxAdDataDb.GetGenerateWxAdData(utils.StrToInt(req.Id)) + if data == nil { + e.OutErr(c, 400, e.NewErr(400, "记录不存在")) + return + } + agentReward := make([]md.DataCenterGenerateDataDetailAgentReward, 0) + NewGenerateWxAdDataWithAgentFlowDb := implement.NewGenerateWxAdDataWithAgentFlowDb(db.Db) + agent, _ := NewGenerateWxAdDataWithAgentFlowDb.FindGenerateWxAdDataWithAgentFlowByStrategyId(data.Id) + if agent != nil { + for _, v := range *agent { + tmp := md.DataCenterGenerateDataDetailAgentReward{ + Name: "", + Account: "", + AgentRevenue: utils.Float64ToStr(float64(v.AgentRevenue) / 100), + AgentRevenueRate: utils.IntToStr(data.AgentRevenueRate), + ExtraRevenue: utils.Float64ToStr(float64(v.ExtraRevenue) / 100), + ExtraRevenueRate: utils.IntToStr(data.ExtraRevenueRate), + } + tmpApplet := GetAgentInfo(c, v.AgentId) + if tmpApplet["name"] != "" { + tmp.Name = tmpApplet["name"] + } + if tmpApplet["account"] != "" { + tmp.Account = tmpApplet["account"] + } + agentReward = append(agentReward, tmp) + } + } + res := md.DataCenterGenerateDataDetailData{ + PlatformRetentionRate: utils.IntToStr(data.PlatformRetentionRate), + CommissionRetentionRate: utils.IntToStr(data.CommissionRetentionRate), + MediaRevenueRate: utils.IntToStr(data.MediaRevenueRate), + AgentRevenueRate: utils.IntToStr(data.AgentRevenueRate), + ExtraRevenueRate: utils.IntToStr(data.ExtraRevenueRate), + AgreementSharingRate: utils.IntToStr(data.AgreementSharingRate), + AgentReward: agentReward, + } + e.OutSuc(c, res, nil) + return +} +func DataCenterGenerateDataDoing(c *gin.Context, req md.DataCenterGenerateDataCommReq) error { + NewGenerateWxAdDataDb := implement.NewGenerateWxAdDataDb(db.Db) + data, _ := NewGenerateWxAdDataDb.GetGenerateWxAdData(utils.StrToInt(req.Id)) + if data == nil { + return e.NewErr(400, "记录不存在") + } + if data.IsGenerateReport == 1 { + return e.NewErr(400, "该记录已完成操作") + } + // 加锁 防止并发提取 + mutexKey := fmt.Sprintf("%s:DataCenterGenerateDataDoing:%s", c.GetString("mid"), req.Id) + withdrawAvailable, err := cache.Do("SET", mutexKey, 1, "EX", 5, "NX") + if err != nil { + return err + } + if withdrawAvailable != "OK" { + return e.NewErr(400000, "请求过于频繁,请稍后再试") + } + args := md.SettlementWxAdData{ + GenerateDataId: utils.StrToInt(req.Id), + } + err = SettlementWxAdData(args) + if err != nil { + return err + } + return nil +} diff --git a/app/svc/svc_data_center_original_data.go b/app/svc/svc_data_center_original_data.go new file mode 100644 index 0000000..8b82e3c --- /dev/null +++ b/app/svc/svc_data_center_original_data.go @@ -0,0 +1,403 @@ +package svc + +import ( + "applet/app/e" + "applet/app/lib/wechat" + "applet/app/md" + "applet/app/utils" + "applet/app/utils/cache" + "code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" + db "code.fnuoos.com/zhimeng/model.git/src" + implement2 "code.fnuoos.com/zhimeng/model.git/src/implement" + model2 "code.fnuoos.com/zhimeng/model.git/src/model" + "code.fnuoos.com/zhimeng/model.git/src/super/implement" + "code.fnuoos.com/zhimeng/model.git/src/super/model" + "errors" + "fmt" + "github.com/gin-gonic/gin" + "strings" +) + +func DataCenterOriginalDataList(c *gin.Context, req md.DataCenterOriginalDataReq) md.DataCenterOriginalDataRes { + engine := db.Db + NewOriginalWxAdDataDb := implement.NewOriginalWxAdDataDb(engine) + appId := GetAppletId(c, req.Name, req.Platform) + slotId := GetSlotId(c, req.State) + MediumList, total, _ := NewOriginalWxAdDataDb.FindOriginalWxAdDataList(c.GetString("mid"), appId, slotId, req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + data := make([]md.DataCenterOriginalDataData, 0) + if len(MediumList) > 0 { + for _, v := range MediumList { + var tmp = md.DataCenterOriginalDataData{ + Id: utils.IntToStr(v.Id), + ReqSuccCount: utils.IntToStr(v.ReqSuccCount), + ExposureCount: utils.IntToStr(v.ExposureCount), + ExposureRate: v.ExposureRate, + ClickCount: utils.IntToStr(v.ClickCount), + ClickRate: v.ClickRate, + Date: v.Date, + PublisherIncome: utils.Float64ToStr(float64(v.PublisherIncome) / 100), + Ecpm: utils.Float64ToStr(utils.StrToFloat64(v.Ecpm) / 100), + IsApply: utils.IntToStr(v.IsApply), + } + tmpApplet := GetAppletInfo(c, v.AppId) + if tmpApplet["platform"] != "" { + tmp.Platform = tmpApplet["platform"] + } + if tmpApplet["name"] != "" { + tmp.Name = tmpApplet["name"] + } + tmpSlot := GetSlotInfo(c, v.SlotId) + if tmpSlot["state"] != "" { + tmp.State = tmpSlot["state"] + } + if tmpSlot["name"] != "" { + tmp.AdvName = tmpSlot["name"] + } + data = append(data, tmp) + } + } + res := md.DataCenterOriginalDataRes{ + List: data, + Total: total, + State: md.AdState, + Platform: md.AdPlatform, + } + return res +} +func DataCenterOriginalDataDel(c *gin.Context, req md.DataCenterOriginalDataCommReq) error { + NewOriginalWxAdDataDb := implement.NewOriginalWxAdDataDb(db.Db) + data, _ := NewOriginalWxAdDataDb.GetOriginalWxAdData(utils.StrToInt(req.Id)) + if data == nil { + return errors.New("记录不存在") + } + if data.IsApply == 1 { + return errors.New("记录已应用,不能删除") + } + _, err := db.Db.Where("id=?", req.Id).Delete(&model.OriginalWxAdData{}) + if err != nil { + return err + } + return nil +} +func OriginalDataMoreApplication(c *gin.Context, req md.DataCenterOriginalDataMoreApplicationReq) md.DataCenterOriginalDataMoreApplicationRes { + engine := MasterDb(c) + NewAppletApplicationAdSpaceListDb := implement2.NewAppletApplicationAdSpaceListDb(engine) + MediumList, total, _ := NewAppletApplicationAdSpaceListDb.FindAppletApplicationAdSpaceList(req.Name, "", "", "", 0, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + data := make([]md.DataCenterOriginalDataMoreApplicationData, 0) + if len(MediumList) > 0 { + for _, v := range MediumList { + var tmp = md.DataCenterOriginalDataMoreApplicationData{ + Id: utils.IntToStr(v.AppletApplicationAdSpaceList.Id), + AppId: v.AppletApplicationAdSpaceList.AppId, + AdId: v.AppletApplicationAdSpaceList.AdId, + Logo: v.AppletApplication.Logo, + Name: v.AppletApplication.Name, + State: utils.IntToStr(v.AppletApplicationAdSpaceList.State), + AdvName: v.AppletApplicationAdSpaceList.Name, + } + data = append(data, tmp) + } + } + res := md.DataCenterOriginalDataMoreApplicationRes{ + List: data, + Total: total, + State: md.AdState, + } + return res +} +func OriginalDataOneApplication(c *gin.Context) { + list := make([]md.DataCenterOriginalDataOneApplicationData, 0) + NewAppletApplicationDb := implement2.NewAppletApplicationDb(MasterDb(c)) + applicationList, _ := NewAppletApplicationDb.FindAllAppletApplicationList() + for _, v := range applicationList { + tmp := md.DataCenterOriginalDataOneApplicationData{ + Id: utils.IntToStr(v.Id), + AppId: v.AppId, + Logo: v.Logo, + Name: v.Name, + } + list = append(list, tmp) + } + var res = md.DataCenterOriginalDataOneApplicationRes{ + List: list, + } + e.OutSuc(c, res, nil) + return +} +func OriginalDataOneApplicationAdList(c *gin.Context, req md.DataCenterOriginalDataOneApplicationAdListReq) md.DataCenterOriginalDataOneApplicationAdListRes { + list := make([]md.DataCenterOriginalDataOneApplicationAdListData, 0) + NewAppletApplicationDb := implement2.NewAppletApplicationAdSpaceListDb(MasterDb(c)) + applicationList, _ := NewAppletApplicationDb.FindAllAppletApplicationAdSpaceListList(req.AppId) + for _, v := range applicationList { + tmp := md.DataCenterOriginalDataOneApplicationAdListData{ + Id: utils.IntToStr(v.Id), + AdId: v.AdId, + Name: v.Name, + State: utils.IntToStr(v.State), + } + list = append(list, tmp) + } + var res = md.DataCenterOriginalDataOneApplicationAdListRes{ + List: list, + State: md.AdState, + } + return res +} +func DataCenterOriginalDataTotal(c *gin.Context, req md.DataCenterOriginalDataCommReq) { + NewOriginalWxAdDataDb := implement.NewOriginalWxAdDataDb(db.Db) + data, _ := NewOriginalWxAdDataDb.GetOriginalWxAdData(utils.StrToInt(req.Id)) + if data == nil { + e.OutErr(c, 400, e.NewErr(400, "记录不存在")) + return + } + //应用 + NewAppletApplicationDb := implement2.NewAppletApplicationDb(MasterDb(c)) + appid, _ := NewAppletApplicationDb.GetAppletApplicationListByAppid(data.AppId) + if appid == nil { + e.OutErr(c, 400, e.NewErr(400, "应用不存在")) + return + } + //分成策略 + NewMediumDivisionStrategyDb := implement.NewMediumDivisionStrategyDb(MasterDb(c)) + strategy, _ := NewMediumDivisionStrategyDb.GetOriginalWxAdDataByMediumId(appid.MediumId) + if strategy == nil { + e.OutErr(c, 400, e.NewErr(400, "分成策略不存在")) + return + } + ecpmReq := md.ClacEcpmReq{ + OriginalExposureCount: data.ExposureCount, + OriginalEcpm: data.Ecpm, + GenerateDataId: data.Id, + } + _, ecpm := ClacEcpm(ecpmReq) + + res := md.MediumDivisionStrategy{ + PlatformRetentionRate: utils.IntToStr(strategy.PlatformRetentionRate), + CommissionRetentionRate: utils.IntToStr(strategy.CommissionRetentionRate), + MediaRevenueRate: utils.IntToStr(strategy.MediaRevenueRate), + AgentRevenueRate: utils.IntToStr(strategy.AgentRevenueRate), + ExtraRevenueRate: utils.IntToStr(strategy.ExtraRevenueRate), + AgreementSharingRate: utils.IntToStr(strategy.AgreementSharingRate), + ExposureCount: utils.IntToStr(data.ExposureCount), + Ecpm: utils.Float64ToStr(utils.StrToFloat64(ecpm) / 100), + OldEcpm: utils.Float64ToStr(utils.StrToFloat64(data.Ecpm) / 100), + } + e.OutSuc(c, res, nil) + return +} +func DataCenterOriginalDataDoing(c *gin.Context, req md.DataCenterDataCenterOriginalDataDoingReq) error { + NewOriginalWxAdDataDb := implement.NewOriginalWxAdDataDb(db.Db) + data, _ := NewOriginalWxAdDataDb.GetOriginalWxAdData(utils.StrToInt(req.Id)) + if data == nil { + return e.NewErr(400, "记录不存在") + } + if data.IsApply == 1 { + return e.NewErr(400, "该记录已完成操作") + } + // 加锁 防止并发提取 + mutexKey := fmt.Sprintf("%s:DataCenterOriginalDataDoing:%s", c.GetString("mid"), req.Id) + withdrawAvailable, err := cache.Do("SET", mutexKey, 1, "EX", 5, "NX") + if err != nil { + return err + } + if withdrawAvailable != "OK" { + return e.NewErr(400000, "请求过于频繁,请稍后再试") + } + args := md.GenerateWxAdData{ + OriginalDataId: utils.StrToInt(req.Id), + OriginalExposureCount: data.ExposureCount, + OriginalEcpm: data.Ecpm, + NowExposureCount: utils.StrToInt(req.NowExposureCount), + NowEcpm: utils.Float64ToStr(utils.StrToFloat64(req.NowEcpm) * 100), + } + err, _ = GenerateWxAdData(args) + if err != nil { + return err + } + return nil +} +func OriginalDataMoreApplicationDoing(c *gin.Context, req md.DataCenterOriginalDataMoreApplicationDoingReq) error { + state, _ := cache.GetString(c.GetString("mid") + ":original.wx.ad.data") + if state == "1" { + return e.NewErr(400000, "数据采集中~") + } + // 加锁 防止并发提取 + mutexKey := fmt.Sprintf("%s:DataCenterOriginalDataDoingOriginalDataMoreApplicationDoing", c.GetString("mid")) + withdrawAvailable, err := cache.Do("SET", mutexKey, 1, "EX", 5, "NX") + if err != nil { + return err + } + if withdrawAvailable != "OK" { + return e.NewErr(400000, "请求过于频繁,请稍后再试") + } + ch, err := rabbit.Cfg.Pool.GetChannel() + if err != nil { + return err + } + defer ch.Release() + ids := make([]md.DataCenterOriginalDataOneApplicationDoingReqData, 0) + + for _, v := range req.Ids { + count, _ := db.Db.Where("uuid=? and date=? and app_id=? and slot_id=?", c.GetString("mid"), req.Date, v.AppId, v.AdId).Count(&model.OriginalWxAdData{}) + if count > 0 { + continue + } + ids = append(ids, v) + } + masterId := GetMasterId(c) + userWxAppletListDb := implement.NewUserWxAppletListDb(db.Db) + UserWxAppletList, err := userWxAppletListDb.GetUserWxAppletList(masterId) + if err != nil { + return e.NewErr(400000, err.Error()) + } + if UserWxAppletList == nil { + return e.NewErr(400000, "未查询到对应记录") + } + wxOpenThirdPartyAppListDb := implement.NewWxOpenThirdPartyAppListDb(db.Db) + wxOpenThirdPartyAppList, err := wxOpenThirdPartyAppListDb.GetWxOpenThirdPartyAppList(utils.StrToInt(masterId)) + if err != nil { + return e.NewErr(400000, err.Error()) + } + if wxOpenThirdPartyAppList == nil { + return e.NewErr(400000, "未查询到对应三方应用记录") + } + for k, v := range ids { + var arg = md.ZhiosAdOriginalDataApplication{ + Mid: c.GetString("mid"), + AppId: v.AppId, + AdId: v.AdId, + Date: req.Date, + ComponentAppid: wxOpenThirdPartyAppList.Appid, + ComponentAppsecret: wxOpenThirdPartyAppList.AppSecret, + } + if k+1 == len(req.Ids) { + arg.IsEnd = "1" + } + err := ch.PublishV2(md.AdOriginalData, utils.SerializeStr(arg), md.AdOriginalDataApplication) + if err != nil { + ch.PublishV2(md.AdOriginalData, utils.SerializeStr(arg), md.AdOriginalDataApplication) + } + } + if len(ids) == 0 { + return e.NewErr(400000, "选择的广告位已存在,请删除后再生成") + } + cache.SetEx(c.GetString("mid")+":original.wx.ad.data", "1", 3600) + return nil +} +func OriginalDataOneApplicationTotal(c *gin.Context, req md.DataCenterOriginalDataOneApplicationDoingReq) { + //1、查找对应 user_wx_applet_list 记录 + userWxAppletListDb := implement.NewUserWxAppletListDb(db.Db) + masterId := c.GetString("mid") + UserWxAppletList, err := userWxAppletListDb.GetUserWxAppletList(masterId) + if err != nil { + e.OutErr(c, e.ERR_DB_ORM, err.Error()) + return + } + if UserWxAppletList == nil { + e.OutErr(c, e.ERR_NO_DATA, "未查询到对应记录") + return + } + wxOpenThirdPartyAppListDb := implement.NewWxOpenThirdPartyAppListDb(db.Db) + wxOpenThirdPartyAppList, err := wxOpenThirdPartyAppListDb.GetWxOpenThirdPartyAppList(utils.StrToInt(masterId)) + if err != nil { + e.OutErr(c, e.ERR, err.Error()) + return + } + if wxOpenThirdPartyAppList == nil { + e.OutErr(c, e.ERR_NOT_FAN, "未查询到对应三方应用记录") + return + } + wxApiService, err := wechat.NewWxApiService(masterId, wxOpenThirdPartyAppList.Appid, wxOpenThirdPartyAppList.AppSecret) + if err != nil { + e.OutErr(c, e.ERR, err.Error()) + return + } + err, args := wxApiService.GetAdposDetail(req.AppId, 1, 1, req.Date, req.Date, req.AdId) + if err != nil { + e.OutErr(c, e.ERR, err.Error()) + return + } + var res = md.DataCenterOriginalDataOneApplicationDoingRes{} + for _, v := range args.List { + res = md.DataCenterOriginalDataOneApplicationDoingRes{ + AdId: v.AdUnitId, + AdSlot: v.StatItem.AdSlot, + ExposureCount: utils.Int64ToStr(v.StatItem.ExposureCount), + ReqSuccCount: utils.Int64ToStr(v.StatItem.ReqSuccCount), + PublisherIncome: utils.Float64ToStr(float64(v.StatItem.PublisherIncome) / 100), + ClickCount: utils.Int64ToStr(v.StatItem.ClickCount), + Ecpm: utils.Float64ToStr(v.StatItem.Ecpm / 100), + ExposureRate: utils.Float64ToStr(v.StatItem.ExposureRate), + ClickRate: utils.Float64ToStr(v.StatItem.ClickRate), + } + } + e.OutSuc(c, res, nil) + return +} + +// 应用 +func GetAppletId(c *gin.Context, name, platform string) string { + mediumId := "" + sess := MasterDb(c).Where("1=1") + if name != "" || platform != "" { + ids := []string{"-1"} + var tmp []model2.AppletApplication + if name != "" { + sess.And("name like ? ", "%"+name+"%") + } + if platform != "" { + sess.And("platform = ? ", platform) + } + sess.Find(&tmp) + for _, v := range tmp { + ids = append(ids, utils.IntToStr(v.MediumId)) + } + mediumId = strings.Join(ids, ",") + } + return mediumId +} + +// 广告位 +func GetSlotId(c *gin.Context, state string) string { + mediumId := "" + if state != "" { + ids := []string{"-1"} + var tmp []model2.AppletApplicationAdSpaceList + MasterDb(c).Where("state=?", state).Find(&tmp) + for _, v := range tmp { + ids = append(ids, utils.IntToStr(v.MediumId)) + } + mediumId = strings.Join(ids, ",") + } + return mediumId +} + +// 应用 +func GetAppletInfo(c *gin.Context, id string) map[string]string { + var res = map[string]string{ + "platform": "", + "name": "", + } + NewAppletApplicationDb := implement2.NewAppletApplicationDb(MasterDb(c)) + data, _ := NewAppletApplicationDb.GetAppletApplicationListByAppid(id) + if data != nil { + res["platform"] = data.Platform + res["name"] = data.Name + } + return res +} + +// 广告位 +func GetSlotInfo(c *gin.Context, id string) map[string]string { + var res = map[string]string{ + "state": "", + "name": "", + } + NewAppletApplicationAdSpaceListDb := implement2.NewAppletApplicationAdSpaceListDb(MasterDb(c)) + data, _ := NewAppletApplicationAdSpaceListDb.GetAppletApplicationAdSpaceListByAdId(id) + if data != nil { + res["name"] = data.Name + res["state"] = utils.IntToStr(data.State) + } + return res +} diff --git a/app/svc/svc_division_strategy.go b/app/svc/svc_division_strategy.go new file mode 100644 index 0000000..f2ffcff --- /dev/null +++ b/app/svc/svc_division_strategy.go @@ -0,0 +1,148 @@ +package svc + +import ( + "applet/app/md" + "applet/app/utils" + 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" + "github.com/gin-gonic/gin" + "time" +) + +func DivisionStrategyList(c *gin.Context, req md.DivisionStrategyReq) md.DivisionStrategyRes { + engine := db.Db + NewMediumDivisionStrategyDb := implement.NewMediumDivisionStrategyDb(engine) + mediumId := GetMediumId(c, req.Name) + MediumList, total, _ := NewMediumDivisionStrategyDb.FindMediumDivisionStrategyList(c.GetString("mid"), mediumId, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + data := make([]md.DivisionStrategyData, 0) + if len(MediumList) > 0 { + for _, v := range MediumList { + var tmp = md.DivisionStrategyData{ + Id: utils.IntToStr(v.Id), + MediumId: utils.IntToStr(v.Id), + Account: "", + Name: "", + PlatformRetentionRate: utils.IntToStr(v.PlatformRetentionRate), + CommissionRetentionRate: utils.IntToStr(v.CommissionRetentionRate), + MediaRevenueRate: utils.IntToStr(v.MediaRevenueRate), + AgentRevenueRate: utils.IntToStr(v.AgentRevenueRate), + ExtraRevenueRate: utils.IntToStr(v.ExtraRevenueRate), + AgreementSharingRate: utils.IntToStr(v.AgreementSharingRate), + } + tmpMedium := GetMediumInfo(c, v.MediumId) + if tmpMedium["account"] != "" { + tmp.Account = tmpMedium["account"] + } + if tmpMedium["name"] != "" { + tmp.Name = tmpMedium["name"] + } + data = append(data, tmp) + } + } + res := md.DivisionStrategyRes{ + List: data, + Total: total, + } + return res +} +func DivisionStrategyDetail(c *gin.Context, req md.DivisionStrategyDetailReq) md.DivisionStrategyDetailRes { + eg := db.Db + NewMediumDivisionStrategyDb := implement.NewMediumDivisionStrategyDb(eg) + mediumData, _ := NewMediumDivisionStrategyDb.GetOriginalWxAdDataByMediumId(utils.StrToInt(req.MediumId)) + tmpMedium := GetMediumInfo(c, mediumData.MediumId) + agentList := make([]md.DivisionStrategyDetailByAgent, 0) + res := md.DivisionStrategyDetailRes{ + MediumId: req.MediumId, + Account: "", + Name: "", + PlatformRetentionRate: utils.IntToStr(mediumData.PlatformRetentionRate), + CommissionRetentionRate: utils.IntToStr(mediumData.CommissionRetentionRate), + MediaRevenueRate: utils.IntToStr(mediumData.MediaRevenueRate), + AgentRevenueRate: utils.IntToStr(mediumData.AgentRevenueRate), + ExtraRevenueRate: utils.IntToStr(mediumData.ExtraRevenueRate), + AgreementSharingRate: utils.IntToStr(mediumData.AgreementSharingRate), + AgentList: agentList, + } + if tmpMedium["account"] != "" { + res.Account = tmpMedium["account"] + } + if tmpMedium["name"] != "" { + res.Name = tmpMedium["name"] + } + NewAgentWithMediumDb := implement.NewAgentWithMediumDb(eg) + agent, _ := NewAgentWithMediumDb.FindAgentWithMediumListByMediumIdAll(mediumData.MediumId) + if agent != nil { + NewMediumDivisionStrategyWithAgentFlowDb := implement.NewMediumDivisionStrategyWithAgentFlowDb(eg) + strategy, _ := NewMediumDivisionStrategyWithAgentFlowDb.FindMediumDivisionStrategyWithAgentFlowByStrategyId(mediumData.Id) + strategyMap := make(map[int]model.MediumDivisionStrategyWithAgentFlow) + if strategy != nil { + for _, v := range *strategy { + strategyMap[v.AgentId] = v + } + } + for _, v := range agent { + tmp := md.DivisionStrategyDetailByAgent{ + AgentId: utils.IntToStr(v.AgentId), + AgentRevenueRate: utils.IntToStr(strategyMap[v.AgentId].AgentRevenueRate), + ExtraRevenueRate: utils.IntToStr(strategyMap[v.AgentId].ExtraRevenueRate), + } + tmpAgent := GetAgentInfo(c, v.AgentId) + if tmpAgent["account"] != "" { + tmp.Account = tmpAgent["account"] + } + if tmpAgent["name"] != "" { + tmp.Name = tmpAgent["name"] + } + agentList = append(agentList, tmp) + } + } + res.AgentList = agentList + return res +} +func DivisionStrategySave(c *gin.Context, req md.DivisionStrategyDetailRes) error { + eg := db.Db + sess := eg.NewSession() + defer sess.Close() + sess.Begin() + NewMediumDivisionStrategyDb := implement.NewMediumDivisionStrategyDb(eg) + mediumData, _ := NewMediumDivisionStrategyDb.GetOriginalWxAdDataByMediumIdSess(sess, utils.StrToInt(req.MediumId)) + mediumData.PlatformRetentionRate = utils.StrToInt(req.PlatformRetentionRate) + mediumData.CommissionRetentionRate = utils.StrToInt(req.CommissionRetentionRate) + mediumData.MediaRevenueRate = utils.StrToInt(req.MediaRevenueRate) + mediumData.AgentRevenueRate = utils.StrToInt(req.AgentRevenueRate) + mediumData.ExtraRevenueRate = utils.StrToInt(req.ExtraRevenueRate) + mediumData.AgreementSharingRate = utils.StrToInt(req.AgreementSharingRate) + _, err := sess.Where("id=?", mediumData.Id).Update(mediumData) + if err != nil { + sess.Rollback() + return err + } + NewMediumDivisionStrategyWithAgentFlowDb := implement.NewMediumDivisionStrategyWithAgentFlowDb(eg) + for _, v := range req.AgentList { + flow, _ := NewMediumDivisionStrategyWithAgentFlowDb.GetMediumDivisionStrategyWithAgentFlowSess(sess, mediumData.Id, utils.StrToInt(v.AgentId)) + if flow == nil { + flow = &model.MediumDivisionStrategyWithAgentFlow{ + StrategyId: mediumData.Id, + AgentId: utils.StrToInt(v.AgentId), + CreateAt: time.Now().Format("2006-01-02 15:04:05"), + UpdateAt: time.Now().Format("2006-01-02 15:04:05"), + } + _, err = sess.Insert(flow) + if err != nil { + sess.Rollback() + return err + } + } + flow.ExtraRevenueRate = utils.StrToInt(v.ExtraRevenueRate) + flow.AgentRevenueRate = utils.StrToInt(v.AgentRevenueRate) + flow.UpdateAt = time.Now().Format("2006-01-02 15:04:05") + _, err = sess.Where("id=?", flow.Id).Update(flow) + if err != nil { + sess.Rollback() + return err + } + } + sess.Commit() + return nil +} diff --git a/app/svc/svc_finance_center_medium.go b/app/svc/svc_finance_center_medium.go new file mode 100644 index 0000000..c017860 --- /dev/null +++ b/app/svc/svc_finance_center_medium.go @@ -0,0 +1,194 @@ +package svc + +import ( + "applet/app/e" + "applet/app/md" + "applet/app/utils" + db "code.fnuoos.com/zhimeng/model.git/src" + "code.fnuoos.com/zhimeng/model.git/src/super/implement" + "encoding/json" + "github.com/gin-gonic/gin" +) + +func FinanceCenterMediumInvoiceSave(c *gin.Context, req md.InvoiceReq) { + engine := db.Db + NewMediumSettlementDb := implement.NewMediumSettlementDb(engine) + data, _ := NewMediumSettlementDb.GetMediumSettlementById(utils.StrToInt(req.Id)) + if data.State != 3 { + e.OutErr(c, 400, e.NewErr(400, "媒体未完成签订")) + return + } + if data.PayState == 5 { + e.OutErr(c, 400, e.NewErr(400, "结算单已付款,不能调整")) + return + } + NewMediumInvoiceDb := implement.NewMediumInvoiceDb(engine) + invoice, _ := NewMediumInvoiceDb.GetMediumInvoice(data.Id) + if req.State == "1" { + data.PayState = 4 + invoice.State = 1 + for k := range req.File { + req.File[k].State = "1" + } + } + if req.State == "2" { + invoice.State = 2 + data.PayState = 3 + for k, v := range req.File { + if v.State == "0" { + req.File[k].State = "1" + } + } + } + invoice.File = utils.SerializeStr(req.File) + engine.Where("id=?", data.Id).Cols("pay_state").Update(data) + engine.Where("id=?", invoice.Id).Cols("state,file").Update(invoice) + e.OutSuc(c, "success", nil) + return +} +func FinanceCenterMediumSettleFileSave(c *gin.Context, req md.SettleFileReq) { + engine := db.Db + NewMediumSettlementDb := implement.NewMediumSettlementDb(engine) + data, _ := NewMediumSettlementDb.GetMediumSettlementById(utils.StrToInt(req.Id)) + if data.State >= 2 { + e.OutErr(c, 400, e.NewErr(400, "已推送给媒体,不能再调整")) + return + } + data.State = 2 + data.SettleFile = req.File + engine.Where("id=?", data.Id).Cols("state,settle_file").Update(data) + e.OutSuc(c, "success", nil) + return +} + +func FinanceCenterMediumPaySave(c *gin.Context, req md.CommDetailReq) { + engine := db.Db + NewMediumSettlementDb := implement.NewMediumSettlementDb(engine) + data, _ := NewMediumSettlementDb.GetMediumSettlementById(utils.StrToInt(req.Id)) + if data.PayState < 4 { + e.OutErr(c, 400, e.NewErr(400, "不能再调整")) + return + } + data.PayState = 5 + engine.Where("id=?", data.Id).Cols("pay_state").Update(data) + e.OutSuc(c, "success", nil) + return +} +func FinanceCenterMediumOtherIncomeSave(c *gin.Context, req md.OtherIncomeReq) { + engine := db.Db + NewMediumSettlementDb := implement.NewMediumSettlementDb(engine) + data, _ := NewMediumSettlementDb.GetMediumSettlementById(utils.StrToInt(req.Id)) + if data.State >= 2 { + e.OutErr(c, 400, e.NewErr(400, "已推送给媒体,不能再调整")) + return + } + data.OtherIncome = int(utils.StrToFloat64(req.Amount) * 100) + engine.Where("id=?", data.Id).Cols("other_income").Update(data) + e.OutSuc(c, "success", nil) + return +} +func FinanceCenterMediumDetail(c *gin.Context, req md.CommDetailReq) md.FinanceCenterDataDetailRes { + engine := db.Db + NewMediumSettlementDb := implement.NewMediumSettlementDb(engine) + data, _ := NewMediumSettlementDb.GetMediumSettlementById(utils.StrToInt(req.Id)) + file := make([]md.InvoiceFile, 0) + invoice := md.Invoice{ + Type: "0", + Time: "", + Count: "0", + File: file, + } + //发票 + NewMediumInvoiceDb := implement.NewMediumInvoiceDb(engine) + invoiceData, _ := NewMediumInvoiceDb.GetMediumInvoice(data.Id) + if invoiceData != nil { + invoice.Type = utils.IntToStr(invoiceData.Type) + invoice.Time = invoiceData.UpdateAt + invoice.Count = utils.IntToStr(invoiceData.Count) + json.Unmarshal([]byte(invoiceData.File), &file) + } + tmp := md.FinanceCenterDataDetail{ + Source: "手动导入", + SettleFile: data.SettleFile, + Invoice: invoice, + AllIncome: utils.Float64ToStr(float64(data.OtherIncome+data.BasicIncome) / 100), + TopIncome: "", + CommissionIncome: "", + PlatformIncome: "", + ChangeIncome: "", + MediumIncome: utils.Float64ToStr(float64(data.BasicIncome) / 100), + OtherIncome: utils.Float64ToStr(float64(data.OtherIncome) / 100), + TimeStr: data.StartDate, + PayState: utils.IntToStr(data.PayState), + State: utils.IntToStr(data.State), + } + if data.EndDate != "" && data.EndDate != "0000-00-00" { + if data.EndDate != data.StartDate { + tmp.TimeStr += "~" + data.EndDate + } + } + tmpMedium := GetMediumInfo(c, data.MediumId) + if tmpMedium["name"] != "" { + tmp.Name = tmpMedium["name"] + } + if tmpMedium["account"] != "" { + tmp.Account = tmpMedium["account"] + } + + res := md.FinanceCenterDataDetailRes{ + Data: tmp, + InvoiceCate: md.InvoiceCate, + SettleType: md.AccountSettleState, + BusinessKind: md.BusinessKind, + SettlePayState: md.SettlePayState, + SettleState: md.SettleState, + InvoiceState: md.InvoiceState, + } + return res +} +func FinanceCenterMediumList(c *gin.Context, req md.FinanceCenterDataReq) md.FinanceCenterDataRes { + engine := db.Db + NewMediumSettlementDb := implement.NewMediumSettlementDb(engine) + MediumList, total, _ := NewMediumSettlementDb.FindMediumSettlementList(c.GetString("mid"), "", "", req.PayState, "", req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + data := make([]md.FinanceCenterDataData, 0) + if len(MediumList) > 0 { + for _, v := range MediumList { + var tmp = md.FinanceCenterDataData{ + Id: utils.IntToStr(v.Id), + Name: "", + AllIncome: utils.Float64ToStr(float64(v.OtherIncome+v.BasicIncome) / 100), + TopIncome: "", + CommissionIncome: "", + PlatformIncome: "", + ChangeIncome: "", + MediumIncome: utils.Float64ToStr(float64(v.BasicIncome) / 100), + OtherIncome: utils.Float64ToStr(float64(v.OtherIncome) / 100), + TimeStr: v.StartDate, + SettleType: utils.IntToStr(v.Kind), + PayState: utils.IntToStr(v.PayState), + State: utils.IntToStr(v.State), + Label: "预估", + } + tmpMedium := GetMediumInfo(c, v.MediumId) + if tmpMedium["name"] != "" { + tmp.Name = tmpMedium["name"] + } + if v.EndDate != "" && v.EndDate != "0000-00-00" { + if v.EndDate != v.StartDate { + tmp.TimeStr += "~" + v.EndDate + } + tmp.Label = "" + } + data = append(data, tmp) + } + } + res := md.FinanceCenterDataRes{ + List: data, + Total: total, + SettleType: md.AccountSettleState, + BusinessKind: md.BusinessKind, + SettlePayState: md.SettlePayState, + SettleState: md.SettleState, + } + return res +} diff --git a/app/svc/svc_medium_agent.go b/app/svc/svc_medium_agent.go index 949e8d2..dee38a7 100644 --- a/app/svc/svc_medium_agent.go +++ b/app/svc/svc_medium_agent.go @@ -7,6 +7,7 @@ import ( "applet/app/utils" db "code.fnuoos.com/zhimeng/model.git/src" implement2 "code.fnuoos.com/zhimeng/model.git/src/implement" + model2 "code.fnuoos.com/zhimeng/model.git/src/model" "code.fnuoos.com/zhimeng/model.git/src/super/implement" "code.fnuoos.com/zhimeng/model.git/src/super/model" "github.com/gin-gonic/gin" @@ -155,3 +156,140 @@ func MediumBindAgentDel(c *gin.Context) { e.OutSuc(c, "success", nil) return } + +func GetMediumId(c *gin.Context, name string) string { + mediumId := "" + if name != "" { + ids := []string{"-1"} + var tmp []model2.Medium + MasterDb(c).Where("memo like ? or username like ?", "%"+name+"%", "%"+name+"%").Find(&tmp) + for _, v := range tmp { + ids = append(ids, utils.IntToStr(v.MediumId)) + } + var tmp1 []model.MediumList + MasterDb(c).Where("company_name like ? or company_abbreviation like ?", "%"+name+"%", "%"+name+"%").Find(&tmp1) + for _, v := range tmp1 { + ids = append(ids, utils.IntToStr(v.MediumId)) + } + mediumId = strings.Join(ids, ",") + } + return mediumId +} +func GetMediumByAccountId(c *gin.Context, name, account string) string { + mediumId := "" + if name != "" || account != "" { + ids := []string{"-1"} + var tmp []model2.Medium + sess := MasterDb(c).Where("1=1") + if name != "" { + sess.And("memo like ?", "%"+name+"%") + var tmp1 []model.MediumList + MasterDb(c).Where("company_name like ? or company_abbreviation like ?", "%"+name+"%", "%"+name+"%").Find(&tmp1) + for _, v := range tmp1 { + ids = append(ids, utils.IntToStr(v.MediumId)) + } + } + if account != "" { + sess.And(" username like ?", "%"+name+"%", "%"+name+"%") + } + sess.Find(&tmp) + for _, v := range tmp { + ids = append(ids, utils.IntToStr(v.MediumId)) + } + + mediumId = strings.Join(ids, ",") + } + return mediumId +} +func GetMediumInfo(c *gin.Context, mediumId int) map[string]string { + var res = map[string]string{ + "account": "", + "name": "", + } + NewMediumDb := implement2.NewMediumDb(MasterDb(c)) + NewMediumListDb := implement.NewMediumListDb(MasterDb(c)) + medium := NewMediumDb.GetSuperAdmin(mediumId) + if medium != nil { + res["account"] = medium.Username + res["name"] = medium.Memo + } + NewMediumList, _ := NewMediumListDb.GetMediumList(mediumId) + if NewMediumList != nil { + if NewMediumList.CompanyName != "" { + res["name"] = NewMediumList.CompanyName + } + if NewMediumList.CompanyAbbreviation != "" { + res["name"] = NewMediumList.CompanyAbbreviation + } + } + return res +} + +func GetAgentId(c *gin.Context, name string) string { + mediumId := "" + if name != "" { + ids := []string{"-1"} + var tmp []model2.Agent + MasterDb(c).Where("memo like ? or username like ?", "%"+name+"%", "%"+name+"%").Find(&tmp) + for _, v := range tmp { + ids = append(ids, utils.IntToStr(v.AgentId)) + } + var tmp1 []model.AgentList + MasterDb(c).Where("company_name like ? or company_abbreviation like ?", "%"+name+"%", "%"+name+"%").Find(&tmp1) + for _, v := range tmp1 { + ids = append(ids, utils.IntToStr(v.AgentId)) + } + mediumId = strings.Join(ids, ",") + } + return mediumId +} +func GetAgentByAccountId(c *gin.Context, name, account string) string { + mediumId := "" + if name != "" || account != "" { + ids := []string{"-1"} + var tmp []model2.Agent + sess := MasterDb(c).Where("1=1") + if name != "" { + sess.And("memo like ?", "%"+name+"%") + var tmp1 []model.AgentList + MasterDb(c).Where("company_name like ? or company_abbreviation like ?", "%"+name+"%", "%"+name+"%").Find(&tmp1) + for _, v := range tmp1 { + ids = append(ids, utils.IntToStr(v.AgentId)) + } + } + if account != "" { + sess.And(" username like ?", "%"+name+"%", "%"+name+"%") + } + sess.Find(&tmp) + for _, v := range tmp { + ids = append(ids, utils.IntToStr(v.AgentId)) + } + + mediumId = strings.Join(ids, ",") + } + return mediumId +} + +func GetAgentInfo(c *gin.Context, mediumId int) map[string]string { + var res = map[string]string{ + "account": "", + "name": "", + } + NewAgentDb := implement2.NewAgentDb(MasterDb(c)) + NewAgentListDb := implement.NewAgentListDb(MasterDb(c)) + medium := NewAgentDb.GetSuperAdmin(mediumId) + if medium != nil { + res["account"] = medium.Username + res["name"] = medium.Memo + } + NewAgentList, _ := NewAgentListDb.GetAgentList(mediumId) + if NewAgentList != nil { + if NewAgentList.CompanyName != "" { + res["name"] = NewAgentList.CompanyName + } + if NewAgentList.CompanyAbbreviation != "" { + res["name"] = NewAgentList.CompanyAbbreviation + } + } + return res +} diff --git a/app/svc/svc_settle_center_agent.go b/app/svc/svc_settle_center_agent.go new file mode 100644 index 0000000..fca128e --- /dev/null +++ b/app/svc/svc_settle_center_agent.go @@ -0,0 +1,86 @@ +package svc + +import ( + "applet/app/e" + "applet/app/md" + "applet/app/utils" + db "code.fnuoos.com/zhimeng/model.git/src" + "code.fnuoos.com/zhimeng/model.git/src/super/implement" + "github.com/gin-gonic/gin" +) + +func SettleCenterAgentList(c *gin.Context, req md.SettleCenterDataReq) md.SettleCenterDataRes { + engine := db.Db + NewOriginalWxAdDataDb := implement.NewAgentListDb(engine) + appId := GetAgentByAccountId(c, req.Name, req.Account) + AgentList, total, _ := NewOriginalWxAdDataDb.FindAgentListBySettleType(c.GetString("mid"), appId, req.State, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + data := make([]md.SettleCenterDataData, 0) + if len(AgentList) > 0 { + for _, v := range AgentList { + var tmp = md.SettleCenterDataData{ + Id: utils.IntToStr(v.AgentId), + SettleType: utils.IntToStr(v.SettlementType), + UpdateAt: v.UpdateAt, + } + tmpApplet := GetAgentInfo(c, v.AgentId) + if tmpApplet["account"] != "" { + tmp.Account = tmpApplet["account"] + } + if tmpApplet["name"] != "" { + tmp.Name = tmpApplet["name"] + } + data = append(data, tmp) + } + } + res := md.SettleCenterDataRes{ + List: data, + Total: total, + State: md.AccountSettleState, + } + return res +} +func SettleCenterAgentSave(c *gin.Context, req md.SettleCenterDataSaveReq) { + NewAgentListDb := implement.NewAgentListDb(db.Db) + data, _ := NewAgentListDb.GetAgentList(utils.StrToInt(req.Id)) + if data == nil { + e.OutErr(c, 400, e.NewErr(400, "记录不存在")) + return + } + data.SettlementType = utils.StrToInt(req.SettleType) + db.Db.Where("id=?", data.Id).Cols("settlement_type").Update(data) + e.OutSuc(c, "success", nil) + return +} +func SettleCenterAgentDetail(c *gin.Context, req md.SettleCenterDataDetailReq) md.SettleCenterDataDetailRes { + engine := db.Db + NewAgentSettlementDb := implement.NewAgentSettlementDb(engine) + AgentList, total, _ := NewAgentSettlementDb.FindAgentSettlementList(c.GetString("mid"), req.Id, "", "", "", req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + data := make([]md.SettleCenterDataDetailData, 0) + if len(AgentList) > 0 { + for _, v := range AgentList { + var tmp = md.SettleCenterDataDetailData{ + TimeStr: v.StartDate, + BusinessKind: utils.IntToStr(v.BusinessKind), + SettleType: utils.IntToStr(v.Kind), + AllIncome: utils.Float64ToStr(float64(v.OtherIncome+v.BasicIncome) / 100), + BasicIncome: utils.Float64ToStr(float64(v.BasicIncome) / 100), + OtherIncome: utils.Float64ToStr(float64(v.OtherIncome) / 100), + PayState: utils.IntToStr(v.PayState), + State: utils.IntToStr(v.State), + } + if v.EndDate != "" && v.EndDate != "0000-00-00" { + tmp.TimeStr += "~" + v.EndDate + } + data = append(data, tmp) + } + } + res := md.SettleCenterDataDetailRes{ + List: data, + Total: total, + SettleType: md.AccountSettleState, + BusinessKind: md.BusinessKind, + SettlePayState: md.SettlePayState, + SettleState: md.SettleState, + } + return res +} diff --git a/app/svc/svc_settle_center_medium.go b/app/svc/svc_settle_center_medium.go new file mode 100644 index 0000000..f0fe5c1 --- /dev/null +++ b/app/svc/svc_settle_center_medium.go @@ -0,0 +1,86 @@ +package svc + +import ( + "applet/app/e" + "applet/app/md" + "applet/app/utils" + db "code.fnuoos.com/zhimeng/model.git/src" + "code.fnuoos.com/zhimeng/model.git/src/super/implement" + "github.com/gin-gonic/gin" +) + +func SettleCenterMediumList(c *gin.Context, req md.SettleCenterDataReq) md.SettleCenterDataRes { + engine := db.Db + NewOriginalWxAdDataDb := implement.NewMediumListDb(engine) + appId := GetMediumByAccountId(c, req.Name, req.Account) + MediumList, total, _ := NewOriginalWxAdDataDb.FindMediumListBySettleType(c.GetString("mid"), appId, req.State, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + data := make([]md.SettleCenterDataData, 0) + if len(MediumList) > 0 { + for _, v := range MediumList { + var tmp = md.SettleCenterDataData{ + Id: utils.IntToStr(v.MediumId), + SettleType: utils.IntToStr(v.SettlementType), + UpdateAt: v.UpdateAt, + } + tmpApplet := GetMediumInfo(c, v.MediumId) + if tmpApplet["account"] != "" { + tmp.Account = tmpApplet["account"] + } + if tmpApplet["name"] != "" { + tmp.Name = tmpApplet["name"] + } + data = append(data, tmp) + } + } + res := md.SettleCenterDataRes{ + List: data, + Total: total, + State: md.AccountSettleState, + } + return res +} +func SettleCenterMediumSave(c *gin.Context, req md.SettleCenterDataSaveReq) { + NewMediumListDb := implement.NewMediumListDb(db.Db) + data, _ := NewMediumListDb.GetMediumList(utils.StrToInt(req.Id)) + if data == nil { + e.OutErr(c, 400, e.NewErr(400, "记录不存在")) + return + } + data.SettlementType = utils.StrToInt(req.SettleType) + db.Db.Where("id=?", data.Id).Cols("settlement_type").Update(data) + e.OutSuc(c, "success", nil) + return +} +func SettleCenterMediumDetail(c *gin.Context, req md.SettleCenterDataDetailReq) md.SettleCenterDataDetailRes { + engine := db.Db + NewMediumSettlementDb := implement.NewMediumSettlementDb(engine) + MediumList, total, _ := NewMediumSettlementDb.FindMediumSettlementList(c.GetString("mid"), req.Id, "", "", "", req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + data := make([]md.SettleCenterDataDetailData, 0) + if len(MediumList) > 0 { + for _, v := range MediumList { + var tmp = md.SettleCenterDataDetailData{ + TimeStr: v.StartDate, + BusinessKind: utils.IntToStr(v.BusinessKind), + SettleType: utils.IntToStr(v.Kind), + AllIncome: utils.Float64ToStr(float64(v.OtherIncome+v.BasicIncome) / 100), + BasicIncome: utils.Float64ToStr(float64(v.BasicIncome) / 100), + OtherIncome: utils.Float64ToStr(float64(v.OtherIncome) / 100), + PayState: utils.IntToStr(v.PayState), + State: utils.IntToStr(v.State), + } + if v.EndDate != "" && v.EndDate != "0000-00-00" { + tmp.TimeStr += "~" + v.EndDate + } + data = append(data, tmp) + } + } + res := md.SettleCenterDataDetailRes{ + List: data, + Total: total, + SettleType: md.AccountSettleState, + BusinessKind: md.BusinessKind, + SettlePayState: md.SettlePayState, + SettleState: md.SettleState, + } + return res +} diff --git a/app/svc/svc_wx_data.go b/app/svc/svc_wx_data.go index 3da6063..c42f42e 100644 --- a/app/svc/svc_wx_data.go +++ b/app/svc/svc_wx_data.go @@ -92,6 +92,7 @@ func GenerateWxAdData(req md.GenerateWxAdData) (err error, generateWxAdData mode now := time.Now() generateWxAdData = model.GenerateWxAdData{ Uuid: originalWxAdData.Uuid, + Platform: originalWxAdData.Platform, AppId: originalWxAdData.AppId, OriginalDataId: originalWxAdData.Id, SlotId: originalWxAdData.SlotId, diff --git a/docs/docs.go b/docs/docs.go index 691a490..a8e1e3a 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -307,9 +307,9 @@ const docTemplate = `{ } } }, - "/api/login": { + "/api/dataCenter/generate/data/del": { "post": { - "description": "登入", + "description": "数据中心-分成数据-删除", "consumes": [ "application/json" ], @@ -317,25 +317,32 @@ const docTemplate = `{ "application/json" ], "tags": [ - "登录" + "数据中心------嘉俊" ], - "summary": "登陆", + "summary": "分成数据-删除", "parameters": [ { - "description": "用户名密码", - "name": "req", + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.LoginReq" + "$ref": "#/definitions/md.DataCenterGenerateDataCommReq" } } ], "responses": { "200": { - "description": "token", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.LoginResponse" + "type": "string" } }, "400": { @@ -347,9 +354,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/agent/bind/medium/list": { + "/api/dataCenter/generate/data/detail": { "post": { - "description": "媒体中心-代理绑定媒体列表", + "description": "数据中心-分成数据-详情", "consumes": [ "application/json" ], @@ -357,9 +364,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "代理绑定媒体列表", + "summary": "分成数据-详情", "parameters": [ { "type": "string", @@ -374,15 +381,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListReq" + "$ref": "#/definitions/md.DataCenterGenerateDataCommReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.MediumListRes" + "$ref": "#/definitions/md.DataCenterGenerateDataDetailData" } }, "400": { @@ -394,9 +401,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/agent/list": { + "/api/dataCenter/generate/data/doing": { "post": { - "description": "媒体中心-代理列表", + "description": "数据中心-分成数据-应用操作", "consumes": [ "application/json" ], @@ -404,9 +411,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "代理列表", + "summary": "分成数据-应用操作", "parameters": [ { "type": "string", @@ -421,15 +428,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AgentQualificationEnterpriseReq" + "$ref": "#/definitions/md.DataCenterGenerateDataCommReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.AgentQualificationEnterpriseRes" + "type": "string" } }, "400": { @@ -441,9 +448,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/ad/space/audit": { + "/api/dataCenter/generate/data/list": { "post": { - "description": "小程序应用-广告位审核", + "description": "数据中心-分成数据-列表", "consumes": [ "application/json" ], @@ -451,9 +458,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "广告位审核", + "summary": "分成数据-列表", "parameters": [ { "type": "string", @@ -468,15 +475,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceSaveReq" + "$ref": "#/definitions/md.DataCenterGenerateDataReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.DataCenterGenerateDataRes" } }, "400": { @@ -488,9 +495,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/ad/space/list": { + "/api/dataCenter/income/data/detail": { "post": { - "description": "媒体中心-媒体列表", + "description": "数据中心-收益报表-详情", "consumes": [ "application/json" ], @@ -498,9 +505,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体列表", + "summary": "收益报表-详情", "parameters": [ { "type": "string", @@ -515,15 +522,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListReq" + "$ref": "#/definitions/md.DataCenterGenerateDataCommReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListRes" + "$ref": "#/definitions/md.DataCenterIncomeDataDetail" } }, "400": { @@ -535,9 +542,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/ad/space/save": { + "/api/dataCenter/income/data/list": { "post": { - "description": "小程序应用-广告位列表", + "description": "数据中心-收益报表-列表", "consumes": [ "application/json" ], @@ -545,9 +552,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "广告位列表", + "summary": "收益报表-列表", "parameters": [ { "type": "string", @@ -562,15 +569,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceListReq" + "$ref": "#/definitions/md.DataCenterGenerateDataReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceListRes" + "$ref": "#/definitions/md.DataCenterIncomeDataRes" } }, "400": { @@ -582,9 +589,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/audit": { + "/api/dataCenter/original/data/del": { "post": { - "description": "小程序应用-审核", + "description": "数据中心-原始数据-删除", "consumes": [ "application/json" ], @@ -592,9 +599,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "审核", + "summary": "原始数据-删除", "parameters": [ { "type": "string", @@ -609,13 +616,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationSaveReq" + "$ref": "#/definitions/md.DataCenterOriginalDataCommReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 ", "schema": { "type": "string" } @@ -629,9 +636,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/list": { + "/api/dataCenter/original/data/doing": { "post": { - "description": "小程序应用-列表数据", + "description": "数据中心-原始数据-应用操作", "consumes": [ "application/json" ], @@ -639,9 +646,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "应用列表", + "summary": "原始数据-应用操作", "parameters": [ { "type": "string", @@ -656,15 +663,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationListReq" + "$ref": "#/definitions/md.DataCenterDataCenterOriginalDataDoingReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.AppletApplicationListRes" + "type": "string" } }, "400": { @@ -676,9 +683,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/medium/list": { + "/api/dataCenter/original/data/list": { "post": { - "description": "媒体中心-媒体列表", + "description": "数据中心-原始数据-列表", "consumes": [ "application/json" ], @@ -686,9 +693,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体列表", + "summary": "原始数据-列表", "parameters": [ { "type": "string", @@ -703,15 +710,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationMediumListReq" + "$ref": "#/definitions/md.DataCenterOriginalDataReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationMediumListRes" + "$ref": "#/definitions/md.DataCenterOriginalDataRes" } }, "400": { @@ -723,9 +730,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/medium/bind/agent/del": { + "/api/dataCenter/original/data/more/application": { "post": { - "description": "媒体中心-媒体绑定代理删除", + "description": "数据中心-原始数据-一键导入应用列表", "consumes": [ "application/json" ], @@ -733,9 +740,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体绑定代理删除", + "summary": "原始数据-一键导入应用列表", "parameters": [ { "type": "string", @@ -750,15 +757,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListDelReq" + "$ref": "#/definitions/md.DataCenterOriginalDataMoreApplicationReq" } } ], "responses": { "200": { - "description": "具体看返回内容 ", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.DataCenterOriginalDataMoreApplicationRes" } }, "400": { @@ -770,9 +777,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/medium/bind/agent/list": { + "/api/dataCenter/original/data/more/application/doing": { "post": { - "description": "媒体中心-媒体绑定代理列表", + "description": "数据中心-原始数据-一键导入操作", "consumes": [ "application/json" ], @@ -780,9 +787,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体绑定代理列表", + "summary": "原始数据-一键导入操作", "parameters": [ { "type": "string", @@ -797,15 +804,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListReq" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.MediumListRes" + "type": "string" } }, "400": { @@ -817,9 +824,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/medium/bind/agent/save": { - "post": { - "description": "媒体中心-媒体绑定代理操作", + "/api/dataCenter/original/data/more/application/state": { + "get": { + "description": "数据中心-原始数据-一键导入操作状态", "consumes": [ "application/json" ], @@ -827,9 +834,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体绑定代理操作", + "summary": "原始数据-一键导入操作状态", "parameters": [ { "type": "string", @@ -844,13 +851,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListSaveReq" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" } } ], "responses": { "200": { - "description": "具体看返回内容 ", + "description": "具体看返回内容 state=1 进行中", "schema": { "type": "string" } @@ -864,9 +871,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/medium/list": { - "post": { - "description": "媒体中心-媒体列表", + "/api/dataCenter/original/data/one/application": { + "get": { + "description": "数据中心-原始数据-单个导入应用列表", "consumes": [ "application/json" ], @@ -874,9 +881,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体列表", + "summary": "原始数据-单个导入应用列表", "parameters": [ { "type": "string", @@ -884,22 +891,13 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" - } } ], "responses": { "200": { "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationRes" } }, "400": { @@ -911,21 +909,9 @@ const docTemplate = `{ } } }, - "/api/mediumQualification/bank": { - "post": { - "responses": { - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/mediumQualification/bank/audit": { + "/api/dataCenter/original/data/one/application/ad/list": { "post": { - "description": "媒体资质-银行资质审核", + "description": "数据中心-原始数据-单个导入应用-广告位列表", "consumes": [ "application/json" ], @@ -933,9 +919,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "数据中心------嘉俊" ], - "summary": "银行资质审核", + "summary": "原始数据-单个导入应用-广告位列表", "parameters": [ { "type": "string", @@ -950,15 +936,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationAdListReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationAdListRes" } }, "400": { @@ -970,9 +956,9 @@ const docTemplate = `{ } } }, - "/api/mediumQualification/contact": { + "/api/dataCenter/original/data/one/application/doing": { "post": { - "description": "媒体资质-联系方式", + "description": "数据中心-原始数据-单个应用数据操作", "consumes": [ "application/json" ], @@ -980,9 +966,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "数据中心------嘉俊" ], - "summary": "联系方式", + "summary": "原始数据-单个应用数据操作", "parameters": [ { "type": "string", @@ -997,15 +983,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.MediumQualificationContactRes" + "type": "string" } }, "400": { @@ -1017,9 +1003,9 @@ const docTemplate = `{ } } }, - "/api/mediumQualification/contact/audit": { + "/api/dataCenter/original/data/one/application/total": { "post": { - "description": "媒体资质-联系方式审核", + "description": "数据中心-原始数据-单个应用数据统计", "consumes": [ "application/json" ], @@ -1027,9 +1013,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "数据中心------嘉俊" ], - "summary": "联系方式审核", + "summary": "原始数据-单个应用数据统计", "parameters": [ { "type": "string", @@ -1044,15 +1030,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 ", "schema": { - "type": "string" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingRes" } }, "400": { @@ -1064,9 +1050,9 @@ const docTemplate = `{ } } }, - "/api/mediumQualification/enterprise": { + "/api/dataCenter/original/data/total": { "post": { - "description": "媒体资质-主体资质", + "description": "数据中心-原始数据-记录应用时统计", "consumes": [ "application/json" ], @@ -1074,9 +1060,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "数据中心------嘉俊" ], - "summary": "主体资质", + "summary": "原始数据-记录应用时统计", "parameters": [ { "type": "string", @@ -1091,15 +1077,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + "$ref": "#/definitions/md.DataCenterOriginalDataCommReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" + "type": "string" } }, "400": { @@ -1111,9 +1097,9 @@ const docTemplate = `{ } } }, - "/api/mediumQualification/enterprise/audit": { + "/api/divisionStrategy/detail": { "post": { - "description": "媒体资质-主体资质审核", + "description": "分成策略-详情", "consumes": [ "application/json" ], @@ -1121,9 +1107,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "分成策略------嘉俊" ], - "summary": "主体资质审核", + "summary": "详情", "parameters": [ { "type": "string", @@ -1138,15 +1124,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.DivisionStrategyDetailReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.DivisionStrategyDetailRes" } }, "400": { @@ -1158,9 +1144,9 @@ const docTemplate = `{ } } }, - "/api/registerForAgent": { + "/api/divisionStrategy/list": { "post": { - "description": "注册模块-渠道代理注册", + "description": "分成策略-列表", "consumes": [ "application/json" ], @@ -1168,25 +1154,32 @@ const docTemplate = `{ "application/json" ], "tags": [ - "注册模块" + "分成策略------嘉俊" ], - "summary": "渠道代理注册", + "summary": "列表", "parameters": [ { - "description": "用户名密码", - "name": "req", + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.RegisterForAgentReq" + "$ref": "#/definitions/md.DivisionStrategyReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.DivisionStrategyRes" } }, "400": { @@ -1198,9 +1191,9 @@ const docTemplate = `{ } } }, - "/api/registerForMedium": { + "/api/divisionStrategy/save": { "post": { - "description": "注册模块-媒体注册", + "description": "分成策略-保存", "consumes": [ "application/json" ], @@ -1208,23 +1201,30 @@ const docTemplate = `{ "application/json" ], "tags": [ - "注册模块" + "分成策略------嘉俊" ], - "summary": "媒体注册", + "summary": "保存", "parameters": [ { - "description": "用户名密码", - "name": "req", + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.RegisterForMediumReq" + "$ref": "#/definitions/md.DivisionStrategyDetailRes" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 ", "schema": { "type": "string" } @@ -1238,9 +1238,9 @@ const docTemplate = `{ } } }, - "/api/role/addAdmin": { + "/api/financeCenter/medium/detail": { "post": { - "description": "权限管理-新增管理员", + "description": "财务中心-媒体详情", "consumes": [ "application/json" ], @@ -1248,9 +1248,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "新增管理员", + "summary": "媒体详情", "parameters": [ { "type": "string", @@ -1265,15 +1265,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AddAdminReq" + "$ref": "#/definitions/md.CommDetailReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.FinanceCenterDataRes" } }, "400": { @@ -1285,9 +1285,9 @@ const docTemplate = `{ } } }, - "/api/role/addRole": { + "/api/financeCenter/medium/invoice/save": { "post": { - "description": "权限管理-添加角色", + "description": "财务中心-媒体详情-发票保存", "consumes": [ "application/json" ], @@ -1295,9 +1295,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "添加角色", + "summary": "媒体详情-发票保存", "parameters": [ { "type": "string", @@ -1312,13 +1312,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AddRoleReq" + "$ref": "#/definitions/md.InvoiceReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { "type": "string" } @@ -1332,9 +1332,9 @@ const docTemplate = `{ } } }, - "/api/role/adminInfo": { - "get": { - "description": "权限管理-管理员信息", + "/api/financeCenter/medium/list": { + "post": { + "description": "财务中心-媒体列表", "consumes": [ "application/json" ], @@ -1342,9 +1342,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "管理员信息", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -1354,18 +1354,20 @@ const docTemplate = `{ "required": true }, { - "type": "string", - "description": "管理员id", - "name": "adm_id", - "in": "query", - "required": true + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.FinanceCenterDataReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.FinanceCenterDataRes" } }, "400": { @@ -1377,9 +1379,9 @@ const docTemplate = `{ } } }, - "/api/role/adminList": { + "/api/financeCenter/medium/other/income/save": { "post": { - "description": "权限管理-管理员列表", + "description": "财务中心-媒体详情-其他收益调整", "consumes": [ "application/json" ], @@ -1387,9 +1389,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "管理员列表", + "summary": "媒体详情-其他收益调整", "parameters": [ { "type": "string", @@ -1404,13 +1406,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AdminListReq" + "$ref": "#/definitions/md.OtherIncomeReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { "type": "string" } @@ -1424,9 +1426,9 @@ const docTemplate = `{ } } }, - "/api/role/bindAdminRole/": { + "/api/financeCenter/medium/pay/save": { "post": { - "description": "权限管理-管理员绑定角色", + "description": "财务中心-媒体详情-确认支付", "consumes": [ "application/json" ], @@ -1434,9 +1436,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "管理员绑定角色", + "summary": "媒体详情-确认支付", "parameters": [ { "type": "string", @@ -1451,13 +1453,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.BindAdminRoleReq" + "$ref": "#/definitions/md.CommDetailReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { "type": "string" } @@ -1471,9 +1473,9 @@ const docTemplate = `{ } } }, - "/api/role/deleteAdmin/{$adm_id}": { - "delete": { - "description": "权限管理-删除管理员", + "/api/financeCenter/medium/settle/file/save": { + "post": { + "description": "财务中心-媒体详情-结算单保存", "consumes": [ "application/json" ], @@ -1481,9 +1483,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "删除管理员", + "summary": "媒体详情-结算单保存", "parameters": [ { "type": "string", @@ -1491,11 +1493,20 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.SettleFileReq" + } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { "type": "string" } @@ -1509,9 +1520,9 @@ const docTemplate = `{ } } }, - "/api/role/deleteRole/{$id}": { - "delete": { - "description": "权限管理-删除角色", + "/api/login": { + "post": { + "description": "登入", "consumes": [ "application/json" ], @@ -1519,32 +1530,25 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "登录" ], - "summary": "删除角色", + "summary": "登陆", "parameters": [ { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "请求参数", - "name": "args", + "description": "用户名密码", + "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" + "$ref": "#/definitions/md.LoginReq" } } ], "responses": { "200": { - "description": "success", + "description": "token", "schema": { - "type": "string" + "$ref": "#/definitions/md.LoginResponse" } }, "400": { @@ -1556,9 +1560,9 @@ const docTemplate = `{ } } }, - "/api/role/roleBindPermissionGroup": { + "/api/mediumCenter/agent/bind/medium/list": { "post": { - "description": "权限管理-角色绑定权限组", + "description": "媒体中心-代理绑定媒体列表", "consumes": [ "application/json" ], @@ -1566,9 +1570,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "角色绑定权限组", + "summary": "代理绑定媒体列表", "parameters": [ { "type": "string", @@ -1583,15 +1587,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.RoleBindPermissionGroupReq" + "$ref": "#/definitions/md.MediumListReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumListRes" } }, "400": { @@ -1603,9 +1607,9 @@ const docTemplate = `{ } } }, - "/api/role/roleList": { - "get": { - "description": "权限管理-角色列表", + "/api/mediumCenter/agent/list": { + "post": { + "description": "媒体中心-代理列表", "consumes": [ "application/json" ], @@ -1613,9 +1617,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "角色列表", + "summary": "代理列表", "parameters": [ { "type": "string", @@ -1623,13 +1627,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AgentQualificationEnterpriseReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AgentQualificationEnterpriseRes" } }, "400": { @@ -1641,9 +1654,9 @@ const docTemplate = `{ } } }, - "/api/role/updateAdmin": { + "/api/mediumCenter/applet/application/ad/space/audit": { "post": { - "description": "权限管理-修改管理员信息", + "description": "小程序应用-广告位审核", "consumes": [ "application/json" ], @@ -1651,9 +1664,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "修改管理员信息", + "summary": "广告位审核", "parameters": [ { "type": "string", @@ -1668,13 +1681,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateAdminReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceSaveReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -1688,9 +1701,9 @@ const docTemplate = `{ } } }, - "/api/role/updateAdminState": { + "/api/mediumCenter/applet/application/ad/space/list": { "post": { - "description": "权限管理-修改管理员状态", + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -1698,9 +1711,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "修改管理员状态", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -1715,15 +1728,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateAdminStateReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListRes" } }, "400": { @@ -1735,9 +1748,9 @@ const docTemplate = `{ } } }, - "/api/role/updateRole": { + "/api/mediumCenter/applet/application/ad/space/save": { "post": { - "description": "权限管理-修改角色", + "description": "小程序应用-广告位列表", "consumes": [ "application/json" ], @@ -1745,9 +1758,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "修改角色", + "summary": "广告位列表", "parameters": [ { "type": "string", @@ -1762,15 +1775,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceListReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationAdSpaceListRes" } }, "400": { @@ -1782,9 +1795,9 @@ const docTemplate = `{ } } }, - "/api/role/updateRoleState": { + "/api/mediumCenter/applet/application/audit": { "post": { - "description": "权限管理-修改角色状态", + "description": "小程序应用-审核", "consumes": [ "application/json" ], @@ -1792,9 +1805,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "修改角色状态", + "summary": "审核", "parameters": [ { "type": "string", @@ -1809,13 +1822,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" + "$ref": "#/definitions/md.AppletApplicationSaveReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -1829,9 +1842,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/applet/add": { + "/api/mediumCenter/applet/application/list": { "post": { - "description": "小程序设置-新增", + "description": "小程序应用-列表数据", "consumes": [ "application/json" ], @@ -1839,9 +1852,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-小程序设置" + "媒体中心------嘉俊" ], - "summary": "新增", + "summary": "应用列表", "parameters": [ { "type": "string", @@ -1856,15 +1869,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletAddReq" + "$ref": "#/definitions/md.AppletApplicationListReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationListRes" } }, "400": { @@ -1876,9 +1889,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/applet/authorize": { - "get": { - "description": "设置中心-基础设置", + "/api/mediumCenter/applet/application/medium/list": { + "post": { + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -1886,9 +1899,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心" + "媒体中心------嘉俊" ], - "summary": "设置中心-基础设置-微信三方应用获取", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -1896,13 +1909,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AppletApplicationMediumListReq" + } } ], "responses": { "200": { - "description": "微信授权界面url", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationMediumListRes" } }, "400": { @@ -1914,9 +1936,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/applet/list": { - "get": { - "description": "小程序设置-列表", + "/api/mediumCenter/medium/bind/agent/del": { + "post": { + "description": "媒体中心-媒体绑定代理删除", "consumes": [ "application/json" ], @@ -1924,9 +1946,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-小程序设置" + "媒体中心------嘉俊" ], - "summary": "列表", + "summary": "媒体绑定代理删除", "parameters": [ { "type": "string", @@ -1934,13 +1956,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumListDelReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/hdl.WxOpenThirdPartyAppList" + "type": "string" } }, "400": { @@ -1952,9 +1983,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/applet/unauthorized": { - "get": { - "description": "设置中心-基础设置", + "/api/mediumCenter/medium/bind/agent/list": { + "post": { + "description": "媒体中心-媒体绑定代理列表", "consumes": [ "application/json" ], @@ -1962,9 +1993,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心" + "媒体中心------嘉俊" ], - "summary": "设置中心-基础设置-微信三方应用获取", + "summary": "媒体绑定代理列表", "parameters": [ { "type": "string", @@ -1972,13 +2003,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumListReq" + } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumListRes" } }, "400": { @@ -1990,9 +2030,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/applet/update": { + "/api/mediumCenter/medium/bind/agent/save": { "post": { - "description": "小程序设置-更新", + "description": "媒体中心-媒体绑定代理操作", "consumes": [ "application/json" ], @@ -2000,9 +2040,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-小程序设置" + "媒体中心------嘉俊" ], - "summary": "更新", + "summary": "媒体绑定代理操作", "parameters": [ { "type": "string", @@ -2017,13 +2057,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletUpdateReq" + "$ref": "#/definitions/md.MediumListSaveReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 ", "schema": { "type": "string" } @@ -2037,9 +2077,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/getMob": { - "get": { - "description": "基础设置-mob获取", + "/api/mediumCenter/medium/list": { + "post": { + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -2047,9 +2087,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体中心------嘉俊" ], - "summary": "mob获取", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -2057,13 +2097,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/md.SetOssResp" + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" } }, "400": { @@ -2075,9 +2124,21 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/getOss": { - "get": { - "description": "基础设置-oss获取", + "/api/mediumQualification/bank": { + "post": { + "responses": { + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/mediumQualification/bank/audit": { + "post": { + "description": "媒体资质-银行资质审核", "consumes": [ "application/json" ], @@ -2085,9 +2146,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体资质------嘉俊" ], - "summary": "oss获取", + "summary": "银行资质审核", "parameters": [ { "type": "string", @@ -2095,13 +2156,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "具体看返回内容", "schema": { - "$ref": "#/definitions/md.SetOssResp" + "type": "string" } }, "400": { @@ -2113,9 +2183,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/setMob": { + "/api/mediumQualification/contact": { "post": { - "description": "基础设置-mob设置", + "description": "媒体资质-联系方式", "consumes": [ "application/json" ], @@ -2123,9 +2193,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体资质------嘉俊" ], - "summary": "mob设置", + "summary": "联系方式", "parameters": [ { "type": "string", @@ -2140,15 +2210,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SetMobReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumQualificationContactRes" } }, "400": { @@ -2160,9 +2230,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/setOss": { + "/api/mediumQualification/contact/audit": { "post": { - "description": "基础设置-oss设置", + "description": "媒体资质-联系方式审核", "consumes": [ "application/json" ], @@ -2170,9 +2240,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体资质------嘉俊" ], - "summary": "oss设置", + "summary": "联系方式审核", "parameters": [ { "type": "string", @@ -2187,13 +2257,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SetOssReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -2207,9 +2277,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/wxOpenGet": { - "get": { - "description": "基础设置-微信三方应用获取", + "/api/mediumQualification/enterprise": { + "post": { + "description": "媒体资质-主体资质", "consumes": [ "application/json" ], @@ -2217,9 +2287,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体资质------嘉俊" ], - "summary": "微信三方应用获取", + "summary": "主体资质", "parameters": [ { "type": "string", @@ -2227,13 +2297,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.WxOpenGetResp" + "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" } }, "400": { @@ -2245,9 +2324,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/wxOpenSet": { + "/api/mediumQualification/enterprise/audit": { "post": { - "description": "基础设置-微信三方应用设置", + "description": "媒体资质-主体资质审核", "consumes": [ "application/json" ], @@ -2255,9 +2334,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体资质------嘉俊" ], - "summary": "微信三方应用设置", + "summary": "主体资质审核", "parameters": [ { "type": "string", @@ -2272,7 +2351,47 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.WxOpenSetReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/registerForAgent": { + "post": { + "description": "注册模块-渠道代理注册", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "注册模块" + ], + "summary": "渠道代理注册", + "parameters": [ + { + "description": "用户名密码", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.RegisterForAgentReq" } } ], @@ -2292,9 +2411,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/share/index": { - "get": { - "description": "邀请链接界面接口", + "/api/registerForMedium": { + "post": { + "description": "注册模块-媒体注册", "consumes": [ "application/json" ], @@ -2302,9 +2421,49 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-邀请链接" + "注册模块" ], - "summary": "邀请链接", + "summary": "媒体注册", + "parameters": [ + { + "description": "用户名密码", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.RegisterForMediumReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/addAdmin": { + "post": { + "description": "权限管理-新增管理员", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "权限管理" + ], + "summary": "新增管理员", "parameters": [ { "type": "string", @@ -2312,13 +2471,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AddAdminReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "success", "schema": { - "$ref": "#/definitions/md.ShareIndexResp" + "type": "string" } }, "400": { @@ -2330,9 +2498,9 @@ const docTemplate = `{ } } }, - "/role/permissionGroupList": { - "get": { - "description": "权限管理-权限组列表", + "/api/role/addRole": { + "post": { + "description": "权限管理-添加角色", "consumes": [ "application/json" ], @@ -2342,7 +2510,7 @@ const docTemplate = `{ "tags": [ "权限管理" ], - "summary": "权限组列表", + "summary": "添加角色", "parameters": [ { "type": "string", @@ -2352,16 +2520,18 @@ const docTemplate = `{ "required": true }, { - "type": "string", - "description": "管理员id", - "name": "adm_id", - "in": "query", - "required": true + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AddRoleReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "success", "schema": { "type": "string" } @@ -2375,9 +2545,9 @@ const docTemplate = `{ } } }, - "/v1/banner/delete/{$id}": { - "delete": { - "description": "小程序设置-删除", + "/api/role/adminInfo": { + "get": { + "description": "权限管理-管理员信息", "consumes": [ "application/json" ], @@ -2385,9 +2555,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-小程序设置" + "权限管理" ], - "summary": "删除", + "summary": "管理员信息", "parameters": [ { "type": "string", @@ -2395,11 +2565,18 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "type": "string", + "description": "管理员id", + "name": "adm_id", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -2412,164 +2589,2423 @@ const docTemplate = `{ } } } - } - }, + }, + "/api/role/adminList": { + "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.AdminListReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/bindAdminRole/": { + "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.BindAdminRoleReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/deleteAdmin/{$adm_id}": { + "delete": { + "description": "权限管理-删除管理员", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "权限管理" + ], + "summary": "删除管理员", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/deleteRole/{$id}": { + "delete": { + "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.UpdateRoleStateReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/roleBindPermissionGroup": { + "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.RoleBindPermissionGroupReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/roleList": { + "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": "具体看返回内容", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/updateAdmin": { + "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.UpdateAdminReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/updateAdminState": { + "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.UpdateAdminStateReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/updateRole": { + "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.UpdateRoleReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/updateRoleState": { + "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.UpdateRoleStateReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/applet/add": { + "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.AppletAddReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/applet/authorize": { + "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": "微信授权界面url", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/applet/list": { + "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": "OK", + "schema": { + "$ref": "#/definitions/hdl.WxOpenThirdPartyAppList" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/applet/unauthorized": { + "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": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/applet/update": { + "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.AppletUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/getMob": { + "get": { + "description": "基础设置-mob获取", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "设置中心-基础设置" + ], + "summary": "mob获取", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/md.SetOssResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/getOss": { + "get": { + "description": "基础设置-oss获取", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "设置中心-基础设置" + ], + "summary": "oss获取", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/md.SetOssResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/setMob": { + "post": { + "description": "基础设置-mob设置", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "设置中心-基础设置" + ], + "summary": "mob设置", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.SetMobReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/setOss": { + "post": { + "description": "基础设置-oss设置", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "设置中心-基础设置" + ], + "summary": "oss设置", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.SetOssReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/wxOpenGet": { + "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": "OK", + "schema": { + "$ref": "#/definitions/md.WxOpenGetResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/wxOpenSet": { + "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.WxOpenSetReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/share/index": { + "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": "OK", + "schema": { + "$ref": "#/definitions/md.ShareIndexResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/agent/detail": { + "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.SettleCenterDataDetailReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/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.SettleCenterDataReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "$ref": "#/definitions/md.SettleCenterDataRes" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/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.SettleCenterDataSaveReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/medium/detail": { + "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.SettleCenterDataDetailReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/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.SettleCenterDataReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "$ref": "#/definitions/md.SettleCenterDataRes" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/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.SettleCenterDataSaveReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/role/permissionGroupList": { + "get": { + "description": "权限管理-权限组列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "权限管理" + ], + "summary": "权限组列表", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "管理员id", + "name": "adm_id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "具体看返回内容", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/v1/banner/delete/{$id}": { + "delete": { + "description": "小程序设置-删除", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "设置中心-小程序设置" + ], + "summary": "删除", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + } + }, "definitions": { "hdl.WxOpenThirdPartyAppList": { "type": "object", "properties": { - "aes_key": { + "aes_key": { + "type": "string" + }, + "app_secret": { + "type": "string" + }, + "appid": { + "type": "string" + }, + "component_access_token": { + "type": "string" + }, + "component_verify_ticket": { + "type": "string" + }, + "create_at": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "token": { + "type": "string" + }, + "update_at": { + "type": "string" + }, + "uuid": { + "type": "integer" + } + } + }, + "md.AddAdminReq": { + "type": "object", + "required": [ + "password", + "username" + ], + "properties": { + "memo": { + "type": "string" + }, + "password": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "md.AddRoleReq": { + "type": "object", + "required": [ + "memo", + "name" + ], + "properties": { + "memo": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "md.AdminListReq": { + "type": "object", + "properties": { + "limit": { + "type": "integer" + }, + "page": { + "type": "integer" + }, + "state": { + "type": "integer" + }, + "username": { + "type": "string" + } + } + }, + "md.AgentQualificationBankData": { + "type": "object", + "properties": { + "account": { + "type": "string", + "example": "账号" + }, + "agent_id": { + "type": "string", + "example": "代理id" + }, + "bank": { + "type": "string", + "example": "开户银行" + }, + "bank_branch": { + "type": "string", + "example": "开户银行分行" + }, + "bank_no": { + "type": "string", + "example": "银行卡号" + }, + "company_name": { + "type": "string", + "example": "公司名称" + }, + "currency_conf": { + "type": "string", + "example": "结算币种 0人民币" + }, + "id": { + "type": "string", + "example": "id" + }, + "kind": { + "type": "string", + "example": "类型(1:企业 2:个人)" + }, + "licence": { + "type": "string", + "example": "开户许可证" + }, + "memo": { + "type": "string", + "example": "备注 审核时填写的" + }, + "state": { + "type": "string", + "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + }, + "unified_social_credit_code": { + "type": "string", + "example": "统一社会信用代码" + } + } + }, + "md.AgentQualificationBankRes": { + "type": "object", + "properties": { + "currency_conf": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.AgentQualificationBankData" + } + }, + "state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "total": { + "type": "integer" + }, + "type": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + } + } + }, + "md.AgentQualificationContactData": { + "type": "object", + "properties": { + "account": { + "type": "string", + "example": "账号" + }, + "address": { + "type": "string", + "example": "联系地址" + }, + "agent_id": { + "type": "string", + "example": "代理id" + }, + "company_name": { + "type": "string", + "example": "公司名称" + }, + "email": { + "type": "string", + "example": "邮箱地址" + }, + "id": { + "type": "string", + "example": "id" + }, + "kind": { + "type": "string", + "example": "类型(1:企业 2:个人)" + }, + "memo": { + "type": "string", + "example": "备注 审核时填写的" + }, + "name": { + "type": "string", + "example": "联系人" + }, + "phone": { + "type": "string", + "example": "联系电话" + }, + "state": { + "type": "string", + "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + } + } + }, + "md.AgentQualificationContactRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.AgentQualificationContactData" + } + }, + "state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "total": { + "type": "integer" + } + } + }, + "md.AgentQualificationEnterpriseAuditReq": { + "type": "object", + "properties": { + "agent_id": { + "type": "string" + }, + "memo": { + "type": "string" + }, + "state": { + "type": "string" + } + } + }, + "md.AgentQualificationEnterpriseData": { + "type": "object", + "properties": { + "account": { + "type": "string", + "example": "账号" + }, + "agent_id": { + "type": "string", + "example": "代理id" + }, + "business_license_address": { + "type": "string", + "example": "营业执照地址" + }, + "business_license_img_url": { + "type": "string", + "example": "营业执照照片" + }, + "certificate_first_type": { + "type": "string", + "example": "证件类型 1级类目id" + }, + "certificate_type": { + "type": "string", + "example": "证件类型 2级类目id" + }, + "certificate_validity": { + "type": "string", + "example": "证件有效期" + }, + "company_abbreviation": { + "type": "string", + "example": "公司简称" + }, + "company_name": { + "type": "string", + "example": "公司名称" + }, + "country_region": { + "type": "string", + "example": "国家地区" + }, + "country_region_id": { + "type": "string", + "example": "国家地区id" + }, + "id": { + "type": "string", + "example": "状态选择" + }, + "kind": { + "type": "string", + "example": "类型(1:企业 2:个人)" + }, + "legal_representative": { + "type": "string", + "example": "法定代表人" + }, + "memo": { + "type": "string", + "example": "备注 审核时填写的" + }, + "registered_address": { + "type": "string", + "example": "注册地址" + }, + "registered_address_city_id": { + "type": "string", + "example": "注册地址-市id" + }, + "registered_address_country_id": { + "type": "string", + "example": "注册地址-国家id" + }, + "registered_address_county_id": { + "type": "string", + "example": "注册地址-县/区id" + }, + "registered_address_province_id": { + "type": "string", + "example": "册地址-省份id" + }, + "state": { + "type": "string", + "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + }, + "unified_social_credit_code": { + "type": "string", + "example": "统一社会信用代码" + }, + "uuid": { + "type": "string", + "example": "站长id" + } + } + }, + "md.AgentQualificationEnterpriseReq": { + "type": "object", + "properties": { + "limit": { + "type": "string" + }, + "name": { + "type": "string" + }, + "page": { + "type": "string" + }, + "state": { + "type": "string" + } + } + }, + "md.AgentQualificationEnterpriseRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.AgentQualificationEnterpriseData" + } + }, + "state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "total": { + "type": "integer" + }, + "type": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + } + } + }, + "md.AppletAddReq": { + "type": "object", + "required": [ + "appid", + "logo", + "name", + "original_id" + ], + "properties": { + "appid": { + "type": "string", + "example": "授权小程序appid" + }, + "logo": { + "type": "string", + "example": "小程序logo" + }, + "name": { + "type": "string", + "example": "小程序名称" + }, + "original_id": { + "type": "string", + "example": "授权小程序原始id" + } + } + }, + "md.AppletApplicationAdSpaceListData": { + "type": "object", + "properties": { + "ad_id": { + "type": "string", + "example": "广告位id" + }, + "app_id": { + "type": "string", + "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": { + "ad_type": { + "type": "string", + "example": "" + }, + "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" }, - "app_secret": { + "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", + "example": "小程序名称" + } + } + }, + "md.BindAdminRoleReq": { + "type": "object", + "required": [ + "adm_id" + ], + "properties": { + "adm_id": { + "type": "integer" + }, + "role_ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "md.CommDetailReq": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "列表id" + } + } + }, + "md.DataCenterDataCenterOriginalDataDoingReq": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "列表id" + }, + "now_ecpm": { + "type": "string", + "example": "现-广告千次曝光收益(元)" + }, + "now_exposure_count": { + "type": "string", + "example": "现-曝光量" + } + } + }, + "md.DataCenterGenerateDataCommReq": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "列表id" + } + } + }, + "md.DataCenterGenerateDataData": { + "type": "object", + "properties": { + "adv_name": { + "type": "string", + "example": "广告位" + }, + "agent_revenue": { + "type": "string", + "example": "代理收益(元)" + }, + "agreement_sharing": { + "type": "string", + "example": "协议分成(元)" + }, + "agreement_sharing_total": { + "type": "string", + "example": "协议总分成(元)" + }, + "click_count": { + "type": "string", + "example": "现-点击量" + }, + "click_rate": { + "type": "string", + "example": "现-点击率" + }, + "commission_retention": { + "type": "string", + "example": "佣金留存(元)" + }, + "date": { + "type": "string", + "example": "日期" + }, + "ecpm": { + "type": "string", + "example": "'现-ecpm(元)" + }, + "exposure_count": { + "type": "string", + "example": "现-曝光量" + }, + "extra_revenue": { + "type": "string", + "example": "额外收益(元)" + }, + "id": { + "type": "string", + "example": "id" + }, + "is_generate_report": { + "type": "string", + "example": "是否已生成报表(0:未 1:已)" + }, + "media_revenue": { + "type": "string", + "example": "媒体收益(元)" + }, + "name": { + "type": "string", + "example": "名称" }, - "appid": { - "type": "string" + "old_click_count": { + "type": "string", + "example": "原-点击量" }, - "component_access_token": { - "type": "string" + "old_click_rate": { + "type": "string", + "example": "原-点击率" }, - "component_verify_ticket": { - "type": "string" + "old_ecpm": { + "type": "string", + "example": "'原-ecpm(元)" }, - "create_at": { - "type": "string" + "old_exposure_count": { + "type": "string", + "example": "原-曝光量" }, - "id": { - "type": "integer" + "platform": { + "type": "string", + "example": "平台名称" }, - "token": { - "type": "string" + "platform_retention": { + "type": "string", + "example": "平台留存(元)" }, - "update_at": { - "type": "string" + "price_adjustment_retention": { + "type": "string", + "example": "调价留存(元)" }, - "uuid": { - "type": "integer" + "state": { + "type": "string", + "example": "状态id" } } }, - "md.AddAdminReq": { + "md.DataCenterGenerateDataDetailAgentReward": { "type": "object", - "required": [ - "password", - "username" - ], "properties": { - "memo": { + "account": { "type": "string" }, - "password": { - "type": "string" + "agent_revenue": { + "type": "string", + "example": "代理收益(元)" }, - "username": { - "type": "string" - } - } - }, - "md.AddRoleReq": { - "type": "object", - "required": [ - "memo", - "name" - ], - "properties": { - "memo": { - "type": "string" + "agent_revenue_rate": { + "type": "string", + "example": "代理收益百分比" + }, + "extra_revenue": { + "type": "string", + "example": "额外收益(元)" + }, + "extra_revenue_rate": { + "type": "string", + "example": "'额外收益百分比" }, "name": { "type": "string" } } }, - "md.AdminListReq": { + "md.DataCenterGenerateDataDetailAgentRewardSecond": { "type": "object", "properties": { - "limit": { - "type": "integer" + "account": { + "type": "string" }, - "page": { - "type": "integer" + "agent_revenue": { + "type": "string", + "example": "代理收益(元)" }, - "state": { - "type": "integer" + "agent_revenue_rate": { + "type": "string", + "example": "代理收益百分比" }, - "username": { + "name": { "type": "string" } } }, - "md.AgentQualificationBankData": { + "md.DataCenterGenerateDataDetailData": { "type": "object", "properties": { - "account": { + "agent_revenue_rate": { "type": "string", - "example": "账号" + "example": "代理收益百分比" }, - "agent_id": { - "type": "string", - "example": "代理id" + "agent_reward": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DataCenterGenerateDataDetailAgentReward" + } }, - "bank": { + "agreement_sharing_rate": { "type": "string", - "example": "开户银行" + "example": "协议分成百分比" }, - "bank_branch": { + "commission_retention_rate": { "type": "string", - "example": "开户银行分行" + "example": "佣金留存百分比" }, - "bank_no": { - "type": "string", - "example": "银行卡号" + "create_at": { + "type": "string" }, - "company_name": { + "extra_revenue_rate": { "type": "string", - "example": "公司名称" + "example": "额外收益百分比" }, - "currency_conf": { + "media_revenue_rate": { "type": "string", - "example": "结算币种 0人民币" + "example": "媒体收益百分比" }, - "id": { + "platform_retention_rate": { "type": "string", - "example": "id" + "example": "平台留存百分比" }, - "kind": { - "type": "string", - "example": "类型(1:企业 2:个人)" + "update_at": { + "type": "string" + } + } + }, + "md.DataCenterGenerateDataReq": { + "type": "object", + "properties": { + "end_time": { + "type": "string" }, - "licence": { - "type": "string", - "example": "开户许可证" + "limit": { + "type": "string" }, - "memo": { - "type": "string", - "example": "备注 审核时填写的" + "name": { + "type": "string" }, - "state": { - "type": "string", - "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + "page": { + "type": "string" }, - "unified_social_credit_code": { - "type": "string", - "example": "统一社会信用代码" + "platform": { + "type": "string" + }, + "start_time": { + "type": "string" + }, + "state": { + "type": "string" } } }, - "md.AgentQualificationBankRes": { + "md.DataCenterGenerateDataRes": { "type": "object", "properties": { - "currency_conf": { + "list": { "type": "array", "items": { - "$ref": "#/definitions/md.SelectData" + "$ref": "#/definitions/md.DataCenterGenerateDataData" } }, - "list": { + "platform": { "type": "array", "items": { - "$ref": "#/definitions/md.AgentQualificationBankData" + "$ref": "#/definitions/md.SelectData" } }, "state": { @@ -2580,71 +5016,136 @@ const docTemplate = `{ }, "total": { "type": "integer" - }, - "type": { - "type": "array", - "items": { - "$ref": "#/definitions/md.SelectData" - } } } }, - "md.AgentQualificationContactData": { + "md.DataCenterIncomeDataData": { "type": "object", "properties": { - "account": { + "adv_name": { "type": "string", - "example": "账号" + "example": "广告位" }, - "address": { + "agent_revenue": { "type": "string", - "example": "联系地址" + "example": "代理收益(元)" }, - "agent_id": { + "agreement_sharing": { "type": "string", - "example": "代理id" + "example": "平台收益(元)" }, - "company_name": { + "click_count": { "type": "string", - "example": "公司名称" + "example": "现-点击量" }, - "email": { + "click_rate": { "type": "string", - "example": "邮箱地址" + "example": "现-点击率" + }, + "date": { + "type": "string", + "example": "日期" + }, + "ecpm": { + "type": "string", + "example": "'现-ecpm(元)" + }, + "exposure_count": { + "type": "string", + "example": "现-曝光量" }, "id": { "type": "string", "example": "id" }, - "kind": { + "media_revenue": { "type": "string", - "example": "类型(1:企业 2:个人)" + "example": "媒体收益(元)" }, - "memo": { + "name": { "type": "string", - "example": "备注 审核时填写的" + "example": "名称" }, - "name": { + "platform": { "type": "string", - "example": "联系人" + "example": "平台名称" }, - "phone": { + "settle_amount": { "type": "string", - "example": "联系电话" + "example": "结算收益(元)" }, "state": { "type": "string", - "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + "example": "状态id" } } }, - "md.AgentQualificationContactRes": { + "md.DataCenterIncomeDataDetail": { + "type": "object", + "properties": { + "agent_revenue": { + "type": "string", + "example": "代理收益(元)" + }, + "agent_revenue_rate": { + "type": "string", + "example": "代理收益百分比" + }, + "agent_reward": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DataCenterGenerateDataDetailAgentRewardSecond" + } + }, + "agreement_sharing": { + "type": "string", + "example": "平台收益(元)" + }, + "agreement_sharing_rate": { + "type": "string", + "example": "平台收益百分比" + }, + "create_at": { + "type": "string" + }, + "data_source": { + "type": "string", + "example": "数据来源" + }, + "media_revenue": { + "type": "string", + "example": "媒体收益(元)" + }, + "media_revenue_rate": { + "type": "string", + "example": "媒体收益百分比" + }, + "medium_name": { + "type": "string", + "example": "媒体名称" + }, + "platform": { + "type": "string", + "example": "填充来源" + }, + "update_at": { + "type": "string" + } + } + }, + "md.DataCenterIncomeDataRes": { "type": "object", "properties": { "list": { "type": "array", "items": { - "$ref": "#/definitions/md.AgentQualificationContactData" + "$ref": "#/definitions/md.DataCenterIncomeDataData" + } + }, + "platform": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" } }, "state": { @@ -2658,118 +5159,109 @@ const docTemplate = `{ } } }, - "md.AgentQualificationEnterpriseAuditReq": { + "md.DataCenterOriginalDataCommReq": { "type": "object", "properties": { - "agent_id": { - "type": "string" - }, - "memo": { - "type": "string" - }, - "state": { - "type": "string" + "id": { + "type": "string", + "example": "列表id" } } }, - "md.AgentQualificationEnterpriseData": { + "md.DataCenterOriginalDataData": { "type": "object", "properties": { - "account": { - "type": "string", - "example": "账号" - }, - "agent_id": { - "type": "string", - "example": "代理id" - }, - "business_license_address": { - "type": "string", - "example": "营业执照地址" - }, - "business_license_img_url": { + "adv_name": { "type": "string", - "example": "营业执照照片" - }, - "certificate_first_type": { - "type": "string", - "example": "证件类型 1级类目id" + "example": "广告位" }, - "certificate_type": { + "click_count": { "type": "string", - "example": "证件类型 2级类目id" + "example": "点击量" }, - "certificate_validity": { + "click_rate": { "type": "string", - "example": "证件有效期" + "example": "点击率" }, - "company_abbreviation": { + "date": { "type": "string", - "example": "公司简称" + "example": "日期" }, - "company_name": { + "ecpm": { "type": "string", - "example": "公司名称" + "example": "'ecpm(元)" }, - "country_region": { + "exposure_count": { "type": "string", - "example": "国家地区" + "example": "曝光量" }, - "country_region_id": { + "exposure_rate": { "type": "string", - "example": "国家地区id" + "example": "曝光率" }, "id": { "type": "string", - "example": "状态选择" + "example": "id" }, - "kind": { + "is_apply": { "type": "string", - "example": "类型(1:企业 2:个人)" + "example": "是否已应用" }, - "legal_representative": { + "name": { "type": "string", - "example": "法定代表人" + "example": "名称" }, - "memo": { + "platform": { "type": "string", - "example": "备注 审核时填写的" + "example": "平台名称" }, - "registered_address": { + "publisher_income": { "type": "string", - "example": "注册地址" + "example": "总收益(元)" }, - "registered_address_city_id": { + "req_succ_count": { "type": "string", - "example": "注册地址-市id" + "example": "拉取量" }, - "registered_address_country_id": { + "state": { "type": "string", - "example": "注册地址-国家id" + "example": "状态id" + } + } + }, + "md.DataCenterOriginalDataMoreApplicationData": { + "type": "object", + "properties": { + "ad_id": { + "type": "string", + "example": "广告位id" }, - "registered_address_county_id": { + "adv_name": { "type": "string", - "example": "注册地址-县/区id" + "example": "广告位" }, - "registered_address_province_id": { + "app_id": { "type": "string", - "example": "册地址-省份id" + "example": "小程序id" }, - "state": { + "id": { "type": "string", - "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + "example": "id" }, - "unified_social_credit_code": { + "logo": { + "type": "string" + }, + "name": { "type": "string", - "example": "统一社会信用代码" + "example": "名称" }, - "uuid": { + "state": { "type": "string", - "example": "站长id" + "example": "状态id" } } }, - "md.AgentQualificationEnterpriseReq": { + "md.DataCenterOriginalDataMoreApplicationReq": { "type": "object", "properties": { "limit": { @@ -2780,19 +5272,16 @@ const docTemplate = `{ }, "page": { "type": "string" - }, - "state": { - "type": "string" } } }, - "md.AgentQualificationEnterpriseRes": { + "md.DataCenterOriginalDataMoreApplicationRes": { "type": "object", "properties": { "list": { "type": "array", "items": { - "$ref": "#/definitions/md.AgentQualificationEnterpriseData" + "$ref": "#/definitions/md.DataCenterOriginalDataMoreApplicationData" } }, "state": { @@ -2803,8 +5292,48 @@ const docTemplate = `{ }, "total": { "type": "integer" + } + } + }, + "md.DataCenterOriginalDataOneApplicationAdListData": { + "type": "object", + "properties": { + "ad_id": { + "type": "string", + "example": "广告位id" }, - "type": { + "id": { + "type": "string", + "example": "id" + }, + "name": { + "type": "string", + "example": "名称" + }, + "state": { + "type": "string", + "example": "状态id" + } + } + }, + "md.DataCenterOriginalDataOneApplicationAdListReq": { + "type": "object", + "properties": { + "app_id": { + "type": "string" + } + } + }, + "md.DataCenterOriginalDataOneApplicationAdListRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationAdListData" + } + }, + "state": { "type": "array", "items": { "$ref": "#/definitions/md.SelectData" @@ -2812,92 +5341,101 @@ const docTemplate = `{ } } }, - "md.AppletAddReq": { + "md.DataCenterOriginalDataOneApplicationData": { "type": "object", - "required": [ - "appid", - "logo", - "name", - "original_id" - ], "properties": { - "appid": { + "app_id": { "type": "string", - "example": "授权小程序appid" + "example": "小程序id" }, - "logo": { + "id": { "type": "string", - "example": "小程序logo" + "example": "id" }, - "name": { - "type": "string", - "example": "小程序名称" + "logo": { + "type": "string" }, - "original_id": { + "name": { "type": "string", - "example": "授权小程序原始id" + "example": "名称" } } }, - "md.AppletApplicationAdSpaceListData": { + "md.DataCenterOriginalDataOneApplicationDoingReq": { "type": "object", "properties": { "ad_id": { - "type": "string", - "example": "广告位id" + "type": "string" }, "app_id": { + "type": "string" + }, + "date": { "type": "string", - "example": "小程序appid" + "example": "2024-08-28" + } + } + }, + "md.DataCenterOriginalDataOneApplicationDoingRes": { + "type": "object", + "properties": { + "ad_id": { + "type": "string" }, - "cooperate_state": { + "ad_slot": { "type": "string", - "example": "合作状态" + "example": "广告位类型名称" }, - "id": { + "click_count": { "type": "string", - "example": "id" + "example": "点击量" }, - "kind": { + "click_rate": { "type": "string", - "example": "广告位类型" + "example": "点击率" }, - "logo": { + "ecpm": { "type": "string", - "example": "logo" + "example": "ecpm(元)" }, - "memo": { + "exposure_count": { "type": "string", - "example": "备注" + "example": "曝光量" }, - "name": { + "exposure_rate": { "type": "string", - "example": "应用名称" + "example": "曝光率" }, - "platform": { + "publisher_income": { "type": "string", - "example": "平台" + "example": "总收益(元)" }, - "state": { + "req_succ_count": { "type": "string", - "example": "应用状态 state=2 才能再次编辑" + "example": "拉取量" } } }, - "md.AppletApplicationAdSpaceListReq": { + "md.DataCenterOriginalDataOneApplicationRes": { "type": "object", "properties": { - "cooperate_state": { - "type": "string", - "example": "合作状态" + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationData" + } + } + } + }, + "md.DataCenterOriginalDataReq": { + "type": "object", + "properties": { + "end_time": { + "type": "string" }, "limit": { "type": "string" }, - "medium_id": { - "type": "string", - "example": "媒体id" - }, "name": { "type": "string" }, @@ -2906,28 +5444,22 @@ const docTemplate = `{ }, "platform": { "type": "string" + }, + "start_time": { + "type": "string" + }, + "state": { + "type": "string" } } }, - "md.AppletApplicationAdSpaceListRes": { + "md.DataCenterOriginalDataRes": { "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" + "$ref": "#/definitions/md.DataCenterOriginalDataData" } }, "platform": { @@ -2947,25 +5479,37 @@ const docTemplate = `{ } } }, - "md.AppletApplicationAdSpaceMediumListData": { + "md.DivisionStrategyData": { "type": "object", "properties": { "account": { "type": "string", "example": "账号" }, - "contact_name": { + "agent_revenue_rate": { "type": "string", - "example": "联系人" + "example": "代理收益百分比" }, - "count": { + "agreement_sharing_rate": { "type": "string", - "example": "广告位数量" + "example": "协议分成百分比" + }, + "commission_retention_rate": { + "type": "string", + "example": "佣金留存百分比" + }, + "extra_revenue_rate": { + "type": "string", + "example": "额外收益百分比" }, "id": { "type": "string", "example": "id" }, + "media_revenue_rate": { + "type": "string", + "example": "媒体收益百分比" + }, "medium_id": { "type": "string", "example": "媒体id" @@ -2974,153 +5518,113 @@ const docTemplate = `{ "type": "string", "example": "名称" }, - "phone": { + "platform_retention_rate": { "type": "string", - "example": "联系电话" + "example": "平台留存百分比" } } }, - "md.AppletApplicationAdSpaceMediumListReq": { + "md.DivisionStrategyDetailByAgent": { "type": "object", "properties": { "account": { "type": "string", - "example": "媒体账号" + "example": "账号" }, - "limit": { - "type": "string" + "agent_id": { + "type": "string", + "example": "代理id" }, - "name": { + "agent_revenue_rate": { "type": "string", - "example": "媒体名称" + "example": "佣金比例" }, - "page": { - "type": "string" - } - } - }, - "md.AppletApplicationAdSpaceMediumListRes": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListData" - } + "extra_revenue_rate": { + "type": "string", + "example": "额外奖励" }, - "total": { - "type": "integer" + "name": { + "type": "string", + "example": "名称" } } }, - "md.AppletApplicationAdSpaceSaveReq": { + "md.DivisionStrategyDetailReq": { "type": "object", "properties": { - "id": { - "type": "string", - "example": "id 多个逗号隔开" - }, - "memo": { - "type": "string", - "example": "备注" - }, - "state": { - "type": "string", - "example": "审核状态" + "medium_id": { + "type": "string" } } }, - "md.AppletApplicationListData": { + "md.DivisionStrategyDetailRes": { "type": "object", "properties": { - "app_id": { + "account": { "type": "string", - "example": "小程序appid" + "example": "账号" }, - "cooperate_state": { + "agent_list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DivisionStrategyDetailByAgent" + } + }, + "agent_revenue_rate": { "type": "string", - "example": "合作状态" + "example": "代理收益百分比" }, - "id": { + "agreement_sharing_rate": { "type": "string", - "example": "id" + "example": "协议分成百分比" }, - "logo": { + "commission_retention_rate": { "type": "string", - "example": "logo" + "example": "佣金留存百分比" }, - "memo": { + "extra_revenue_rate": { "type": "string", - "example": "备注" + "example": "额外收益百分比" }, - "name": { + "media_revenue_rate": { "type": "string", - "example": "应用名称" + "example": "媒体收益百分比" }, - "original_id": { + "medium_id": { "type": "string", - "example": "小程序id" + "example": "媒体id" }, - "platform": { + "name": { "type": "string", - "example": "平台" + "example": "名称" }, - "state": { + "platform_retention_rate": { "type": "string", - "example": "应用状态 state=3 才能再次编辑" + "example": "平台留存百分比" } } }, - "md.AppletApplicationListReq": { + "md.DivisionStrategyReq": { "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": { + "md.DivisionStrategyRes": { "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" + "$ref": "#/definitions/md.DivisionStrategyData" } }, "total": { @@ -3128,65 +5632,118 @@ const docTemplate = `{ } } }, - "md.AppletApplicationMediumListData": { + "md.FinanceCenterDataData": { "type": "object", "properties": { - "account": { + "all_income": { "type": "string", - "example": "账号" + "example": "合计收益" }, - "contact_name": { + "change_income": { "type": "string", - "example": "联系人" + "example": "调价留存" }, - "count": { + "commission_income": { "type": "string", - "example": "应用数量" + "example": "佣金留存" }, "id": { - "type": "string", - "example": "id" + "type": "string" }, - "medium_id": { + "label": { + "type": "string" + }, + "medium_income": { "type": "string", - "example": "媒体id" + "example": "媒体结算" }, "name": { "type": "string", - "example": "名称" + "example": "媒体名称" }, - "phone": { + "other_income": { "type": "string", - "example": "联系电话" + "example": "其他调整" + }, + "pay_state": { + "type": "string", + "example": "结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)" + }, + "platform_income": { + "type": "string", + "example": "平台留存" + }, + "settle_type": { + "type": "string", + "example": "结算单类型(1:日结 2:周结 3:月结 4:预付)" + }, + "state": { + "type": "string", + "example": "结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)" + }, + "time_str": { + "type": "string", + "example": "业务时间" + }, + "top_income": { + "type": "string", + "example": "上游结算" } } }, - "md.AppletApplicationMediumListReq": { + "md.FinanceCenterDataReq": { "type": "object", "properties": { - "account": { - "type": "string", - "example": "媒体账号" + "end_time": { + "type": "string" }, "limit": { "type": "string" }, - "name": { - "type": "string", - "example": "媒体名称" - }, "page": { "type": "string" + }, + "pay_state": { + "type": "string", + "example": "读 settle_pay_state返回的" + }, + "start_time": { + "type": "string", + "example": "2024-08-29" } } }, - "md.AppletApplicationMediumListRes": { + "md.FinanceCenterDataRes": { "type": "object", "properties": { + "business_kind": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, "list": { "type": "array", "items": { - "$ref": "#/definitions/md.AppletApplicationMediumListData" + "$ref": "#/definitions/md.FinanceCenterDataData" + } + }, + "settle_pay_state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "settle_state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "settle_type": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" } }, "total": { @@ -3194,58 +5751,34 @@ const docTemplate = `{ } } }, - "md.AppletApplicationSaveReq": { + "md.InvoiceFile": { "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" + "example": "0待确认 1审核通过 2审核失败" }, - "name": { - "type": "string", - "example": "小程序名称" + "url": { + "type": "string" } } }, - "md.BindAdminRoleReq": { + "md.InvoiceReq": { "type": "object", - "required": [ - "adm_id" - ], "properties": { - "adm_id": { - "type": "integer" - }, - "role_ids": { + "file": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/md.InvoiceFile" } + }, + "id": { + "type": "string", + "example": "列表id" + }, + "state": { + "type": "string", + "example": "1审核通过 2审核失败" } } }, @@ -3602,6 +6135,19 @@ const docTemplate = `{ } } }, + "md.OtherIncomeReq": { + "type": "object", + "properties": { + "amount": { + "type": "string", + "example": "其他收益" + }, + "id": { + "type": "string", + "example": "列表id" + } + } + }, "md.QiNiuBucketRegion": { "type": "object", "properties": { @@ -3770,6 +6316,111 @@ const docTemplate = `{ } } }, + "md.SettleCenterDataData": { + "type": "object", + "properties": { + "account": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "settle_type": { + "type": "string" + }, + "update_at": { + "type": "string" + } + } + }, + "md.SettleCenterDataDetailReq": { + "type": "object", + "properties": { + "end_time": { + "type": "string" + }, + "id": { + "type": "string" + }, + "limit": { + "type": "string" + }, + "page": { + "type": "string" + }, + "start_time": { + "type": "string", + "example": "2024-08-29" + } + } + }, + "md.SettleCenterDataReq": { + "type": "object", + "properties": { + "account": { + "type": "string" + }, + "limit": { + "type": "string" + }, + "name": { + "type": "string" + }, + "page": { + "type": "string" + }, + "state": { + "type": "string" + } + } + }, + "md.SettleCenterDataRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SettleCenterDataData" + } + }, + "state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "total": { + "type": "integer" + } + } + }, + "md.SettleCenterDataSaveReq": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "settle_type": { + "type": "string" + } + } + }, + "md.SettleFileReq": { + "type": "object", + "properties": { + "file": { + "type": "string", + "example": "七牛云链接 带http" + }, + "id": { + "type": "string", + "example": "列表id" + } + } + }, "md.ShareIndexResp": { "type": "object", "properties": { diff --git a/docs/swagger.json b/docs/swagger.json index ee13f32..c3f395c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -299,9 +299,9 @@ } } }, - "/api/login": { + "/api/dataCenter/generate/data/del": { "post": { - "description": "登入", + "description": "数据中心-分成数据-删除", "consumes": [ "application/json" ], @@ -309,25 +309,32 @@ "application/json" ], "tags": [ - "登录" + "数据中心------嘉俊" ], - "summary": "登陆", + "summary": "分成数据-删除", "parameters": [ { - "description": "用户名密码", - "name": "req", + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.LoginReq" + "$ref": "#/definitions/md.DataCenterGenerateDataCommReq" } } ], "responses": { "200": { - "description": "token", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.LoginResponse" + "type": "string" } }, "400": { @@ -339,9 +346,9 @@ } } }, - "/api/mediumCenter/agent/bind/medium/list": { + "/api/dataCenter/generate/data/detail": { "post": { - "description": "媒体中心-代理绑定媒体列表", + "description": "数据中心-分成数据-详情", "consumes": [ "application/json" ], @@ -349,9 +356,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "代理绑定媒体列表", + "summary": "分成数据-详情", "parameters": [ { "type": "string", @@ -366,15 +373,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListReq" + "$ref": "#/definitions/md.DataCenterGenerateDataCommReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.MediumListRes" + "$ref": "#/definitions/md.DataCenterGenerateDataDetailData" } }, "400": { @@ -386,9 +393,9 @@ } } }, - "/api/mediumCenter/agent/list": { + "/api/dataCenter/generate/data/doing": { "post": { - "description": "媒体中心-代理列表", + "description": "数据中心-分成数据-应用操作", "consumes": [ "application/json" ], @@ -396,9 +403,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "代理列表", + "summary": "分成数据-应用操作", "parameters": [ { "type": "string", @@ -413,15 +420,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AgentQualificationEnterpriseReq" + "$ref": "#/definitions/md.DataCenterGenerateDataCommReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.AgentQualificationEnterpriseRes" + "type": "string" } }, "400": { @@ -433,9 +440,9 @@ } } }, - "/api/mediumCenter/applet/application/ad/space/audit": { + "/api/dataCenter/generate/data/list": { "post": { - "description": "小程序应用-广告位审核", + "description": "数据中心-分成数据-列表", "consumes": [ "application/json" ], @@ -443,9 +450,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "广告位审核", + "summary": "分成数据-列表", "parameters": [ { "type": "string", @@ -460,15 +467,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceSaveReq" + "$ref": "#/definitions/md.DataCenterGenerateDataReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.DataCenterGenerateDataRes" } }, "400": { @@ -480,9 +487,9 @@ } } }, - "/api/mediumCenter/applet/application/ad/space/list": { + "/api/dataCenter/income/data/detail": { "post": { - "description": "媒体中心-媒体列表", + "description": "数据中心-收益报表-详情", "consumes": [ "application/json" ], @@ -490,9 +497,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体列表", + "summary": "收益报表-详情", "parameters": [ { "type": "string", @@ -507,15 +514,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListReq" + "$ref": "#/definitions/md.DataCenterGenerateDataCommReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListRes" + "$ref": "#/definitions/md.DataCenterIncomeDataDetail" } }, "400": { @@ -527,9 +534,9 @@ } } }, - "/api/mediumCenter/applet/application/ad/space/save": { + "/api/dataCenter/income/data/list": { "post": { - "description": "小程序应用-广告位列表", + "description": "数据中心-收益报表-列表", "consumes": [ "application/json" ], @@ -537,9 +544,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "广告位列表", + "summary": "收益报表-列表", "parameters": [ { "type": "string", @@ -554,15 +561,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceListReq" + "$ref": "#/definitions/md.DataCenterGenerateDataReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceListRes" + "$ref": "#/definitions/md.DataCenterIncomeDataRes" } }, "400": { @@ -574,9 +581,9 @@ } } }, - "/api/mediumCenter/applet/application/audit": { + "/api/dataCenter/original/data/del": { "post": { - "description": "小程序应用-审核", + "description": "数据中心-原始数据-删除", "consumes": [ "application/json" ], @@ -584,9 +591,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "审核", + "summary": "原始数据-删除", "parameters": [ { "type": "string", @@ -601,13 +608,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationSaveReq" + "$ref": "#/definitions/md.DataCenterOriginalDataCommReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 ", "schema": { "type": "string" } @@ -621,9 +628,9 @@ } } }, - "/api/mediumCenter/applet/application/list": { + "/api/dataCenter/original/data/doing": { "post": { - "description": "小程序应用-列表数据", + "description": "数据中心-原始数据-应用操作", "consumes": [ "application/json" ], @@ -631,9 +638,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "应用列表", + "summary": "原始数据-应用操作", "parameters": [ { "type": "string", @@ -648,15 +655,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationListReq" + "$ref": "#/definitions/md.DataCenterDataCenterOriginalDataDoingReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.AppletApplicationListRes" + "type": "string" } }, "400": { @@ -668,9 +675,9 @@ } } }, - "/api/mediumCenter/applet/application/medium/list": { + "/api/dataCenter/original/data/list": { "post": { - "description": "媒体中心-媒体列表", + "description": "数据中心-原始数据-列表", "consumes": [ "application/json" ], @@ -678,9 +685,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体列表", + "summary": "原始数据-列表", "parameters": [ { "type": "string", @@ -695,15 +702,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationMediumListReq" + "$ref": "#/definitions/md.DataCenterOriginalDataReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationMediumListRes" + "$ref": "#/definitions/md.DataCenterOriginalDataRes" } }, "400": { @@ -715,9 +722,9 @@ } } }, - "/api/mediumCenter/medium/bind/agent/del": { + "/api/dataCenter/original/data/more/application": { "post": { - "description": "媒体中心-媒体绑定代理删除", + "description": "数据中心-原始数据-一键导入应用列表", "consumes": [ "application/json" ], @@ -725,9 +732,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体绑定代理删除", + "summary": "原始数据-一键导入应用列表", "parameters": [ { "type": "string", @@ -742,15 +749,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListDelReq" + "$ref": "#/definitions/md.DataCenterOriginalDataMoreApplicationReq" } } ], "responses": { "200": { - "description": "具体看返回内容 ", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.DataCenterOriginalDataMoreApplicationRes" } }, "400": { @@ -762,9 +769,9 @@ } } }, - "/api/mediumCenter/medium/bind/agent/list": { + "/api/dataCenter/original/data/more/application/doing": { "post": { - "description": "媒体中心-媒体绑定代理列表", + "description": "数据中心-原始数据-一键导入操作", "consumes": [ "application/json" ], @@ -772,9 +779,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体绑定代理列表", + "summary": "原始数据-一键导入操作", "parameters": [ { "type": "string", @@ -789,15 +796,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListReq" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.MediumListRes" + "type": "string" } }, "400": { @@ -809,9 +816,9 @@ } } }, - "/api/mediumCenter/medium/bind/agent/save": { - "post": { - "description": "媒体中心-媒体绑定代理操作", + "/api/dataCenter/original/data/more/application/state": { + "get": { + "description": "数据中心-原始数据-一键导入操作状态", "consumes": [ "application/json" ], @@ -819,9 +826,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体绑定代理操作", + "summary": "原始数据-一键导入操作状态", "parameters": [ { "type": "string", @@ -836,13 +843,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListSaveReq" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" } } ], "responses": { "200": { - "description": "具体看返回内容 ", + "description": "具体看返回内容 state=1 进行中", "schema": { "type": "string" } @@ -856,9 +863,9 @@ } } }, - "/api/mediumCenter/medium/list": { - "post": { - "description": "媒体中心-媒体列表", + "/api/dataCenter/original/data/one/application": { + "get": { + "description": "数据中心-原始数据-单个导入应用列表", "consumes": [ "application/json" ], @@ -866,9 +873,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "媒体列表", + "summary": "原始数据-单个导入应用列表", "parameters": [ { "type": "string", @@ -876,22 +883,13 @@ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" - } } ], "responses": { "200": { "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationRes" } }, "400": { @@ -903,21 +901,9 @@ } } }, - "/api/mediumQualification/bank": { - "post": { - "responses": { - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/mediumQualification/bank/audit": { + "/api/dataCenter/original/data/one/application/ad/list": { "post": { - "description": "媒体资质-银行资质审核", + "description": "数据中心-原始数据-单个导入应用-广告位列表", "consumes": [ "application/json" ], @@ -925,9 +911,9 @@ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "数据中心------嘉俊" ], - "summary": "银行资质审核", + "summary": "原始数据-单个导入应用-广告位列表", "parameters": [ { "type": "string", @@ -942,15 +928,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationAdListReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationAdListRes" } }, "400": { @@ -962,9 +948,9 @@ } } }, - "/api/mediumQualification/contact": { + "/api/dataCenter/original/data/one/application/doing": { "post": { - "description": "媒体资质-联系方式", + "description": "数据中心-原始数据-单个应用数据操作", "consumes": [ "application/json" ], @@ -972,9 +958,9 @@ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "数据中心------嘉俊" ], - "summary": "联系方式", + "summary": "原始数据-单个应用数据操作", "parameters": [ { "type": "string", @@ -989,15 +975,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.MediumQualificationContactRes" + "type": "string" } }, "400": { @@ -1009,9 +995,9 @@ } } }, - "/api/mediumQualification/contact/audit": { + "/api/dataCenter/original/data/one/application/total": { "post": { - "description": "媒体资质-联系方式审核", + "description": "数据中心-原始数据-单个应用数据统计", "consumes": [ "application/json" ], @@ -1019,9 +1005,9 @@ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "数据中心------嘉俊" ], - "summary": "联系方式审核", + "summary": "原始数据-单个应用数据统计", "parameters": [ { "type": "string", @@ -1036,15 +1022,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 ", "schema": { - "type": "string" + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingRes" } }, "400": { @@ -1056,9 +1042,9 @@ } } }, - "/api/mediumQualification/enterprise": { + "/api/dataCenter/original/data/total": { "post": { - "description": "媒体资质-主体资质", + "description": "数据中心-原始数据-记录应用时统计", "consumes": [ "application/json" ], @@ -1066,9 +1052,9 @@ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "数据中心------嘉俊" ], - "summary": "主体资质", + "summary": "原始数据-记录应用时统计", "parameters": [ { "type": "string", @@ -1083,15 +1069,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + "$ref": "#/definitions/md.DataCenterOriginalDataCommReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" + "type": "string" } }, "400": { @@ -1103,9 +1089,9 @@ } } }, - "/api/mediumQualification/enterprise/audit": { + "/api/divisionStrategy/detail": { "post": { - "description": "媒体资质-主体资质审核", + "description": "分成策略-详情", "consumes": [ "application/json" ], @@ -1113,9 +1099,9 @@ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "分成策略------嘉俊" ], - "summary": "主体资质审核", + "summary": "详情", "parameters": [ { "type": "string", @@ -1130,15 +1116,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.DivisionStrategyDetailReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.DivisionStrategyDetailRes" } }, "400": { @@ -1150,9 +1136,9 @@ } } }, - "/api/registerForAgent": { + "/api/divisionStrategy/list": { "post": { - "description": "注册模块-渠道代理注册", + "description": "分成策略-列表", "consumes": [ "application/json" ], @@ -1160,25 +1146,32 @@ "application/json" ], "tags": [ - "注册模块" + "分成策略------嘉俊" ], - "summary": "渠道代理注册", + "summary": "列表", "parameters": [ { - "description": "用户名密码", - "name": "req", + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.RegisterForAgentReq" + "$ref": "#/definitions/md.DivisionStrategyReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.DivisionStrategyRes" } }, "400": { @@ -1190,9 +1183,9 @@ } } }, - "/api/registerForMedium": { + "/api/divisionStrategy/save": { "post": { - "description": "注册模块-媒体注册", + "description": "分成策略-保存", "consumes": [ "application/json" ], @@ -1200,23 +1193,30 @@ "application/json" ], "tags": [ - "注册模块" + "分成策略------嘉俊" ], - "summary": "媒体注册", + "summary": "保存", "parameters": [ { - "description": "用户名密码", - "name": "req", + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.RegisterForMediumReq" + "$ref": "#/definitions/md.DivisionStrategyDetailRes" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 ", "schema": { "type": "string" } @@ -1230,9 +1230,9 @@ } } }, - "/api/role/addAdmin": { + "/api/financeCenter/medium/detail": { "post": { - "description": "权限管理-新增管理员", + "description": "财务中心-媒体详情", "consumes": [ "application/json" ], @@ -1240,9 +1240,9 @@ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "新增管理员", + "summary": "媒体详情", "parameters": [ { "type": "string", @@ -1257,15 +1257,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AddAdminReq" + "$ref": "#/definitions/md.CommDetailReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.FinanceCenterDataRes" } }, "400": { @@ -1277,9 +1277,9 @@ } } }, - "/api/role/addRole": { + "/api/financeCenter/medium/invoice/save": { "post": { - "description": "权限管理-添加角色", + "description": "财务中心-媒体详情-发票保存", "consumes": [ "application/json" ], @@ -1287,9 +1287,9 @@ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "添加角色", + "summary": "媒体详情-发票保存", "parameters": [ { "type": "string", @@ -1304,13 +1304,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AddRoleReq" + "$ref": "#/definitions/md.InvoiceReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { "type": "string" } @@ -1324,9 +1324,9 @@ } } }, - "/api/role/adminInfo": { - "get": { - "description": "权限管理-管理员信息", + "/api/financeCenter/medium/list": { + "post": { + "description": "财务中心-媒体列表", "consumes": [ "application/json" ], @@ -1334,9 +1334,9 @@ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "管理员信息", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -1346,18 +1346,20 @@ "required": true }, { - "type": "string", - "description": "管理员id", - "name": "adm_id", - "in": "query", - "required": true + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.FinanceCenterDataReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.FinanceCenterDataRes" } }, "400": { @@ -1369,9 +1371,9 @@ } } }, - "/api/role/adminList": { + "/api/financeCenter/medium/other/income/save": { "post": { - "description": "权限管理-管理员列表", + "description": "财务中心-媒体详情-其他收益调整", "consumes": [ "application/json" ], @@ -1379,9 +1381,9 @@ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "管理员列表", + "summary": "媒体详情-其他收益调整", "parameters": [ { "type": "string", @@ -1396,13 +1398,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AdminListReq" + "$ref": "#/definitions/md.OtherIncomeReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { "type": "string" } @@ -1416,9 +1418,9 @@ } } }, - "/api/role/bindAdminRole/": { + "/api/financeCenter/medium/pay/save": { "post": { - "description": "权限管理-管理员绑定角色", + "description": "财务中心-媒体详情-确认支付", "consumes": [ "application/json" ], @@ -1426,9 +1428,9 @@ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "管理员绑定角色", + "summary": "媒体详情-确认支付", "parameters": [ { "type": "string", @@ -1443,13 +1445,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.BindAdminRoleReq" + "$ref": "#/definitions/md.CommDetailReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { "type": "string" } @@ -1463,9 +1465,9 @@ } } }, - "/api/role/deleteAdmin/{$adm_id}": { - "delete": { - "description": "权限管理-删除管理员", + "/api/financeCenter/medium/settle/file/save": { + "post": { + "description": "财务中心-媒体详情-结算单保存", "consumes": [ "application/json" ], @@ -1473,9 +1475,9 @@ "application/json" ], "tags": [ - "权限管理" + "财务中心------嘉俊" ], - "summary": "删除管理员", + "summary": "媒体详情-结算单保存", "parameters": [ { "type": "string", @@ -1483,11 +1485,20 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.SettleFileReq" + } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { "type": "string" } @@ -1501,9 +1512,9 @@ } } }, - "/api/role/deleteRole/{$id}": { - "delete": { - "description": "权限管理-删除角色", + "/api/login": { + "post": { + "description": "登入", "consumes": [ "application/json" ], @@ -1511,32 +1522,25 @@ "application/json" ], "tags": [ - "权限管理" + "登录" ], - "summary": "删除角色", + "summary": "登陆", "parameters": [ { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "请求参数", - "name": "args", + "description": "用户名密码", + "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" + "$ref": "#/definitions/md.LoginReq" } } ], "responses": { "200": { - "description": "success", + "description": "token", "schema": { - "type": "string" + "$ref": "#/definitions/md.LoginResponse" } }, "400": { @@ -1548,9 +1552,9 @@ } } }, - "/api/role/roleBindPermissionGroup": { + "/api/mediumCenter/agent/bind/medium/list": { "post": { - "description": "权限管理-角色绑定权限组", + "description": "媒体中心-代理绑定媒体列表", "consumes": [ "application/json" ], @@ -1558,9 +1562,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "角色绑定权限组", + "summary": "代理绑定媒体列表", "parameters": [ { "type": "string", @@ -1575,15 +1579,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.RoleBindPermissionGroupReq" + "$ref": "#/definitions/md.MediumListReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumListRes" } }, "400": { @@ -1595,9 +1599,9 @@ } } }, - "/api/role/roleList": { - "get": { - "description": "权限管理-角色列表", + "/api/mediumCenter/agent/list": { + "post": { + "description": "媒体中心-代理列表", "consumes": [ "application/json" ], @@ -1605,9 +1609,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "角色列表", + "summary": "代理列表", "parameters": [ { "type": "string", @@ -1615,13 +1619,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AgentQualificationEnterpriseReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AgentQualificationEnterpriseRes" } }, "400": { @@ -1633,9 +1646,9 @@ } } }, - "/api/role/updateAdmin": { + "/api/mediumCenter/applet/application/ad/space/audit": { "post": { - "description": "权限管理-修改管理员信息", + "description": "小程序应用-广告位审核", "consumes": [ "application/json" ], @@ -1643,9 +1656,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "修改管理员信息", + "summary": "广告位审核", "parameters": [ { "type": "string", @@ -1660,13 +1673,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateAdminReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceSaveReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -1680,9 +1693,9 @@ } } }, - "/api/role/updateAdminState": { + "/api/mediumCenter/applet/application/ad/space/list": { "post": { - "description": "权限管理-修改管理员状态", + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -1690,9 +1703,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "修改管理员状态", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -1707,15 +1720,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateAdminStateReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListRes" } }, "400": { @@ -1727,9 +1740,9 @@ } } }, - "/api/role/updateRole": { + "/api/mediumCenter/applet/application/ad/space/save": { "post": { - "description": "权限管理-修改角色", + "description": "小程序应用-广告位列表", "consumes": [ "application/json" ], @@ -1737,9 +1750,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "修改角色", + "summary": "广告位列表", "parameters": [ { "type": "string", @@ -1754,15 +1767,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceListReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationAdSpaceListRes" } }, "400": { @@ -1774,9 +1787,9 @@ } } }, - "/api/role/updateRoleState": { + "/api/mediumCenter/applet/application/audit": { "post": { - "description": "权限管理-修改角色状态", + "description": "小程序应用-审核", "consumes": [ "application/json" ], @@ -1784,9 +1797,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "修改角色状态", + "summary": "审核", "parameters": [ { "type": "string", @@ -1801,13 +1814,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" + "$ref": "#/definitions/md.AppletApplicationSaveReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -1821,9 +1834,9 @@ } } }, - "/api/setCenter/applet/add": { + "/api/mediumCenter/applet/application/list": { "post": { - "description": "小程序设置-新增", + "description": "小程序应用-列表数据", "consumes": [ "application/json" ], @@ -1831,9 +1844,9 @@ "application/json" ], "tags": [ - "设置中心-小程序设置" + "媒体中心------嘉俊" ], - "summary": "新增", + "summary": "应用列表", "parameters": [ { "type": "string", @@ -1848,15 +1861,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletAddReq" + "$ref": "#/definitions/md.AppletApplicationListReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationListRes" } }, "400": { @@ -1868,9 +1881,9 @@ } } }, - "/api/setCenter/applet/authorize": { - "get": { - "description": "设置中心-基础设置", + "/api/mediumCenter/applet/application/medium/list": { + "post": { + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -1878,9 +1891,9 @@ "application/json" ], "tags": [ - "设置中心" + "媒体中心------嘉俊" ], - "summary": "设置中心-基础设置-微信三方应用获取", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -1888,13 +1901,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AppletApplicationMediumListReq" + } } ], "responses": { "200": { - "description": "微信授权界面url", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationMediumListRes" } }, "400": { @@ -1906,9 +1928,9 @@ } } }, - "/api/setCenter/applet/list": { - "get": { - "description": "小程序设置-列表", + "/api/mediumCenter/medium/bind/agent/del": { + "post": { + "description": "媒体中心-媒体绑定代理删除", "consumes": [ "application/json" ], @@ -1916,9 +1938,9 @@ "application/json" ], "tags": [ - "设置中心-小程序设置" + "媒体中心------嘉俊" ], - "summary": "列表", + "summary": "媒体绑定代理删除", "parameters": [ { "type": "string", @@ -1926,13 +1948,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumListDelReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "具体看返回内容 ", "schema": { - "$ref": "#/definitions/hdl.WxOpenThirdPartyAppList" + "type": "string" } }, "400": { @@ -1944,9 +1975,9 @@ } } }, - "/api/setCenter/applet/unauthorized": { - "get": { - "description": "设置中心-基础设置", + "/api/mediumCenter/medium/bind/agent/list": { + "post": { + "description": "媒体中心-媒体绑定代理列表", "consumes": [ "application/json" ], @@ -1954,9 +1985,9 @@ "application/json" ], "tags": [ - "设置中心" + "媒体中心------嘉俊" ], - "summary": "设置中心-基础设置-微信三方应用获取", + "summary": "媒体绑定代理列表", "parameters": [ { "type": "string", @@ -1964,13 +1995,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumListReq" + } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumListRes" } }, "400": { @@ -1982,9 +2022,9 @@ } } }, - "/api/setCenter/applet/update": { + "/api/mediumCenter/medium/bind/agent/save": { "post": { - "description": "小程序设置-更新", + "description": "媒体中心-媒体绑定代理操作", "consumes": [ "application/json" ], @@ -1992,9 +2032,9 @@ "application/json" ], "tags": [ - "设置中心-小程序设置" + "媒体中心------嘉俊" ], - "summary": "更新", + "summary": "媒体绑定代理操作", "parameters": [ { "type": "string", @@ -2009,13 +2049,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletUpdateReq" + "$ref": "#/definitions/md.MediumListSaveReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 ", "schema": { "type": "string" } @@ -2029,9 +2069,9 @@ } } }, - "/api/setCenter/basic/getMob": { - "get": { - "description": "基础设置-mob获取", + "/api/mediumCenter/medium/list": { + "post": { + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -2039,9 +2079,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体中心------嘉俊" ], - "summary": "mob获取", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -2049,13 +2089,22 @@ "name": "Authorization", "in": "header", "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/md.SetOssResp" + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" } }, "400": { @@ -2067,9 +2116,21 @@ } } }, - "/api/setCenter/basic/getOss": { - "get": { - "description": "基础设置-oss获取", + "/api/mediumQualification/bank": { + "post": { + "responses": { + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/mediumQualification/bank/audit": { + "post": { + "description": "媒体资质-银行资质审核", "consumes": [ "application/json" ], @@ -2077,9 +2138,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体资质------嘉俊" ], - "summary": "oss获取", + "summary": "银行资质审核", "parameters": [ { "type": "string", @@ -2087,13 +2148,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "具体看返回内容", "schema": { - "$ref": "#/definitions/md.SetOssResp" + "type": "string" } }, "400": { @@ -2105,9 +2175,9 @@ } } }, - "/api/setCenter/basic/setMob": { + "/api/mediumQualification/contact": { "post": { - "description": "基础设置-mob设置", + "description": "媒体资质-联系方式", "consumes": [ "application/json" ], @@ -2115,9 +2185,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体资质------嘉俊" ], - "summary": "mob设置", + "summary": "联系方式", "parameters": [ { "type": "string", @@ -2132,15 +2202,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SetMobReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumQualificationContactRes" } }, "400": { @@ -2152,9 +2222,9 @@ } } }, - "/api/setCenter/basic/setOss": { + "/api/mediumQualification/contact/audit": { "post": { - "description": "基础设置-oss设置", + "description": "媒体资质-联系方式审核", "consumes": [ "application/json" ], @@ -2162,9 +2232,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体资质------嘉俊" ], - "summary": "oss设置", + "summary": "联系方式审核", "parameters": [ { "type": "string", @@ -2179,13 +2249,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SetOssReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -2199,9 +2269,9 @@ } } }, - "/api/setCenter/basic/wxOpenGet": { - "get": { - "description": "基础设置-微信三方应用获取", + "/api/mediumQualification/enterprise": { + "post": { + "description": "媒体资质-主体资质", "consumes": [ "application/json" ], @@ -2209,9 +2279,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体资质------嘉俊" ], - "summary": "微信三方应用获取", + "summary": "主体资质", "parameters": [ { "type": "string", @@ -2219,13 +2289,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.WxOpenGetResp" + "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" } }, "400": { @@ -2237,9 +2316,9 @@ } } }, - "/api/setCenter/basic/wxOpenSet": { + "/api/mediumQualification/enterprise/audit": { "post": { - "description": "基础设置-微信三方应用设置", + "description": "媒体资质-主体资质审核", "consumes": [ "application/json" ], @@ -2247,9 +2326,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "媒体资质------嘉俊" ], - "summary": "微信三方应用设置", + "summary": "主体资质审核", "parameters": [ { "type": "string", @@ -2264,7 +2343,47 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.WxOpenSetReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/registerForAgent": { + "post": { + "description": "注册模块-渠道代理注册", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "注册模块" + ], + "summary": "渠道代理注册", + "parameters": [ + { + "description": "用户名密码", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.RegisterForAgentReq" } } ], @@ -2284,9 +2403,9 @@ } } }, - "/api/setCenter/share/index": { - "get": { - "description": "邀请链接界面接口", + "/api/registerForMedium": { + "post": { + "description": "注册模块-媒体注册", "consumes": [ "application/json" ], @@ -2294,9 +2413,49 @@ "application/json" ], "tags": [ - "设置中心-邀请链接" + "注册模块" ], - "summary": "邀请链接", + "summary": "媒体注册", + "parameters": [ + { + "description": "用户名密码", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.RegisterForMediumReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/addAdmin": { + "post": { + "description": "权限管理-新增管理员", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "权限管理" + ], + "summary": "新增管理员", "parameters": [ { "type": "string", @@ -2304,13 +2463,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AddAdminReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "success", "schema": { - "$ref": "#/definitions/md.ShareIndexResp" + "type": "string" } }, "400": { @@ -2322,9 +2490,9 @@ } } }, - "/role/permissionGroupList": { - "get": { - "description": "权限管理-权限组列表", + "/api/role/addRole": { + "post": { + "description": "权限管理-添加角色", "consumes": [ "application/json" ], @@ -2334,7 +2502,7 @@ "tags": [ "权限管理" ], - "summary": "权限组列表", + "summary": "添加角色", "parameters": [ { "type": "string", @@ -2344,16 +2512,18 @@ "required": true }, { - "type": "string", - "description": "管理员id", - "name": "adm_id", - "in": "query", - "required": true + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AddRoleReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "success", "schema": { "type": "string" } @@ -2367,9 +2537,9 @@ } } }, - "/v1/banner/delete/{$id}": { - "delete": { - "description": "小程序设置-删除", + "/api/role/adminInfo": { + "get": { + "description": "权限管理-管理员信息", "consumes": [ "application/json" ], @@ -2377,9 +2547,9 @@ "application/json" ], "tags": [ - "设置中心-小程序设置" + "权限管理" ], - "summary": "删除", + "summary": "管理员信息", "parameters": [ { "type": "string", @@ -2387,11 +2557,18 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "type": "string", + "description": "管理员id", + "name": "adm_id", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -2404,164 +2581,2423 @@ } } } - } - }, + }, + "/api/role/adminList": { + "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.AdminListReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/bindAdminRole/": { + "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.BindAdminRoleReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/deleteAdmin/{$adm_id}": { + "delete": { + "description": "权限管理-删除管理员", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "权限管理" + ], + "summary": "删除管理员", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/deleteRole/{$id}": { + "delete": { + "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.UpdateRoleStateReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/roleBindPermissionGroup": { + "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.RoleBindPermissionGroupReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/roleList": { + "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": "具体看返回内容", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/updateAdmin": { + "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.UpdateAdminReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/updateAdminState": { + "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.UpdateAdminStateReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/updateRole": { + "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.UpdateRoleReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/role/updateRoleState": { + "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.UpdateRoleStateReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/applet/add": { + "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.AppletAddReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/applet/authorize": { + "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": "微信授权界面url", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/applet/list": { + "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": "OK", + "schema": { + "$ref": "#/definitions/hdl.WxOpenThirdPartyAppList" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/applet/unauthorized": { + "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": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/applet/update": { + "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.AppletUpdateReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/getMob": { + "get": { + "description": "基础设置-mob获取", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "设置中心-基础设置" + ], + "summary": "mob获取", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/md.SetOssResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/getOss": { + "get": { + "description": "基础设置-oss获取", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "设置中心-基础设置" + ], + "summary": "oss获取", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/md.SetOssResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/setMob": { + "post": { + "description": "基础设置-mob设置", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "设置中心-基础设置" + ], + "summary": "mob设置", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.SetMobReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/setOss": { + "post": { + "description": "基础设置-oss设置", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "设置中心-基础设置" + ], + "summary": "oss设置", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.SetOssReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/wxOpenGet": { + "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": "OK", + "schema": { + "$ref": "#/definitions/md.WxOpenGetResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/basic/wxOpenSet": { + "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.WxOpenSetReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/setCenter/share/index": { + "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": "OK", + "schema": { + "$ref": "#/definitions/md.ShareIndexResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/agent/detail": { + "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.SettleCenterDataDetailReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/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.SettleCenterDataReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "$ref": "#/definitions/md.SettleCenterDataRes" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/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.SettleCenterDataSaveReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/medium/detail": { + "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.SettleCenterDataDetailReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/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.SettleCenterDataReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "$ref": "#/definitions/md.SettleCenterDataRes" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/settleCenter/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.SettleCenterDataSaveReq" + } + } + ], + "responses": { + "200": { + "description": "具体看返回内容 这是data里面的数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/role/permissionGroupList": { + "get": { + "description": "权限管理-权限组列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "权限管理" + ], + "summary": "权限组列表", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "管理员id", + "name": "adm_id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "具体看返回内容", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/v1/banner/delete/{$id}": { + "delete": { + "description": "小程序设置-删除", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "设置中心-小程序设置" + ], + "summary": "删除", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + } + }, "definitions": { "hdl.WxOpenThirdPartyAppList": { "type": "object", "properties": { - "aes_key": { + "aes_key": { + "type": "string" + }, + "app_secret": { + "type": "string" + }, + "appid": { + "type": "string" + }, + "component_access_token": { + "type": "string" + }, + "component_verify_ticket": { + "type": "string" + }, + "create_at": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "token": { + "type": "string" + }, + "update_at": { + "type": "string" + }, + "uuid": { + "type": "integer" + } + } + }, + "md.AddAdminReq": { + "type": "object", + "required": [ + "password", + "username" + ], + "properties": { + "memo": { + "type": "string" + }, + "password": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "md.AddRoleReq": { + "type": "object", + "required": [ + "memo", + "name" + ], + "properties": { + "memo": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "md.AdminListReq": { + "type": "object", + "properties": { + "limit": { + "type": "integer" + }, + "page": { + "type": "integer" + }, + "state": { + "type": "integer" + }, + "username": { + "type": "string" + } + } + }, + "md.AgentQualificationBankData": { + "type": "object", + "properties": { + "account": { + "type": "string", + "example": "账号" + }, + "agent_id": { + "type": "string", + "example": "代理id" + }, + "bank": { + "type": "string", + "example": "开户银行" + }, + "bank_branch": { + "type": "string", + "example": "开户银行分行" + }, + "bank_no": { + "type": "string", + "example": "银行卡号" + }, + "company_name": { + "type": "string", + "example": "公司名称" + }, + "currency_conf": { + "type": "string", + "example": "结算币种 0人民币" + }, + "id": { + "type": "string", + "example": "id" + }, + "kind": { + "type": "string", + "example": "类型(1:企业 2:个人)" + }, + "licence": { + "type": "string", + "example": "开户许可证" + }, + "memo": { + "type": "string", + "example": "备注 审核时填写的" + }, + "state": { + "type": "string", + "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + }, + "unified_social_credit_code": { + "type": "string", + "example": "统一社会信用代码" + } + } + }, + "md.AgentQualificationBankRes": { + "type": "object", + "properties": { + "currency_conf": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.AgentQualificationBankData" + } + }, + "state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "total": { + "type": "integer" + }, + "type": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + } + } + }, + "md.AgentQualificationContactData": { + "type": "object", + "properties": { + "account": { + "type": "string", + "example": "账号" + }, + "address": { + "type": "string", + "example": "联系地址" + }, + "agent_id": { + "type": "string", + "example": "代理id" + }, + "company_name": { + "type": "string", + "example": "公司名称" + }, + "email": { + "type": "string", + "example": "邮箱地址" + }, + "id": { + "type": "string", + "example": "id" + }, + "kind": { + "type": "string", + "example": "类型(1:企业 2:个人)" + }, + "memo": { + "type": "string", + "example": "备注 审核时填写的" + }, + "name": { + "type": "string", + "example": "联系人" + }, + "phone": { + "type": "string", + "example": "联系电话" + }, + "state": { + "type": "string", + "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + } + } + }, + "md.AgentQualificationContactRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.AgentQualificationContactData" + } + }, + "state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "total": { + "type": "integer" + } + } + }, + "md.AgentQualificationEnterpriseAuditReq": { + "type": "object", + "properties": { + "agent_id": { + "type": "string" + }, + "memo": { + "type": "string" + }, + "state": { + "type": "string" + } + } + }, + "md.AgentQualificationEnterpriseData": { + "type": "object", + "properties": { + "account": { + "type": "string", + "example": "账号" + }, + "agent_id": { + "type": "string", + "example": "代理id" + }, + "business_license_address": { + "type": "string", + "example": "营业执照地址" + }, + "business_license_img_url": { + "type": "string", + "example": "营业执照照片" + }, + "certificate_first_type": { + "type": "string", + "example": "证件类型 1级类目id" + }, + "certificate_type": { + "type": "string", + "example": "证件类型 2级类目id" + }, + "certificate_validity": { + "type": "string", + "example": "证件有效期" + }, + "company_abbreviation": { + "type": "string", + "example": "公司简称" + }, + "company_name": { + "type": "string", + "example": "公司名称" + }, + "country_region": { + "type": "string", + "example": "国家地区" + }, + "country_region_id": { + "type": "string", + "example": "国家地区id" + }, + "id": { + "type": "string", + "example": "状态选择" + }, + "kind": { + "type": "string", + "example": "类型(1:企业 2:个人)" + }, + "legal_representative": { + "type": "string", + "example": "法定代表人" + }, + "memo": { + "type": "string", + "example": "备注 审核时填写的" + }, + "registered_address": { + "type": "string", + "example": "注册地址" + }, + "registered_address_city_id": { + "type": "string", + "example": "注册地址-市id" + }, + "registered_address_country_id": { + "type": "string", + "example": "注册地址-国家id" + }, + "registered_address_county_id": { + "type": "string", + "example": "注册地址-县/区id" + }, + "registered_address_province_id": { + "type": "string", + "example": "册地址-省份id" + }, + "state": { + "type": "string", + "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + }, + "unified_social_credit_code": { + "type": "string", + "example": "统一社会信用代码" + }, + "uuid": { + "type": "string", + "example": "站长id" + } + } + }, + "md.AgentQualificationEnterpriseReq": { + "type": "object", + "properties": { + "limit": { + "type": "string" + }, + "name": { + "type": "string" + }, + "page": { + "type": "string" + }, + "state": { + "type": "string" + } + } + }, + "md.AgentQualificationEnterpriseRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.AgentQualificationEnterpriseData" + } + }, + "state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "total": { + "type": "integer" + }, + "type": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + } + } + }, + "md.AppletAddReq": { + "type": "object", + "required": [ + "appid", + "logo", + "name", + "original_id" + ], + "properties": { + "appid": { + "type": "string", + "example": "授权小程序appid" + }, + "logo": { + "type": "string", + "example": "小程序logo" + }, + "name": { + "type": "string", + "example": "小程序名称" + }, + "original_id": { + "type": "string", + "example": "授权小程序原始id" + } + } + }, + "md.AppletApplicationAdSpaceListData": { + "type": "object", + "properties": { + "ad_id": { + "type": "string", + "example": "广告位id" + }, + "app_id": { + "type": "string", + "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": { + "ad_type": { + "type": "string", + "example": "" + }, + "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" }, - "app_secret": { + "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", + "example": "小程序名称" + } + } + }, + "md.BindAdminRoleReq": { + "type": "object", + "required": [ + "adm_id" + ], + "properties": { + "adm_id": { + "type": "integer" + }, + "role_ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "md.CommDetailReq": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "列表id" + } + } + }, + "md.DataCenterDataCenterOriginalDataDoingReq": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "列表id" + }, + "now_ecpm": { + "type": "string", + "example": "现-广告千次曝光收益(元)" + }, + "now_exposure_count": { + "type": "string", + "example": "现-曝光量" + } + } + }, + "md.DataCenterGenerateDataCommReq": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "列表id" + } + } + }, + "md.DataCenterGenerateDataData": { + "type": "object", + "properties": { + "adv_name": { + "type": "string", + "example": "广告位" + }, + "agent_revenue": { + "type": "string", + "example": "代理收益(元)" + }, + "agreement_sharing": { + "type": "string", + "example": "协议分成(元)" + }, + "agreement_sharing_total": { + "type": "string", + "example": "协议总分成(元)" + }, + "click_count": { + "type": "string", + "example": "现-点击量" + }, + "click_rate": { + "type": "string", + "example": "现-点击率" + }, + "commission_retention": { + "type": "string", + "example": "佣金留存(元)" + }, + "date": { + "type": "string", + "example": "日期" + }, + "ecpm": { + "type": "string", + "example": "'现-ecpm(元)" + }, + "exposure_count": { + "type": "string", + "example": "现-曝光量" + }, + "extra_revenue": { + "type": "string", + "example": "额外收益(元)" + }, + "id": { + "type": "string", + "example": "id" + }, + "is_generate_report": { + "type": "string", + "example": "是否已生成报表(0:未 1:已)" + }, + "media_revenue": { + "type": "string", + "example": "媒体收益(元)" + }, + "name": { + "type": "string", + "example": "名称" }, - "appid": { - "type": "string" + "old_click_count": { + "type": "string", + "example": "原-点击量" }, - "component_access_token": { - "type": "string" + "old_click_rate": { + "type": "string", + "example": "原-点击率" }, - "component_verify_ticket": { - "type": "string" + "old_ecpm": { + "type": "string", + "example": "'原-ecpm(元)" }, - "create_at": { - "type": "string" + "old_exposure_count": { + "type": "string", + "example": "原-曝光量" }, - "id": { - "type": "integer" + "platform": { + "type": "string", + "example": "平台名称" }, - "token": { - "type": "string" + "platform_retention": { + "type": "string", + "example": "平台留存(元)" }, - "update_at": { - "type": "string" + "price_adjustment_retention": { + "type": "string", + "example": "调价留存(元)" }, - "uuid": { - "type": "integer" + "state": { + "type": "string", + "example": "状态id" } } }, - "md.AddAdminReq": { + "md.DataCenterGenerateDataDetailAgentReward": { "type": "object", - "required": [ - "password", - "username" - ], "properties": { - "memo": { + "account": { "type": "string" }, - "password": { - "type": "string" + "agent_revenue": { + "type": "string", + "example": "代理收益(元)" }, - "username": { - "type": "string" - } - } - }, - "md.AddRoleReq": { - "type": "object", - "required": [ - "memo", - "name" - ], - "properties": { - "memo": { - "type": "string" + "agent_revenue_rate": { + "type": "string", + "example": "代理收益百分比" + }, + "extra_revenue": { + "type": "string", + "example": "额外收益(元)" + }, + "extra_revenue_rate": { + "type": "string", + "example": "'额外收益百分比" }, "name": { "type": "string" } } }, - "md.AdminListReq": { + "md.DataCenterGenerateDataDetailAgentRewardSecond": { "type": "object", "properties": { - "limit": { - "type": "integer" + "account": { + "type": "string" }, - "page": { - "type": "integer" + "agent_revenue": { + "type": "string", + "example": "代理收益(元)" }, - "state": { - "type": "integer" + "agent_revenue_rate": { + "type": "string", + "example": "代理收益百分比" }, - "username": { + "name": { "type": "string" } } }, - "md.AgentQualificationBankData": { + "md.DataCenterGenerateDataDetailData": { "type": "object", "properties": { - "account": { + "agent_revenue_rate": { "type": "string", - "example": "账号" + "example": "代理收益百分比" }, - "agent_id": { - "type": "string", - "example": "代理id" + "agent_reward": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DataCenterGenerateDataDetailAgentReward" + } }, - "bank": { + "agreement_sharing_rate": { "type": "string", - "example": "开户银行" + "example": "协议分成百分比" }, - "bank_branch": { + "commission_retention_rate": { "type": "string", - "example": "开户银行分行" + "example": "佣金留存百分比" }, - "bank_no": { - "type": "string", - "example": "银行卡号" + "create_at": { + "type": "string" }, - "company_name": { + "extra_revenue_rate": { "type": "string", - "example": "公司名称" + "example": "额外收益百分比" }, - "currency_conf": { + "media_revenue_rate": { "type": "string", - "example": "结算币种 0人民币" + "example": "媒体收益百分比" }, - "id": { + "platform_retention_rate": { "type": "string", - "example": "id" + "example": "平台留存百分比" }, - "kind": { - "type": "string", - "example": "类型(1:企业 2:个人)" + "update_at": { + "type": "string" + } + } + }, + "md.DataCenterGenerateDataReq": { + "type": "object", + "properties": { + "end_time": { + "type": "string" }, - "licence": { - "type": "string", - "example": "开户许可证" + "limit": { + "type": "string" }, - "memo": { - "type": "string", - "example": "备注 审核时填写的" + "name": { + "type": "string" }, - "state": { - "type": "string", - "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + "page": { + "type": "string" }, - "unified_social_credit_code": { - "type": "string", - "example": "统一社会信用代码" + "platform": { + "type": "string" + }, + "start_time": { + "type": "string" + }, + "state": { + "type": "string" } } }, - "md.AgentQualificationBankRes": { + "md.DataCenterGenerateDataRes": { "type": "object", "properties": { - "currency_conf": { + "list": { "type": "array", "items": { - "$ref": "#/definitions/md.SelectData" + "$ref": "#/definitions/md.DataCenterGenerateDataData" } }, - "list": { + "platform": { "type": "array", "items": { - "$ref": "#/definitions/md.AgentQualificationBankData" + "$ref": "#/definitions/md.SelectData" } }, "state": { @@ -2572,71 +5008,136 @@ }, "total": { "type": "integer" - }, - "type": { - "type": "array", - "items": { - "$ref": "#/definitions/md.SelectData" - } } } }, - "md.AgentQualificationContactData": { + "md.DataCenterIncomeDataData": { "type": "object", "properties": { - "account": { + "adv_name": { "type": "string", - "example": "账号" + "example": "广告位" }, - "address": { + "agent_revenue": { "type": "string", - "example": "联系地址" + "example": "代理收益(元)" }, - "agent_id": { + "agreement_sharing": { "type": "string", - "example": "代理id" + "example": "平台收益(元)" }, - "company_name": { + "click_count": { "type": "string", - "example": "公司名称" + "example": "现-点击量" }, - "email": { + "click_rate": { "type": "string", - "example": "邮箱地址" + "example": "现-点击率" + }, + "date": { + "type": "string", + "example": "日期" + }, + "ecpm": { + "type": "string", + "example": "'现-ecpm(元)" + }, + "exposure_count": { + "type": "string", + "example": "现-曝光量" }, "id": { "type": "string", "example": "id" }, - "kind": { + "media_revenue": { "type": "string", - "example": "类型(1:企业 2:个人)" + "example": "媒体收益(元)" }, - "memo": { + "name": { "type": "string", - "example": "备注 审核时填写的" + "example": "名称" }, - "name": { + "platform": { "type": "string", - "example": "联系人" + "example": "平台名称" }, - "phone": { + "settle_amount": { "type": "string", - "example": "联系电话" + "example": "结算收益(元)" }, "state": { "type": "string", - "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + "example": "状态id" } } }, - "md.AgentQualificationContactRes": { + "md.DataCenterIncomeDataDetail": { + "type": "object", + "properties": { + "agent_revenue": { + "type": "string", + "example": "代理收益(元)" + }, + "agent_revenue_rate": { + "type": "string", + "example": "代理收益百分比" + }, + "agent_reward": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DataCenterGenerateDataDetailAgentRewardSecond" + } + }, + "agreement_sharing": { + "type": "string", + "example": "平台收益(元)" + }, + "agreement_sharing_rate": { + "type": "string", + "example": "平台收益百分比" + }, + "create_at": { + "type": "string" + }, + "data_source": { + "type": "string", + "example": "数据来源" + }, + "media_revenue": { + "type": "string", + "example": "媒体收益(元)" + }, + "media_revenue_rate": { + "type": "string", + "example": "媒体收益百分比" + }, + "medium_name": { + "type": "string", + "example": "媒体名称" + }, + "platform": { + "type": "string", + "example": "填充来源" + }, + "update_at": { + "type": "string" + } + } + }, + "md.DataCenterIncomeDataRes": { "type": "object", "properties": { "list": { "type": "array", "items": { - "$ref": "#/definitions/md.AgentQualificationContactData" + "$ref": "#/definitions/md.DataCenterIncomeDataData" + } + }, + "platform": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" } }, "state": { @@ -2650,118 +5151,109 @@ } } }, - "md.AgentQualificationEnterpriseAuditReq": { + "md.DataCenterOriginalDataCommReq": { "type": "object", "properties": { - "agent_id": { - "type": "string" - }, - "memo": { - "type": "string" - }, - "state": { - "type": "string" + "id": { + "type": "string", + "example": "列表id" } } }, - "md.AgentQualificationEnterpriseData": { + "md.DataCenterOriginalDataData": { "type": "object", "properties": { - "account": { - "type": "string", - "example": "账号" - }, - "agent_id": { - "type": "string", - "example": "代理id" - }, - "business_license_address": { - "type": "string", - "example": "营业执照地址" - }, - "business_license_img_url": { + "adv_name": { "type": "string", - "example": "营业执照照片" - }, - "certificate_first_type": { - "type": "string", - "example": "证件类型 1级类目id" + "example": "广告位" }, - "certificate_type": { + "click_count": { "type": "string", - "example": "证件类型 2级类目id" + "example": "点击量" }, - "certificate_validity": { + "click_rate": { "type": "string", - "example": "证件有效期" + "example": "点击率" }, - "company_abbreviation": { + "date": { "type": "string", - "example": "公司简称" + "example": "日期" }, - "company_name": { + "ecpm": { "type": "string", - "example": "公司名称" + "example": "'ecpm(元)" }, - "country_region": { + "exposure_count": { "type": "string", - "example": "国家地区" + "example": "曝光量" }, - "country_region_id": { + "exposure_rate": { "type": "string", - "example": "国家地区id" + "example": "曝光率" }, "id": { "type": "string", - "example": "状态选择" + "example": "id" }, - "kind": { + "is_apply": { "type": "string", - "example": "类型(1:企业 2:个人)" + "example": "是否已应用" }, - "legal_representative": { + "name": { "type": "string", - "example": "法定代表人" + "example": "名称" }, - "memo": { + "platform": { "type": "string", - "example": "备注 审核时填写的" + "example": "平台名称" }, - "registered_address": { + "publisher_income": { "type": "string", - "example": "注册地址" + "example": "总收益(元)" }, - "registered_address_city_id": { + "req_succ_count": { "type": "string", - "example": "注册地址-市id" + "example": "拉取量" }, - "registered_address_country_id": { + "state": { "type": "string", - "example": "注册地址-国家id" + "example": "状态id" + } + } + }, + "md.DataCenterOriginalDataMoreApplicationData": { + "type": "object", + "properties": { + "ad_id": { + "type": "string", + "example": "广告位id" }, - "registered_address_county_id": { + "adv_name": { "type": "string", - "example": "注册地址-县/区id" + "example": "广告位" }, - "registered_address_province_id": { + "app_id": { "type": "string", - "example": "册地址-省份id" + "example": "小程序id" }, - "state": { + "id": { "type": "string", - "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + "example": "id" }, - "unified_social_credit_code": { + "logo": { + "type": "string" + }, + "name": { "type": "string", - "example": "统一社会信用代码" + "example": "名称" }, - "uuid": { + "state": { "type": "string", - "example": "站长id" + "example": "状态id" } } }, - "md.AgentQualificationEnterpriseReq": { + "md.DataCenterOriginalDataMoreApplicationReq": { "type": "object", "properties": { "limit": { @@ -2772,19 +5264,16 @@ }, "page": { "type": "string" - }, - "state": { - "type": "string" } } }, - "md.AgentQualificationEnterpriseRes": { + "md.DataCenterOriginalDataMoreApplicationRes": { "type": "object", "properties": { "list": { "type": "array", "items": { - "$ref": "#/definitions/md.AgentQualificationEnterpriseData" + "$ref": "#/definitions/md.DataCenterOriginalDataMoreApplicationData" } }, "state": { @@ -2795,8 +5284,48 @@ }, "total": { "type": "integer" + } + } + }, + "md.DataCenterOriginalDataOneApplicationAdListData": { + "type": "object", + "properties": { + "ad_id": { + "type": "string", + "example": "广告位id" }, - "type": { + "id": { + "type": "string", + "example": "id" + }, + "name": { + "type": "string", + "example": "名称" + }, + "state": { + "type": "string", + "example": "状态id" + } + } + }, + "md.DataCenterOriginalDataOneApplicationAdListReq": { + "type": "object", + "properties": { + "app_id": { + "type": "string" + } + } + }, + "md.DataCenterOriginalDataOneApplicationAdListRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationAdListData" + } + }, + "state": { "type": "array", "items": { "$ref": "#/definitions/md.SelectData" @@ -2804,92 +5333,101 @@ } } }, - "md.AppletAddReq": { + "md.DataCenterOriginalDataOneApplicationData": { "type": "object", - "required": [ - "appid", - "logo", - "name", - "original_id" - ], "properties": { - "appid": { + "app_id": { "type": "string", - "example": "授权小程序appid" + "example": "小程序id" }, - "logo": { + "id": { "type": "string", - "example": "小程序logo" + "example": "id" }, - "name": { - "type": "string", - "example": "小程序名称" + "logo": { + "type": "string" }, - "original_id": { + "name": { "type": "string", - "example": "授权小程序原始id" + "example": "名称" } } }, - "md.AppletApplicationAdSpaceListData": { + "md.DataCenterOriginalDataOneApplicationDoingReq": { "type": "object", "properties": { "ad_id": { - "type": "string", - "example": "广告位id" + "type": "string" }, "app_id": { + "type": "string" + }, + "date": { "type": "string", - "example": "小程序appid" + "example": "2024-08-28" + } + } + }, + "md.DataCenterOriginalDataOneApplicationDoingRes": { + "type": "object", + "properties": { + "ad_id": { + "type": "string" }, - "cooperate_state": { + "ad_slot": { "type": "string", - "example": "合作状态" + "example": "广告位类型名称" }, - "id": { + "click_count": { "type": "string", - "example": "id" + "example": "点击量" }, - "kind": { + "click_rate": { "type": "string", - "example": "广告位类型" + "example": "点击率" }, - "logo": { + "ecpm": { "type": "string", - "example": "logo" + "example": "ecpm(元)" }, - "memo": { + "exposure_count": { "type": "string", - "example": "备注" + "example": "曝光量" }, - "name": { + "exposure_rate": { "type": "string", - "example": "应用名称" + "example": "曝光率" }, - "platform": { + "publisher_income": { "type": "string", - "example": "平台" + "example": "总收益(元)" }, - "state": { + "req_succ_count": { "type": "string", - "example": "应用状态 state=2 才能再次编辑" + "example": "拉取量" } } }, - "md.AppletApplicationAdSpaceListReq": { + "md.DataCenterOriginalDataOneApplicationRes": { "type": "object", "properties": { - "cooperate_state": { - "type": "string", - "example": "合作状态" + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationData" + } + } + } + }, + "md.DataCenterOriginalDataReq": { + "type": "object", + "properties": { + "end_time": { + "type": "string" }, "limit": { "type": "string" }, - "medium_id": { - "type": "string", - "example": "媒体id" - }, "name": { "type": "string" }, @@ -2898,28 +5436,22 @@ }, "platform": { "type": "string" + }, + "start_time": { + "type": "string" + }, + "state": { + "type": "string" } } }, - "md.AppletApplicationAdSpaceListRes": { + "md.DataCenterOriginalDataRes": { "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" + "$ref": "#/definitions/md.DataCenterOriginalDataData" } }, "platform": { @@ -2939,25 +5471,37 @@ } } }, - "md.AppletApplicationAdSpaceMediumListData": { + "md.DivisionStrategyData": { "type": "object", "properties": { "account": { "type": "string", "example": "账号" }, - "contact_name": { + "agent_revenue_rate": { "type": "string", - "example": "联系人" + "example": "代理收益百分比" }, - "count": { + "agreement_sharing_rate": { "type": "string", - "example": "广告位数量" + "example": "协议分成百分比" + }, + "commission_retention_rate": { + "type": "string", + "example": "佣金留存百分比" + }, + "extra_revenue_rate": { + "type": "string", + "example": "额外收益百分比" }, "id": { "type": "string", "example": "id" }, + "media_revenue_rate": { + "type": "string", + "example": "媒体收益百分比" + }, "medium_id": { "type": "string", "example": "媒体id" @@ -2966,153 +5510,113 @@ "type": "string", "example": "名称" }, - "phone": { + "platform_retention_rate": { "type": "string", - "example": "联系电话" + "example": "平台留存百分比" } } }, - "md.AppletApplicationAdSpaceMediumListReq": { + "md.DivisionStrategyDetailByAgent": { "type": "object", "properties": { "account": { "type": "string", - "example": "媒体账号" + "example": "账号" }, - "limit": { - "type": "string" + "agent_id": { + "type": "string", + "example": "代理id" }, - "name": { + "agent_revenue_rate": { "type": "string", - "example": "媒体名称" + "example": "佣金比例" }, - "page": { - "type": "string" - } - } - }, - "md.AppletApplicationAdSpaceMediumListRes": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListData" - } + "extra_revenue_rate": { + "type": "string", + "example": "额外奖励" }, - "total": { - "type": "integer" + "name": { + "type": "string", + "example": "名称" } } }, - "md.AppletApplicationAdSpaceSaveReq": { + "md.DivisionStrategyDetailReq": { "type": "object", "properties": { - "id": { - "type": "string", - "example": "id 多个逗号隔开" - }, - "memo": { - "type": "string", - "example": "备注" - }, - "state": { - "type": "string", - "example": "审核状态" + "medium_id": { + "type": "string" } } }, - "md.AppletApplicationListData": { + "md.DivisionStrategyDetailRes": { "type": "object", "properties": { - "app_id": { + "account": { "type": "string", - "example": "小程序appid" + "example": "账号" }, - "cooperate_state": { + "agent_list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DivisionStrategyDetailByAgent" + } + }, + "agent_revenue_rate": { "type": "string", - "example": "合作状态" + "example": "代理收益百分比" }, - "id": { + "agreement_sharing_rate": { "type": "string", - "example": "id" + "example": "协议分成百分比" }, - "logo": { + "commission_retention_rate": { "type": "string", - "example": "logo" + "example": "佣金留存百分比" }, - "memo": { + "extra_revenue_rate": { "type": "string", - "example": "备注" + "example": "额外收益百分比" }, - "name": { + "media_revenue_rate": { "type": "string", - "example": "应用名称" + "example": "媒体收益百分比" }, - "original_id": { + "medium_id": { "type": "string", - "example": "小程序id" + "example": "媒体id" }, - "platform": { + "name": { "type": "string", - "example": "平台" + "example": "名称" }, - "state": { + "platform_retention_rate": { "type": "string", - "example": "应用状态 state=3 才能再次编辑" + "example": "平台留存百分比" } } }, - "md.AppletApplicationListReq": { + "md.DivisionStrategyReq": { "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": { + "md.DivisionStrategyRes": { "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" + "$ref": "#/definitions/md.DivisionStrategyData" } }, "total": { @@ -3120,65 +5624,118 @@ } } }, - "md.AppletApplicationMediumListData": { + "md.FinanceCenterDataData": { "type": "object", "properties": { - "account": { + "all_income": { "type": "string", - "example": "账号" + "example": "合计收益" }, - "contact_name": { + "change_income": { "type": "string", - "example": "联系人" + "example": "调价留存" }, - "count": { + "commission_income": { "type": "string", - "example": "应用数量" + "example": "佣金留存" }, "id": { - "type": "string", - "example": "id" + "type": "string" }, - "medium_id": { + "label": { + "type": "string" + }, + "medium_income": { "type": "string", - "example": "媒体id" + "example": "媒体结算" }, "name": { "type": "string", - "example": "名称" + "example": "媒体名称" }, - "phone": { + "other_income": { "type": "string", - "example": "联系电话" + "example": "其他调整" + }, + "pay_state": { + "type": "string", + "example": "结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)" + }, + "platform_income": { + "type": "string", + "example": "平台留存" + }, + "settle_type": { + "type": "string", + "example": "结算单类型(1:日结 2:周结 3:月结 4:预付)" + }, + "state": { + "type": "string", + "example": "结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)" + }, + "time_str": { + "type": "string", + "example": "业务时间" + }, + "top_income": { + "type": "string", + "example": "上游结算" } } }, - "md.AppletApplicationMediumListReq": { + "md.FinanceCenterDataReq": { "type": "object", "properties": { - "account": { - "type": "string", - "example": "媒体账号" + "end_time": { + "type": "string" }, "limit": { "type": "string" }, - "name": { - "type": "string", - "example": "媒体名称" - }, "page": { "type": "string" + }, + "pay_state": { + "type": "string", + "example": "读 settle_pay_state返回的" + }, + "start_time": { + "type": "string", + "example": "2024-08-29" } } }, - "md.AppletApplicationMediumListRes": { + "md.FinanceCenterDataRes": { "type": "object", "properties": { + "business_kind": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, "list": { "type": "array", "items": { - "$ref": "#/definitions/md.AppletApplicationMediumListData" + "$ref": "#/definitions/md.FinanceCenterDataData" + } + }, + "settle_pay_state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "settle_state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "settle_type": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" } }, "total": { @@ -3186,58 +5743,34 @@ } } }, - "md.AppletApplicationSaveReq": { + "md.InvoiceFile": { "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" + "example": "0待确认 1审核通过 2审核失败" }, - "name": { - "type": "string", - "example": "小程序名称" + "url": { + "type": "string" } } }, - "md.BindAdminRoleReq": { + "md.InvoiceReq": { "type": "object", - "required": [ - "adm_id" - ], "properties": { - "adm_id": { - "type": "integer" - }, - "role_ids": { + "file": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/md.InvoiceFile" } + }, + "id": { + "type": "string", + "example": "列表id" + }, + "state": { + "type": "string", + "example": "1审核通过 2审核失败" } } }, @@ -3594,6 +6127,19 @@ } } }, + "md.OtherIncomeReq": { + "type": "object", + "properties": { + "amount": { + "type": "string", + "example": "其他收益" + }, + "id": { + "type": "string", + "example": "列表id" + } + } + }, "md.QiNiuBucketRegion": { "type": "object", "properties": { @@ -3762,6 +6308,111 @@ } } }, + "md.SettleCenterDataData": { + "type": "object", + "properties": { + "account": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "settle_type": { + "type": "string" + }, + "update_at": { + "type": "string" + } + } + }, + "md.SettleCenterDataDetailReq": { + "type": "object", + "properties": { + "end_time": { + "type": "string" + }, + "id": { + "type": "string" + }, + "limit": { + "type": "string" + }, + "page": { + "type": "string" + }, + "start_time": { + "type": "string", + "example": "2024-08-29" + } + } + }, + "md.SettleCenterDataReq": { + "type": "object", + "properties": { + "account": { + "type": "string" + }, + "limit": { + "type": "string" + }, + "name": { + "type": "string" + }, + "page": { + "type": "string" + }, + "state": { + "type": "string" + } + } + }, + "md.SettleCenterDataRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SettleCenterDataData" + } + }, + "state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "total": { + "type": "integer" + } + } + }, + "md.SettleCenterDataSaveReq": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "settle_type": { + "type": "string" + } + } + }, + "md.SettleFileReq": { + "type": "object", + "properties": { + "file": { + "type": "string", + "example": "七牛云链接 带http" + }, + "id": { + "type": "string", + "example": "列表id" + } + } + }, "md.ShareIndexResp": { "type": "object", "properties": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 9c50709..cda70da 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -331,6 +331,9 @@ definitions: type: object md.AppletApplicationAdSpaceListReq: properties: + ad_type: + example: "" + type: string cooperate_state: example: 合作状态 type: string @@ -581,65 +584,166 @@ definitions: required: - adm_id type: object - md.LoginReq: + md.CommDetailReq: properties: - code: - example: 验证码 + id: + example: 列表id type: string - password: - example: 登录密码 + type: object + md.DataCenterDataCenterOriginalDataDoingReq: + properties: + id: + example: 列表id type: string - username: - example: 登录账号 + now_ecpm: + example: 现-广告千次曝光收益(元) + type: string + now_exposure_count: + example: 现-曝光量 type: string - required: - - password - - username type: object - md.LoginResponse: + md.DataCenterGenerateDataCommReq: properties: - token: + id: + example: 列表id type: string type: object - md.MediumListData: + md.DataCenterGenerateDataData: properties: - account: - example: 媒体账号 + adv_name: + example: 广告位 type: string - business_license_address: - example: 营业执照地址 + agent_revenue: + example: 代理收益(元) type: string - company_name: - example: 公司名称 + agreement_sharing: + example: 协议分成(元) + type: string + agreement_sharing_total: + example: 协议总分成(元) + type: string + click_count: + example: 现-点击量 + type: string + click_rate: + example: 现-点击率 + type: string + commission_retention: + example: 佣金留存(元) + type: string + date: + example: 日期 + type: string + ecpm: + example: '''现-ecpm(元)' + type: string + exposure_count: + example: 现-曝光量 + type: string + extra_revenue: + example: 额外收益(元) type: string id: example: id type: string - legal_representative: - example: 法定代表人 + is_generate_report: + example: 是否已生成报表(0:未 1:已) type: string - medium_id: - example: 媒体id + media_revenue: + example: 媒体收益(元) type: string - memo: - example: 备注 审核时填写的 + name: + example: 名称 + type: string + old_click_count: + example: 原-点击量 + type: string + old_click_rate: + example: 原-点击率 + type: string + old_ecpm: + example: '''原-ecpm(元)' + type: string + old_exposure_count: + example: 原-曝光量 + type: string + platform: + example: 平台名称 + type: string + platform_retention: + example: 平台留存(元) + type: string + price_adjustment_retention: + example: 调价留存(元) type: string state: - example: 状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝) + example: 状态id type: string - unified_social_credit_code: - example: 统一社会信用代码 + type: object + md.DataCenterGenerateDataDetailAgentReward: + properties: + account: + type: string + agent_revenue: + example: 代理收益(元) + type: string + agent_revenue_rate: + example: 代理收益百分比 + type: string + extra_revenue: + example: 额外收益(元) + type: string + extra_revenue_rate: + example: '''额外收益百分比' + type: string + name: type: string type: object - md.MediumListDelReq: + md.DataCenterGenerateDataDetailAgentRewardSecond: properties: - id: - example: 列表id + account: + type: string + agent_revenue: + example: 代理收益(元) + type: string + agent_revenue_rate: + example: 代理收益百分比 + type: string + name: type: string type: object - md.MediumListReq: + md.DataCenterGenerateDataDetailData: properties: - id: + agent_revenue_rate: + example: 代理收益百分比 + type: string + agent_reward: + items: + $ref: '#/definitions/md.DataCenterGenerateDataDetailAgentReward' + type: array + agreement_sharing_rate: + example: 协议分成百分比 + type: string + commission_retention_rate: + example: 佣金留存百分比 + type: string + create_at: + type: string + extra_revenue_rate: + example: 额外收益百分比 + type: string + media_revenue_rate: + example: 媒体收益百分比 + type: string + platform_retention_rate: + example: 平台留存百分比 + type: string + update_at: + type: string + type: object + md.DataCenterGenerateDataReq: + properties: + end_time: type: string limit: type: string @@ -647,14 +751,22 @@ definitions: type: string page: type: string + platform: + type: string + start_time: + type: string state: type: string type: object - md.MediumListRes: + md.DataCenterGenerateDataRes: properties: list: items: - $ref: '#/definitions/md.MediumListData' + $ref: '#/definitions/md.DataCenterGenerateDataData' + type: array + platform: + items: + $ref: '#/definitions/md.SelectData' type: array state: items: @@ -663,54 +775,98 @@ definitions: total: type: integer type: object - md.MediumListSaveReq: + md.DataCenterIncomeDataData: properties: - medium_id: + adv_name: + example: 广告位 type: string - username: + agent_revenue: + example: 代理收益(元) type: string - type: object - md.MediumQualificationContactData: - properties: - account: - example: 账号 + agreement_sharing: + example: 平台收益(元) type: string - address: - example: 联系地址 + click_count: + example: 现-点击量 type: string - company_name: - example: 公司名称 + click_rate: + example: 现-点击率 type: string - email: - example: 邮箱地址 + date: + example: 日期 type: string - id: - example: id + ecpm: + example: '''现-ecpm(元)' type: string - kind: - example: 类型(1:企业 2:个人) + exposure_count: + example: 现-曝光量 type: string - medium_id: - example: 代理id + id: + example: id type: string - memo: - example: 备注 审核时填写的 + media_revenue: + example: 媒体收益(元) type: string name: - example: 联系人 + example: 名称 type: string - phone: - example: 联系电话 + platform: + example: 平台名称 + type: string + settle_amount: + example: 结算收益(元) type: string state: - example: 状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝) + example: 状态id type: string type: object - md.MediumQualificationContactRes: + md.DataCenterIncomeDataDetail: + properties: + agent_revenue: + example: 代理收益(元) + type: string + agent_revenue_rate: + example: 代理收益百分比 + type: string + agent_reward: + items: + $ref: '#/definitions/md.DataCenterGenerateDataDetailAgentRewardSecond' + type: array + agreement_sharing: + example: 平台收益(元) + type: string + agreement_sharing_rate: + example: 平台收益百分比 + type: string + create_at: + type: string + data_source: + example: 数据来源 + type: string + media_revenue: + example: 媒体收益(元) + type: string + media_revenue_rate: + example: 媒体收益百分比 + type: string + medium_name: + example: 媒体名称 + type: string + platform: + example: 填充来源 + type: string + update_at: + type: string + type: object + md.DataCenterIncomeDataRes: properties: list: items: - $ref: '#/definitions/md.MediumQualificationContactData' + $ref: '#/definitions/md.DataCenterIncomeDataData' + type: array + platform: + items: + $ref: '#/definitions/md.SelectData' type: array state: items: @@ -719,88 +875,81 @@ definitions: total: type: integer type: object - md.MediumQualificationEnterpriseAuditReq: + md.DataCenterOriginalDataCommReq: properties: - medium_id: - type: string - memo: - type: string - state: + id: + example: 列表id type: string type: object - md.MediumQualificationEnterpriseData: + md.DataCenterOriginalDataData: properties: - account: - example: 账号 + adv_name: + example: 广告位 type: string - business_license_address: - example: 营业执照地址 + click_count: + example: 点击量 type: string - business_license_img_url: - example: 营业执照照片 + click_rate: + example: 点击率 type: string - certificate_first_type: - example: 证件类型 1级类目id + date: + example: 日期 type: string - certificate_type: - example: 证件类型 2级类目id + ecpm: + example: '''ecpm(元)' type: string - certificate_validity: - example: 证件有效期 + exposure_count: + example: 曝光量 type: string - company_abbreviation: - example: 公司简称 + exposure_rate: + example: 曝光率 type: string - company_name: - example: 公司名称 + id: + example: id type: string - country_region: - example: 国家地区 + is_apply: + example: 是否已应用 type: string - country_region_id: - example: 国家地区id + name: + example: 名称 type: string - id: - example: 状态选择 + platform: + example: 平台名称 type: string - kind: - example: 类型(1:企业 2:个人) + publisher_income: + example: 总收益(元) type: string - legal_representative: - example: 法定代表人 + req_succ_count: + example: 拉取量 type: string - medium_id: - example: 代理id + state: + example: 状态id type: string - memo: - example: 备注 审核时填写的 + type: object + md.DataCenterOriginalDataMoreApplicationData: + properties: + ad_id: + example: 广告位id type: string - registered_address: - example: 注册地址 + adv_name: + example: 广告位 type: string - registered_address_city_id: - example: 注册地址-市id + app_id: + example: 小程序id type: string - registered_address_country_id: - example: 注册地址-国家id + id: + example: id type: string - registered_address_county_id: - example: 注册地址-县/区id + logo: type: string - registered_address_province_id: - example: 册地址-省份id + name: + example: 名称 type: string state: - example: 状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝) - type: string - unified_social_credit_code: - example: 统一社会信用代码 - type: string - uuid: - example: 站长id + example: 状态id type: string type: object - md.MediumQualificationEnterpriseReq: + md.DataCenterOriginalDataMoreApplicationReq: properties: limit: type: string @@ -808,14 +957,12 @@ definitions: type: string page: type: string - state: - type: string type: object - md.MediumQualificationEnterpriseRes: + md.DataCenterOriginalDataMoreApplicationRes: properties: list: items: - $ref: '#/definitions/md.MediumQualificationEnterpriseData' + $ref: '#/definitions/md.DataCenterOriginalDataMoreApplicationData' type: array state: items: @@ -823,255 +970,1713 @@ definitions: type: array total: type: integer - type: - items: - $ref: '#/definitions/md.SelectData' - type: array type: object - md.QiNiuBucketRegion: + md.DataCenterOriginalDataOneApplicationAdListData: properties: - region_domain: - example: 区域域名 + ad_id: + example: 广告位id type: string - region_id: - example: 区域id + id: + example: id type: string - region_name: - example: 区域名称 + name: + example: 名称 + type: string + state: + example: 状态id type: string type: object - md.RegisterForAgentReq: + md.DataCenterOriginalDataOneApplicationAdListReq: properties: - code: - example: 验证码 + app_id: type: string - password: - example: 登录密码 + type: object + md.DataCenterOriginalDataOneApplicationAdListRes: + properties: + list: + items: + $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationAdListData' + type: array + state: + items: + $ref: '#/definitions/md.SelectData' + type: array + type: object + md.DataCenterOriginalDataOneApplicationData: + properties: + app_id: + example: 小程序id type: string - phone: - example: 登录账号 + id: + example: id + type: string + logo: + type: string + name: + example: 名称 type: string - required: - - password - - phone type: object - md.RegisterForMediumReq: + md.DataCenterOriginalDataOneApplicationDoingReq: properties: - code: - example: 验证码 + ad_id: type: string - password: - example: 登录密码 + app_id: type: string - phone: - example: 登录账号 + date: + example: "2024-08-28" type: string - required: - - password - - phone type: object - md.Response: + md.DataCenterOriginalDataOneApplicationDoingRes: properties: - code: - example: 响应码 + ad_id: type: string - data: - description: 内容 - msg: - example: 具体错误原因 + ad_slot: + example: 广告位类型名称 + type: string + click_count: + example: 点击量 + type: string + click_rate: + example: 点击率 + type: string + ecpm: + example: ecpm(元) + type: string + exposure_count: + example: 曝光量 + type: string + exposure_rate: + example: 曝光率 + type: string + publisher_income: + example: 总收益(元) + type: string + req_succ_count: + example: 拉取量 type: string type: object - md.RoleBindPermissionGroupReq: + md.DataCenterOriginalDataOneApplicationRes: properties: - permission_ids: + list: items: - type: integer + $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationData' type: array - role_id: - type: integer - required: - - role_id type: object - md.SelectData: + md.DataCenterOriginalDataReq: properties: + end_time: + type: string + limit: + type: string name: - example: 名称 type: string - value: - example: 值 + page: + type: string + platform: + type: string + start_time: + type: string + state: type: string type: object - md.SetMobReq: + md.DataCenterOriginalDataRes: properties: - mob_app_key: + list: + items: + $ref: '#/definitions/md.DataCenterOriginalDataData' + type: array + platform: + items: + $ref: '#/definitions/md.SelectData' + type: array + state: + items: + $ref: '#/definitions/md.SelectData' + type: array + total: + type: integer + type: object + md.DivisionStrategyData: + properties: + account: + example: 账号 type: string - mob_app_secret: + agent_revenue_rate: + example: 代理收益百分比 + type: string + agreement_sharing_rate: + example: 协议分成百分比 + type: string + commission_retention_rate: + example: 佣金留存百分比 + type: string + extra_revenue_rate: + example: 额外收益百分比 + type: string + id: + example: id + type: string + media_revenue_rate: + example: 媒体收益百分比 + type: string + medium_id: + example: 媒体id + type: string + name: + example: 名称 + type: string + platform_retention_rate: + example: 平台留存百分比 type: string type: object - md.SetOssReq: + md.DivisionStrategyDetailByAgent: properties: - file_access_key: - example: 对象存储AccessToken + account: + example: 账号 type: string - file_bucket: - example: 对象存储bucket(空间) + agent_id: + example: 代理id type: string - file_bucket_host: - example: 对象存储域名 + agent_revenue_rate: + example: 佣金比例 type: string - file_bucket_region: - example: 文件所属区域 + extra_revenue_rate: + example: 额外奖励 type: string - file_secret_key: - example: 对象存储SecretToken + name: + example: 名称 type: string - required: - - file_access_key - - file_bucket - - file_bucket_host - - file_bucket_region - - file_secret_key type: object - md.SetOssResp: + md.DivisionStrategyDetailReq: properties: - data: - allOf: - - $ref: '#/definitions/md.SetOssReq' - description: 数据内容 - qi_niu_bucket_region_list: - description: 七牛云存储区域列表 - items: - $ref: '#/definitions/md.QiNiuBucketRegion' - type: array + medium_id: + type: string type: object - md.ShareIndexResp: + md.DivisionStrategyDetailRes: properties: - agent_domain: - example: 代理分享地址 + account: + example: 账号 type: string - master_id: + agent_list: + items: + $ref: '#/definitions/md.DivisionStrategyDetailByAgent' + type: array + agent_revenue_rate: + example: 代理收益百分比 type: string - medium_domain: - example: 媒体分享地址 + agreement_sharing_rate: + example: 协议分成百分比 type: string - type: object - md.UpdateAdminReq: - properties: - adm_id: - type: integer - memo: + commission_retention_rate: + example: 佣金留存百分比 type: string - password: + extra_revenue_rate: + example: 额外收益百分比 type: string - username: + media_revenue_rate: + example: 媒体收益百分比 + type: string + medium_id: + example: 媒体id + type: string + name: + example: 名称 + type: string + platform_retention_rate: + example: 平台留存百分比 type: string - required: - - adm_id - - password - - username - type: object - md.UpdateAdminStateReq: - properties: - adm_id: - type: integer - state: - type: integer - required: - - adm_id - - state type: object - md.UpdateRoleReq: + md.DivisionStrategyReq: properties: - memo: + limit: type: string name: type: string - role_id: - type: integer - required: - - memo - - name - - role_id + page: + type: string type: object - md.UpdateRoleStateReq: + md.DivisionStrategyRes: properties: - role_id: - type: integer - state: + list: + items: + $ref: '#/definitions/md.DivisionStrategyData' + type: array + total: type: integer - required: - - role_id - - state type: object - md.WxOpenGetResp: + md.FinanceCenterDataData: properties: - aes_key: - example: 消息加解密Key + all_income: + example: 合计收益 type: string - app_secret: - example: appSecret + change_income: + example: 调价留存 type: string - appid: - example: appid + commission_income: + example: 佣金留存 type: string - token: - example: 消息校验Token + id: type: string - wx_open_applet_server_domain: - example: 微信开放平台-小程序服务器域名 + label: type: string - wx_open_authorization_event_receiving_configuration: - example: 微信开放平台-授权事件接收配置 + medium_income: + example: 媒体结算 type: string - wx_open_domain_of_the_initiating_page_for_login_authorization: - example: 微信开放平台-登录授权的发起页域名 + name: + example: 媒体名称 type: string - wx_open_message_and_event_reception_configuration: - example: 微信开放平台-消息与事件接收配置 + other_income: + example: 其他调整 type: string - wx_open_white_list_ip: - example: 微信开放平台-白名单ip + pay_state: + example: 结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款) + type: string + platform_income: + example: 平台留存 + type: string + settle_type: + example: 结算单类型(1:日结 2:周结 3:月结 4:预付) + type: string + state: + example: 结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订) + type: string + time_str: + example: 业务时间 + type: string + top_income: + example: 上游结算 type: string type: object - md.WxOpenSetReq: + md.FinanceCenterDataReq: properties: - aes_key: - example: 消息加解密Key + end_time: type: string - app_secret: - example: appSecret + limit: type: string - appid: - example: appid + page: type: string - token: - example: 消息校验Token + pay_state: + example: 读 settle_pay_state返回的 + type: string + start_time: + example: "2024-08-29" + type: string + type: object + md.FinanceCenterDataRes: + properties: + business_kind: + items: + $ref: '#/definitions/md.SelectData' + type: array + list: + items: + $ref: '#/definitions/md.FinanceCenterDataData' + type: array + settle_pay_state: + items: + $ref: '#/definitions/md.SelectData' + type: array + settle_state: + items: + $ref: '#/definitions/md.SelectData' + type: array + settle_type: + items: + $ref: '#/definitions/md.SelectData' + type: array + total: + type: integer + type: object + md.InvoiceFile: + properties: + state: + example: 0待确认 1审核通过 2审核失败 + type: string + url: + type: string + type: object + md.InvoiceReq: + properties: + file: + items: + $ref: '#/definitions/md.InvoiceFile' + type: array + id: + example: 列表id + type: string + state: + example: 1审核通过 2审核失败 + type: string + type: object + md.LoginReq: + properties: + code: + example: 验证码 + type: string + password: + example: 登录密码 + type: string + username: + example: 登录账号 + type: string + required: + - password + - username + type: object + md.LoginResponse: + properties: + token: + type: string + type: object + md.MediumListData: + properties: + account: + example: 媒体账号 + type: string + business_license_address: + example: 营业执照地址 + type: string + company_name: + example: 公司名称 + type: string + id: + example: id + type: string + legal_representative: + example: 法定代表人 + type: string + medium_id: + example: 媒体id + type: string + memo: + example: 备注 审核时填写的 + type: string + state: + example: 状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝) + type: string + unified_social_credit_code: + example: 统一社会信用代码 + type: string + type: object + md.MediumListDelReq: + properties: + id: + example: 列表id + type: string + type: object + md.MediumListReq: + properties: + id: + type: string + limit: + type: string + name: + type: string + page: + type: string + state: + type: string + type: object + md.MediumListRes: + properties: + list: + items: + $ref: '#/definitions/md.MediumListData' + type: array + state: + items: + $ref: '#/definitions/md.SelectData' + type: array + total: + type: integer + type: object + md.MediumListSaveReq: + properties: + medium_id: + type: string + username: + type: string + type: object + md.MediumQualificationContactData: + properties: + account: + example: 账号 + type: string + address: + example: 联系地址 + type: string + company_name: + example: 公司名称 + type: string + email: + example: 邮箱地址 + type: string + id: + example: id + type: string + kind: + example: 类型(1:企业 2:个人) + type: string + medium_id: + example: 代理id + type: string + memo: + example: 备注 审核时填写的 + type: string + name: + example: 联系人 + type: string + phone: + example: 联系电话 + type: string + state: + example: 状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝) + type: string + type: object + md.MediumQualificationContactRes: + properties: + list: + items: + $ref: '#/definitions/md.MediumQualificationContactData' + type: array + state: + items: + $ref: '#/definitions/md.SelectData' + type: array + total: + type: integer + type: object + md.MediumQualificationEnterpriseAuditReq: + properties: + medium_id: + type: string + memo: + type: string + state: + type: string + type: object + md.MediumQualificationEnterpriseData: + properties: + account: + example: 账号 + type: string + business_license_address: + example: 营业执照地址 + type: string + business_license_img_url: + example: 营业执照照片 + type: string + certificate_first_type: + example: 证件类型 1级类目id + type: string + certificate_type: + example: 证件类型 2级类目id + type: string + certificate_validity: + example: 证件有效期 + type: string + company_abbreviation: + example: 公司简称 + type: string + company_name: + example: 公司名称 + type: string + country_region: + example: 国家地区 + type: string + country_region_id: + example: 国家地区id + type: string + id: + example: 状态选择 + type: string + kind: + example: 类型(1:企业 2:个人) + type: string + legal_representative: + example: 法定代表人 + type: string + medium_id: + example: 代理id + type: string + memo: + example: 备注 审核时填写的 + type: string + registered_address: + example: 注册地址 + type: string + registered_address_city_id: + example: 注册地址-市id + type: string + registered_address_country_id: + example: 注册地址-国家id + type: string + registered_address_county_id: + example: 注册地址-县/区id + type: string + registered_address_province_id: + example: 册地址-省份id + type: string + state: + example: 状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝) + type: string + unified_social_credit_code: + example: 统一社会信用代码 + type: string + uuid: + example: 站长id + type: string + type: object + md.MediumQualificationEnterpriseReq: + properties: + limit: + type: string + name: + type: string + page: + type: string + state: + type: string + type: object + md.MediumQualificationEnterpriseRes: + properties: + list: + items: + $ref: '#/definitions/md.MediumQualificationEnterpriseData' + type: array + state: + items: + $ref: '#/definitions/md.SelectData' + type: array + total: + type: integer + type: + items: + $ref: '#/definitions/md.SelectData' + type: array + type: object + md.OtherIncomeReq: + properties: + amount: + example: 其他收益 + type: string + id: + example: 列表id + type: string + type: object + md.QiNiuBucketRegion: + properties: + region_domain: + example: 区域域名 + type: string + region_id: + example: 区域id + type: string + region_name: + example: 区域名称 + type: string + type: object + md.RegisterForAgentReq: + properties: + code: + example: 验证码 + type: string + password: + example: 登录密码 + type: string + phone: + example: 登录账号 + type: string + required: + - password + - phone + type: object + md.RegisterForMediumReq: + properties: + code: + example: 验证码 + type: string + password: + example: 登录密码 + type: string + phone: + example: 登录账号 + type: string + required: + - password + - phone + type: object + md.Response: + properties: + code: + example: 响应码 + type: string + data: + description: 内容 + msg: + example: 具体错误原因 + type: string + type: object + md.RoleBindPermissionGroupReq: + properties: + permission_ids: + items: + type: integer + type: array + role_id: + type: integer + required: + - role_id + type: object + md.SelectData: + properties: + name: + example: 名称 + type: string + value: + 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: + example: 对象存储AccessToken + type: string + file_bucket: + example: 对象存储bucket(空间) + type: string + file_bucket_host: + example: 对象存储域名 + type: string + file_bucket_region: + example: 文件所属区域 + type: string + file_secret_key: + example: 对象存储SecretToken + type: string + required: + - file_access_key + - file_bucket + - file_bucket_host + - file_bucket_region + - file_secret_key + type: object + md.SetOssResp: + properties: + data: + allOf: + - $ref: '#/definitions/md.SetOssReq' + description: 数据内容 + qi_niu_bucket_region_list: + description: 七牛云存储区域列表 + items: + $ref: '#/definitions/md.QiNiuBucketRegion' + type: array + type: object + md.SettleCenterDataData: + properties: + account: + type: string + id: + type: string + name: + type: string + settle_type: + type: string + update_at: + type: string + type: object + md.SettleCenterDataDetailReq: + properties: + end_time: + type: string + id: + type: string + limit: + type: string + page: + type: string + start_time: + example: "2024-08-29" + type: string + type: object + md.SettleCenterDataReq: + properties: + account: + type: string + limit: + type: string + name: + type: string + page: + type: string + state: + type: string + type: object + md.SettleCenterDataRes: + properties: + list: + items: + $ref: '#/definitions/md.SettleCenterDataData' + type: array + state: + items: + $ref: '#/definitions/md.SelectData' + type: array + total: + type: integer + type: object + md.SettleCenterDataSaveReq: + properties: + id: + type: string + settle_type: + type: string + type: object + md.SettleFileReq: + properties: + file: + example: 七牛云链接 带http + type: string + id: + example: 列表id + type: string + type: object + md.ShareIndexResp: + properties: + agent_domain: + example: 代理分享地址 + type: string + master_id: + type: string + medium_domain: + example: 媒体分享地址 + type: string + type: object + md.UpdateAdminReq: + properties: + adm_id: + type: integer + memo: + type: string + password: + type: string + username: + type: string + required: + - adm_id + - password + - username + type: object + md.UpdateAdminStateReq: + properties: + adm_id: + type: integer + state: + type: integer + required: + - adm_id + - state + type: object + md.UpdateRoleReq: + properties: + memo: + type: string + name: + type: string + role_id: + type: integer + required: + - memo + - name + - role_id + type: object + md.UpdateRoleStateReq: + properties: + role_id: + type: integer + state: + type: integer + required: + - role_id + - state + type: object + md.WxOpenGetResp: + properties: + aes_key: + example: 消息加解密Key + type: string + app_secret: + example: appSecret + type: string + appid: + example: appid + type: string + token: + example: 消息校验Token + type: string + wx_open_applet_server_domain: + example: 微信开放平台-小程序服务器域名 + type: string + wx_open_authorization_event_receiving_configuration: + example: 微信开放平台-授权事件接收配置 + type: string + wx_open_domain_of_the_initiating_page_for_login_authorization: + example: 微信开放平台-登录授权的发起页域名 + type: string + wx_open_message_and_event_reception_configuration: + example: 微信开放平台-消息与事件接收配置 + type: string + wx_open_white_list_ip: + example: 微信开放平台-白名单ip + type: string + type: object + md.WxOpenSetReq: + properties: + aes_key: + example: 消息加解密Key + type: string + app_secret: + example: appSecret + type: string + appid: + example: appid + type: string + token: + example: 消息校验Token + type: string + required: + - aes_key + - app_secret + - appid + - token + type: object +host: localhost:1002 or xxxx.advertisement.dengbiao.top +info: + contact: + email: 1239118001@qq.com + name: dengbiao + url: http://www.swagger.io/support + description: 站长后台接口 + license: + name: Apache 2.0 + url: http://www.apache.org/licenses/LICENSE-2.0.html + termsOfService: http://swagger.io/terms/ + title: 广告联盟-站长平台 + version: "1.0" +paths: + /api/agentQualification/bank: + 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.AgentQualificationEnterpriseReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.AgentQualificationBankRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 银行资质 + tags: + - 渠道资质------嘉俊 + /api/agentQualification/bank/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.AgentQualificationEnterpriseAuditReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 银行资质审核 + tags: + - 渠道资质------嘉俊 + /api/agentQualification/contact: + 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.AgentQualificationEnterpriseReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.AgentQualificationContactRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 联系方式 + tags: + - 渠道资质------嘉俊 + /api/agentQualification/contact/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.AgentQualificationEnterpriseAuditReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 联系方式审核 + tags: + - 渠道资质------嘉俊 + /api/agentQualification/enterprise: + 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.AgentQualificationEnterpriseReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.AgentQualificationEnterpriseRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 主体资质 + tags: + - 渠道资质------嘉俊 + /api/agentQualification/enterprise/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.AgentQualificationEnterpriseAuditReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 主体资质审核 + tags: + - 渠道资质------嘉俊 + /api/dataCenter/generate/data/del: + 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.DataCenterGenerateDataCommReq' + produces: + - application/json + responses: + "200": + description: '具体看返回内容 ' + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 分成数据-删除 + tags: + - 数据中心------嘉俊 + /api/dataCenter/generate/data/detail: + 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.DataCenterGenerateDataCommReq' + produces: + - application/json + responses: + "200": + description: '具体看返回内容 ' + schema: + $ref: '#/definitions/md.DataCenterGenerateDataDetailData' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 分成数据-详情 + tags: + - 数据中心------嘉俊 + /api/dataCenter/generate/data/doing: + 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.DataCenterGenerateDataCommReq' + produces: + - application/json + responses: + "200": + description: '具体看返回内容 ' + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 分成数据-应用操作 + tags: + - 数据中心------嘉俊 + /api/dataCenter/generate/data/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.DataCenterGenerateDataReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.DataCenterGenerateDataRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 分成数据-列表 + tags: + - 数据中心------嘉俊 + /api/dataCenter/income/data/detail: + 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.DataCenterGenerateDataCommReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.DataCenterIncomeDataDetail' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 收益报表-详情 + tags: + - 数据中心------嘉俊 + /api/dataCenter/income/data/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.DataCenterGenerateDataReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.DataCenterIncomeDataRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 收益报表-列表 + tags: + - 数据中心------嘉俊 + /api/dataCenter/original/data/del: + 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.DataCenterOriginalDataCommReq' + produces: + - application/json + responses: + "200": + description: '具体看返回内容 ' + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-删除 + tags: + - 数据中心------嘉俊 + /api/dataCenter/original/data/doing: + 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.DataCenterDataCenterOriginalDataDoingReq' + produces: + - application/json + responses: + "200": + description: '具体看返回内容 ' + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-应用操作 + tags: + - 数据中心------嘉俊 + /api/dataCenter/original/data/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.DataCenterOriginalDataReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.DataCenterOriginalDataRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-列表 + tags: + - 数据中心------嘉俊 + /api/dataCenter/original/data/more/application: + 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.DataCenterOriginalDataMoreApplicationReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.DataCenterOriginalDataMoreApplicationRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-一键导入应用列表 + tags: + - 数据中心------嘉俊 + /api/dataCenter/original/data/more/application/doing: + 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.DataCenterOriginalDataOneApplicationDoingReq' + produces: + - application/json + responses: + "200": + description: '具体看返回内容 ' + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-一键导入操作 + tags: + - 数据中心------嘉俊 + /api/dataCenter/original/data/more/application/state: + get: + 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.DataCenterOriginalDataOneApplicationDoingReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 state=1 进行中 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-一键导入操作状态 + tags: + - 数据中心------嘉俊 + /api/dataCenter/original/data/one/application: + 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: + $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-单个导入应用列表 + tags: + - 数据中心------嘉俊 + /api/dataCenter/original/data/one/application/ad/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.DataCenterOriginalDataOneApplicationAdListReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationAdListRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-单个导入应用-广告位列表 + tags: + - 数据中心------嘉俊 + /api/dataCenter/original/data/one/application/doing: + 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.DataCenterOriginalDataOneApplicationDoingReq' + produces: + - application/json + responses: + "200": + description: '具体看返回内容 ' + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-单个应用数据操作 + tags: + - 数据中心------嘉俊 + /api/dataCenter/original/data/one/application/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.DataCenterOriginalDataOneApplicationDoingReq' + produces: + - application/json + responses: + "200": + description: '具体看返回内容 ' + schema: + $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationDoingRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-单个应用数据统计 + tags: + - 数据中心------嘉俊 + /api/dataCenter/original/data/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.DataCenterOriginalDataCommReq' + produces: + - application/json + responses: + "200": + description: '具体看返回内容 ' + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 原始数据-记录应用时统计 + tags: + - 数据中心------嘉俊 + /api/divisionStrategy/detail: + 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.DivisionStrategyDetailReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.DivisionStrategyDetailRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 详情 + tags: + - 分成策略------嘉俊 + /api/divisionStrategy/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.DivisionStrategyReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.DivisionStrategyRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 列表 + tags: + - 分成策略------嘉俊 + /api/divisionStrategy/save: + post: + consumes: + - application/json + description: 分成策略-保存 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true type: string - required: - - aes_key - - app_secret - - appid - - token - type: object -host: localhost:1002 or xxxx.advertisement.dengbiao.top -info: - contact: - email: 1239118001@qq.com - name: dengbiao - url: http://www.swagger.io/support - description: 站长后台接口 - license: - name: Apache 2.0 - url: http://www.apache.org/licenses/LICENSE-2.0.html - termsOfService: http://swagger.io/terms/ - title: 广告联盟-站长平台 - version: "1.0" -paths: - /api/agentQualification/bank: + - description: 请求参数 + in: body + name: args + required: true + schema: + $ref: '#/definitions/md.DivisionStrategyDetailRes' + produces: + - application/json + responses: + "200": + description: '具体看返回内容 ' + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 保存 + tags: + - 分成策略------嘉俊 + /api/financeCenter/medium/detail: post: consumes: - application/json - description: 渠道资质-银行资质 + description: 财务中心-媒体详情 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -1083,26 +2688,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.AgentQualificationEnterpriseReq' + $ref: '#/definitions/md.CommDetailReq' produces: - application/json responses: "200": - description: 具体看返回内容 这是data里面的数据 + description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.AgentQualificationBankRes' + $ref: '#/definitions/md.FinanceCenterDataRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 银行资质 + summary: 媒体详情 tags: - - 渠道资质------嘉俊 - /api/agentQualification/bank/audit: + - 财务中心------嘉俊 + /api/financeCenter/medium/invoice/save: post: consumes: - application/json - description: 渠道资质-银行资质审核 + description: 财务中心-媒体详情-发票保存 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -1114,26 +2719,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.AgentQualificationEnterpriseAuditReq' + $ref: '#/definitions/md.InvoiceReq' produces: - application/json responses: "200": - description: 具体看返回内容 + description: 具体看返回内容 这是data里面的数据 schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 银行资质审核 + summary: 媒体详情-发票保存 tags: - - 渠道资质------嘉俊 - /api/agentQualification/contact: + - 财务中心------嘉俊 + /api/financeCenter/medium/list: post: consumes: - application/json - description: 渠道资质-联系方式 + description: 财务中心-媒体列表 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -1145,26 +2750,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.AgentQualificationEnterpriseReq' + $ref: '#/definitions/md.FinanceCenterDataReq' produces: - application/json responses: "200": - description: 具体看返回内容 这是data里面的数据 + description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.AgentQualificationContactRes' + $ref: '#/definitions/md.FinanceCenterDataRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 联系方式 + summary: 媒体列表 tags: - - 渠道资质------嘉俊 - /api/agentQualification/contact/audit: + - 财务中心------嘉俊 + /api/financeCenter/medium/other/income/save: post: consumes: - application/json - description: 渠道资质-联系方式审核 + description: 财务中心-媒体详情-其他收益调整 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -1176,26 +2781,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.AgentQualificationEnterpriseAuditReq' + $ref: '#/definitions/md.OtherIncomeReq' produces: - application/json responses: "200": - description: 具体看返回内容 + description: 具体看返回内容 这是data里面的数据 schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 联系方式审核 + summary: 媒体详情-其他收益调整 tags: - - 渠道资质------嘉俊 - /api/agentQualification/enterprise: + - 财务中心------嘉俊 + /api/financeCenter/medium/pay/save: post: consumes: - application/json - description: 渠道资质-主体资质 + description: 财务中心-媒体详情-确认支付 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -1207,26 +2812,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.AgentQualificationEnterpriseReq' + $ref: '#/definitions/md.CommDetailReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.AgentQualificationEnterpriseRes' + type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 主体资质 + summary: 媒体详情-确认支付 tags: - - 渠道资质------嘉俊 - /api/agentQualification/enterprise/audit: + - 财务中心------嘉俊 + /api/financeCenter/medium/settle/file/save: post: consumes: - application/json - description: 渠道资质-主体资质审核 + description: 财务中心-媒体详情-结算单保存 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -1238,21 +2843,21 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.AgentQualificationEnterpriseAuditReq' + $ref: '#/definitions/md.SettleFileReq' produces: - application/json responses: "200": - description: 具体看返回内容 + description: 具体看返回内容 这是data里面的数据 schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 主体资质审核 + summary: 媒体详情-结算单保存 tags: - - 渠道资质------嘉俊 + - 财务中心------嘉俊 /api/login: post: consumes: @@ -2585,6 +4190,192 @@ paths: summary: 邀请链接 tags: - 设置中心-邀请链接 + /api/settleCenter/agent/detail: + 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.SettleCenterDataDetailReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 代理列表 + tags: + - 结算中心------嘉俊 + /api/settleCenter/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.SettleCenterDataReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.SettleCenterDataRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 代理列表 + tags: + - 结算中心------嘉俊 + /api/settleCenter/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.SettleCenterDataSaveReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 代理列表 + tags: + - 结算中心------嘉俊 + /api/settleCenter/medium/detail: + 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.SettleCenterDataDetailReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 媒体列表 + tags: + - 结算中心------嘉俊 + /api/settleCenter/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.SettleCenterDataReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.SettleCenterDataRes' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 媒体列表 + tags: + - 结算中心------嘉俊 + /api/settleCenter/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.SettleCenterDataSaveReq' + produces: + - application/json + responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 媒体列表 + tags: + - 结算中心------嘉俊 /role/permissionGroupList: get: consumes: diff --git a/go.mod b/go.mod index dfea3cf..fe8048b 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,6 @@ go 1.18 //replace code.fnuoos.com/zhimeng/model.git => E:/company/ad/models require ( - code.fnuoos.com/zhimeng/model.git v0.0.3-0.20240828084358-f52add033ca9 github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 github.com/boombuler/barcode v1.0.1 github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5 @@ -34,7 +33,11 @@ require ( xorm.io/xorm v1.3.1 ) -require github.com/jinzhu/copier v0.4.0 +require ( + code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 + code.fnuoos.com/zhimeng/model.git v0.0.3-0.20240830085315-046c30582759 + github.com/jinzhu/copier v0.4.0 +) require ( filippo.io/edwards25519 v1.1.0 // indirect @@ -67,6 +70,7 @@ require ( github.com/onsi/gomega v1.10.5 // indirect github.com/pelletier/go-toml/v2 v2.0.6 // indirect github.com/pkg/errors v0.9.1 // indirect + github.com/streadway/amqp v1.0.0 // indirect github.com/syndtr/goleveldb v1.0.0 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.9 // indirect diff --git a/main.go b/main.go index 0422db7..a398ac7 100644 --- a/main.go +++ b/main.go @@ -19,6 +19,7 @@ import ( // 系统初始化 func init() { cfg.InitCfg() //配置初始化 + cfg.InitMq() //配置初始化 cfg.InitLog() //日志初始化 cfg.InitCache() //缓存初始化 if cfg.Debug { //判断是否是debug