diff --git a/app/hdl/hdl_data_center_original_data.go b/app/hdl/hdl_data_center_original_data.go index 26faddd..06cc0d5 100644 --- a/app/hdl/hdl_data_center_original_data.go +++ b/app/hdl/hdl_data_center_original_data.go @@ -139,7 +139,7 @@ func OriginalDataMoreApplication(c *gin.Context) { // @param Authorization header string true "验证参数Bearer和token空格拼接" // @Accept json // @Produce json -// @Param args body md.DataCenterOriginalDataOneApplicationDoingReq true "请求参数" +// @Param args body md.DataCenterOriginalDataMoreApplicationDoingReq true "请求参数" // @Success 200 {string} "具体看返回内容 " // @Failure 400 {object} md.Response "具体错误" // @Router /api/dataCenter/original/data/more/application/doing [POST] @@ -168,7 +168,6 @@ func OriginalDataMoreApplicationDoing(c *gin.Context) { // @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] diff --git a/app/hdl/hdl_finance_center_agent.go b/app/hdl/hdl_finance_center_agent.go new file mode 100644 index 0000000..fa56a8a --- /dev/null +++ b/app/hdl/hdl_finance_center_agent.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" +) + +// FinanceCenterAgentList +// @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/agent/list [POST] +func FinanceCenterAgentList(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.FinanceCenterAgentList(c, req) + e.OutSuc(c, res, nil) + return +} + +// FinanceCenterAgentDetail +// @Summary 代理详情 +// @Tags 财务中心------嘉俊 +// @Description 财务中心-代理详情 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.CommDetailReq true "请求参数" +// @Success 200 {object} md.FinanceCenterDataAgentDetailRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/financeCenter/agent/detail [POST] +func FinanceCenterAgentDetail(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.FinanceCenterAgentDetail(c, req) + e.OutSuc(c, res, nil) + return +} + +// FinanceCenterAgentSettleFileSave +// @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/agent/settle/file/save [POST] +func FinanceCenterAgentSettleFileSave(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.FinanceCenterAgentSettleFileSave(c, req) +} + +// FinanceCenterAgentPaySave +// @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/agent/pay/save [POST] +func FinanceCenterAgentPaySave(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.FinanceCenterAgentPaySave(c, req) +} + +// FinanceCenterAgentOtherIncomeSave +// @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/agent/other/income/save [POST] +func FinanceCenterAgentOtherIncomeSave(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.FinanceCenterAgentOtherIncomeSave(c, req) +} + +// FinanceCenterAgentInvoiceSave +// @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/agent/invoice/save [POST] +func FinanceCenterAgentInvoiceSave(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.FinanceCenterAgentInvoiceSave(c, req) + +} diff --git a/app/hdl/hdl_finance_center_medium.go b/app/hdl/hdl_finance_center_medium.go index bd956b4..7a9cd66 100644 --- a/app/hdl/hdl_finance_center_medium.go +++ b/app/hdl/hdl_finance_center_medium.go @@ -41,7 +41,7 @@ func FinanceCenterMediumList(c *gin.Context) { // @Accept json // @Produce json // @Param args body md.CommDetailReq true "请求参数" -// @Success 200 {object} md.FinanceCenterDataRes "具体看返回内容 这是data里面的数据" +// @Success 200 {object} md.FinanceCenterDataDetailRes "具体看返回内容 这是data里面的数据" // @Failure 400 {object} md.Response "具体错误" // @Router /api/financeCenter/medium/detail [POST] func FinanceCenterMediumDetail(c *gin.Context) { diff --git a/app/hdl/hdl_index.go b/app/hdl/hdl_index.go new file mode 100644 index 0000000..563103c --- /dev/null +++ b/app/hdl/hdl_index.go @@ -0,0 +1,71 @@ +package hdl + +import ( + "applet/app/e" + "applet/app/lib/validate" + "applet/app/md" + "applet/app/svc" + "applet/app/utils" + "github.com/gin-gonic/gin" +) + +// Base +// @Summary 右上角基本数据 +// @Tags 首页------嘉俊 +// @Description 首页-右上角基本数据 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Success 200 {string} "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/index/base [GET] +func Base(c *gin.Context) { + user := svc.GetUser(c) + name := user.Username + res := map[string]string{ + "account_id": utils.IntToStr(user.AdmId), + "name": name, + "account": user.Username, + } + e.OutSuc(c, res, nil) + return +} + +// IndexTotal +// @Summary 统计数据 +// @Tags 首页------嘉俊 +// @Description 首页-统计数据 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Success 200 {string} "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/index/total [GET] +func IndexTotal(c *gin.Context) { + svc.IndexTotal(c) +} + +// IndexAppList +// @Summary 数据明细 +// @Tags 数据中心------嘉俊 +// @Description 数据中心-数据明细 +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Accept json +// @Produce json +// @Param args body md.IndexAppListReq true "请求参数" +// @Success 200 {object} md.IndexAppListRes "具体看返回内容 这是data里面的数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/index/app/list [POST] +func IndexAppList(c *gin.Context) { + var req md.IndexAppListReq + 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.IndexAppList(c, req) + e.OutSuc(c, res, nil) + return +} diff --git a/app/hdl/hdl_medium_qualification.go b/app/hdl/hdl_medium_qualification.go index d95b6b6..680067e 100644 --- a/app/hdl/hdl_medium_qualification.go +++ b/app/hdl/hdl_medium_qualification.go @@ -71,7 +71,6 @@ func MediumQualificationEnterpriseAudit(c *gin.Context) { // @Produce json // @Param args body md.MediumQualificationEnterpriseReq true "请求参数" // @Success 200 {object} md.MediumQualificationBankRes "具体看返回内容 这是data里面的数据" - // @Failure 400 {object} md.Response "具体错误" // @Router /api/mediumQualification/bank [POST] func MediumQualificationBank(c *gin.Context) { diff --git a/app/hdl/hdl_register.go b/app/hdl/hdl_register.go index 6bb6ffe..27702b5 100644 --- a/app/hdl/hdl_register.go +++ b/app/hdl/hdl_register.go @@ -57,6 +57,7 @@ func RegisterForMedium(c *gin.Context) { Uuid: utils.StrToInt(masterId), MediumId: utils.StrToInt(mediumId), Kind: 1, + SettlementType: 1, CompanyName: "", CompanyAbbreviation: "", UnifiedSocialCreditCode: "", @@ -166,6 +167,7 @@ func RegisterForAgent(c *gin.Context) { Uuid: utils.StrToInt(masterId), AgentId: utils.StrToInt(agentId), Kind: 1, + SettlementType: 1, CompanyName: "", CompanyAbbreviation: "", UnifiedSocialCreditCode: "", diff --git a/app/hdl/hdl_settle_center_agent.go b/app/hdl/hdl_settle_center_agent.go index cc3d983..3e450ae 100644 --- a/app/hdl/hdl_settle_center_agent.go +++ b/app/hdl/hdl_settle_center_agent.go @@ -34,9 +34,9 @@ func SettleCenterAgentList(c *gin.Context) { } // SettleCenterAgentSave -// @Summary 代理列表 +// @Summary 代理修改结算方式 // @Tags 结算中心------嘉俊 -// @Description 结算中心-代理列表 +// @Description 结算中心-代理修改结算方式 // @param Authorization header string true "验证参数Bearer和token空格拼接" // @Accept json // @Produce json @@ -57,9 +57,9 @@ func SettleCenterAgentSave(c *gin.Context) { } // SettleCenterAgentDetail -// @Summary 代理列表 +// @Summary 代理详情 // @Tags 结算中心------嘉俊 -// @Description 结算中心-代理列表 +// @Description 结算中心-代理详情 // @param Authorization header string true "验证参数Bearer和token空格拼接" // @Accept json // @Produce json diff --git a/app/hdl/hdl_settle_center_medium.go b/app/hdl/hdl_settle_center_medium.go index a7c57d2..be24a25 100644 --- a/app/hdl/hdl_settle_center_medium.go +++ b/app/hdl/hdl_settle_center_medium.go @@ -34,9 +34,9 @@ func SettleCenterMediumList(c *gin.Context) { } // SettleCenterMediumSave -// @Summary 媒体列表 +// @Summary 媒体修改结算方式 // @Tags 结算中心------嘉俊 -// @Description 结算中心-媒体列表 +// @Description 结算中心-媒体修改结算方式 // @param Authorization header string true "验证参数Bearer和token空格拼接" // @Accept json // @Produce json @@ -57,9 +57,9 @@ func SettleCenterMediumSave(c *gin.Context) { } // SettleCenterMediumDetail -// @Summary 媒体列表 +// @Summary 媒体详情 // @Tags 结算中心------嘉俊 -// @Description 结算中心-媒体列表 +// @Description 结算中心-媒体详情 // @param Authorization header string true "验证参数Bearer和token空格拼接" // @Accept json // @Produce json diff --git a/app/md/md_finance_center.go b/app/md/md_finance_center.go index 3c5b017..4fc8482 100644 --- a/app/md/md_finance_center.go +++ b/app/md/md_finance_center.go @@ -33,6 +33,32 @@ type FinanceCenterDataData struct { State string `json:"state" example:"结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)"` Label string `json:"label"` } + +type FinanceCenterDataAgentRes struct { + List []FinanceCenterDataAgentData `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 FinanceCenterDataAgentData 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:"调价留存"` + Income string `json:"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"` @@ -42,7 +68,15 @@ type FinanceCenterDataDetailRes struct { InvoiceCate []SelectData `json:"invoice_cate"` InvoiceState []SelectData `json:"invoice_state"` } - +type FinanceCenterDataAgentDetailRes struct { + Data FinanceCenterDataAgentDetail `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:"媒体名称"` @@ -60,6 +94,23 @@ type FinanceCenterDataDetail struct { PayState string `json:"pay_state" example:"结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)"` State string `json:"state" example:"结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)"` } +type FinanceCenterDataAgentDetail 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:"调价留存"` + Income string `json:"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"` diff --git a/app/md/md_index.go b/app/md/md_index.go new file mode 100644 index 0000000..45c1144 --- /dev/null +++ b/app/md/md_index.go @@ -0,0 +1,25 @@ +package md + +type IndexAppListReq struct { + StartDate string `json:"start_date" example:"2024-08-30"` + EndDate string `json:"end_date" example:"2024-08-30"` + Sort string `json:"sort" example:"排序"` + Name string `json:"name" ` +} +type IndexAppListRes struct { + List []IndexAppListData `json:"list" ` + Sort []SelectData `json:"sort"` +} + +type IndexAppListData struct { + Name string `json:"name"` + Logo string `json:"logo"` + List []IndexAppListDataList `json:"list"` + TableList []string `json:"table_list"` +} +type IndexAppListDataList struct { + Name string `json:"name"` + Value string `json:"value"` + Type string `json:"type"` + Bili string `json:"bili"` +} diff --git a/app/router/router.go b/app/router/router.go index cd60888..46b54e2 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -73,9 +73,14 @@ func route(r *gin.RouterGroup) { rDataCenter(r.Group("/dataCenter")) //数据中心 rSettleCenter(r.Group("/settleCenter")) //结算中心 rFinanceCenter(r.Group("/financeCenter")) //财务中心 + rIndex(r.Group("/index")) //首页 } - +func rIndex(r *gin.RouterGroup) { + r.GET("/base", hdl.Base) //首页-基本信息 + r.GET("/total", hdl.IndexTotal) //首页-统计数据 + r.POST("/app/list", hdl.IndexAppList) //首页-应用数据 +} func rRole(r *gin.RouterGroup) { r.GET("/roleList", hdl.RoleList) //角色列表 r.POST("/addRole", hdl.AddRole) //角色添加 @@ -165,17 +170,19 @@ func rDataCenter(r *gin.RouterGroup) { 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/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) //数据中心-收益报表-详情 + r.GET("/original/data/one/application/state", hdl.OriginalDataMoreApplicationState) //数据中心-原始数据-单个应用数据操作后的完成状态 + + 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) { @@ -195,4 +202,11 @@ func rFinanceCenter(r *gin.RouterGroup) { r.POST("/medium/other/income/save", hdl.FinanceCenterMediumOtherIncomeSave) //财务中心-媒体详情-其他收益调整 r.POST("/medium/pay/save", hdl.FinanceCenterMediumPaySave) //财务中心-媒体详情-确认支付 + r.POST("/agent/list", hdl.FinanceCenterAgentList) //财务中心-代理列表 + r.POST("/agent/detail", hdl.FinanceCenterAgentDetail) //财务中心-代理详情 + r.POST("/agent/settle/file/save", hdl.FinanceCenterAgentSettleFileSave) //财务中心-代理详情-结算单上传 + r.POST("/agent/invoice/save", hdl.FinanceCenterAgentInvoiceSave) //财务中心-代理详情-发票审核 + r.POST("/agent/other/income/save", hdl.FinanceCenterAgentOtherIncomeSave) //财务中心-代理详情-其他收益调整 + r.POST("/agent/pay/save", hdl.FinanceCenterAgentPaySave) //财务中心-代理详情-确认支付 + } diff --git a/app/svc/svc_agent_qualification.go b/app/svc/svc_agent_qualification.go index 178bccd..52811cd 100644 --- a/app/svc/svc_agent_qualification.go +++ b/app/svc/svc_agent_qualification.go @@ -100,7 +100,7 @@ func AgentQualificationEnterpriseAudit(c *gin.Context, req md.AgentQualification if data == nil { return e.NewErr(400, "记录不存在") } - if data.State == 1 { + if data.State == 2 { return e.NewErr(400, "记录已审核过") } data.State = utils.StrToInt(req.State) diff --git a/app/svc/svc_finance_center_agent.go b/app/svc/svc_finance_center_agent.go new file mode 100644 index 0000000..1ad87c5 --- /dev/null +++ b/app/svc/svc_finance_center_agent.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 FinanceCenterAgentInvoiceSave(c *gin.Context, req md.InvoiceReq) { + engine := db.Db + NewAgentSettlementDb := implement.NewAgentSettlementDb(engine) + data, _ := NewAgentSettlementDb.GetAgentSettlementById(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 + } + NewAgentInvoiceDb := implement.NewAgentInvoiceDb(engine) + invoice, _ := NewAgentInvoiceDb.GetAgentInvoice(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 FinanceCenterAgentSettleFileSave(c *gin.Context, req md.SettleFileReq) { + engine := db.Db + NewAgentSettlementDb := implement.NewAgentSettlementDb(engine) + data, _ := NewAgentSettlementDb.GetAgentSettlementById(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 FinanceCenterAgentPaySave(c *gin.Context, req md.CommDetailReq) { + engine := db.Db + NewAgentSettlementDb := implement.NewAgentSettlementDb(engine) + data, _ := NewAgentSettlementDb.GetAgentSettlementById(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 FinanceCenterAgentOtherIncomeSave(c *gin.Context, req md.OtherIncomeReq) { + engine := db.Db + NewAgentSettlementDb := implement.NewAgentSettlementDb(engine) + data, _ := NewAgentSettlementDb.GetAgentSettlementById(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 FinanceCenterAgentDetail(c *gin.Context, req md.CommDetailReq) md.FinanceCenterDataAgentDetailRes { + engine := db.Db + NewAgentSettlementDb := implement.NewAgentSettlementDb(engine) + data, _ := NewAgentSettlementDb.GetAgentSettlementById(utils.StrToInt(req.Id)) + file := make([]md.InvoiceFile, 0) + invoice := md.Invoice{ + Type: "0", + Time: "", + Count: "0", + File: file, + } + //发票 + NewAgentInvoiceDb := implement.NewAgentInvoiceDb(engine) + invoiceData, _ := NewAgentInvoiceDb.GetAgentInvoice(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.FinanceCenterDataAgentDetail{ + Source: "手动导入", + SettleFile: data.SettleFile, + Invoice: invoice, + AllIncome: utils.Float64ToStr(float64(data.OtherIncome+data.BasicIncome) / 100), + TopIncome: "", + CommissionIncome: "", + PlatformIncome: "", + ChangeIncome: "", + Income: 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 + } + } + tmpAgent := GetAgentInfo(c, data.AgentId) + if tmpAgent["name"] != "" { + tmp.Name = tmpAgent["name"] + } + if tmpAgent["account"] != "" { + tmp.Account = tmpAgent["account"] + } + + res := md.FinanceCenterDataAgentDetailRes{ + Data: tmp, + InvoiceCate: md.InvoiceCate, + SettleType: md.AccountSettleState, + BusinessKind: md.BusinessKind, + SettlePayState: md.SettlePayState, + SettleState: md.SettleState, + InvoiceState: md.InvoiceState, + } + return res +} +func FinanceCenterAgentList(c *gin.Context, req md.FinanceCenterDataReq) md.FinanceCenterDataAgentRes { + engine := db.Db + NewAgentSettlementDb := implement.NewAgentSettlementDb(engine) + AgentList, total, _ := NewAgentSettlementDb.FindAgentSettlementList(c.GetString("mid"), "", "", req.PayState, "", req.StartTime, req.EndTime, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + data := make([]md.FinanceCenterDataAgentData, 0) + if len(AgentList) > 0 { + for _, v := range AgentList { + var tmp = md.FinanceCenterDataAgentData{ + Id: utils.IntToStr(v.Id), + Name: "", + AllIncome: utils.Float64ToStr(float64(v.OtherIncome+v.BasicIncome) / 100), + TopIncome: "", + CommissionIncome: "", + PlatformIncome: "", + ChangeIncome: "", + Income: 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: "预估", + } + tmpAgent := GetAgentInfo(c, v.AgentId) + if tmpAgent["name"] != "" { + tmp.Name = tmpAgent["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.FinanceCenterDataAgentRes{ + List: data, + Total: total, + SettleType: md.AccountSettleState, + BusinessKind: md.BusinessKind, + SettlePayState: md.SettlePayState, + SettleState: md.SettleState, + } + return res +} diff --git a/app/svc/svc_index.go b/app/svc/svc_index.go new file mode 100644 index 0000000..a542a1d --- /dev/null +++ b/app/svc/svc_index.go @@ -0,0 +1,174 @@ +package svc + +import ( + "applet/app/e" + "applet/app/md" + "applet/app/utils" + db "code.fnuoos.com/zhimeng/model.git/src" + "fmt" + "github.com/gin-gonic/gin" + "strings" + "time" +) + +func IndexTotal(c *gin.Context) { + //昨天 + yesterday := utils.GetTimeRange("yesterday") + yesterdayTotal := commTotal(c, time.Unix(yesterday["start"], 0).Format("2006-01-02"), time.Unix(yesterday["end"]-3600, 0).Format("2006-01-02")) + //前天 + beforeYesterDayTotal := commTotal(c, time.Unix(yesterday["start"]-86400, 0).Format("2006-01-02"), time.Unix(yesterday["start"]-3600, 0).Format("2006-01-02")) + //7天 + withinSevenDays := utils.GetTimeRange("new_within_seven_days") + withinSevenDaysTotal := commTotal(c, time.Unix(withinSevenDays["start"], 0).Format("2006-01-02"), time.Unix(withinSevenDays["end"]-3600, 0).Format("2006-01-02")) + //7天前的 7天 + beforeWithinSevenDaysTotal := commTotal(c, time.Unix(withinSevenDays["start"]-3600-7*86400, 0).Format("2006-01-02"), time.Unix(withinSevenDays["start"]-3600, 0).Format("2006-01-02")) + //本月 + currentMonth := utils.GetTimeRange("current_month") + currentMonthTotal := commTotal(c, time.Unix(currentMonth["start"], 0).Format("2006-01-02"), time.Unix(currentMonth["end"]-3600, 0).Format("2006-01-02")) + //上月 + lastMonth := utils.GetTimeRange("last_month") + lastMonthTotal := commTotal(c, time.Unix(lastMonth["start"], 0).Format("2006-01-02"), time.Unix(lastMonth["end"]-3600, 0).Format("2006-01-02")) + //上上月 + beforeLastMonth := time.Unix(lastMonth["start"]-86400, 0) + beforeLastMonthStr := time.Date(beforeLastMonth.Year(), beforeLastMonth.Month(), 1, 0, 0, 0, 0, beforeLastMonth.Location()) + beforeLastMonthTotal := commTotal(c, beforeLastMonthStr.Format("2006-01-02"), time.Unix(lastMonth["start"]-3600, 0).Format("2006-01-02")) + res := []md.IndexAppListDataList{ + {Name: "昨日收益(媒体)", Type: "yesterday", Bili: commBili(c, beforeYesterDayTotal, yesterdayTotal, "media_revenue"), Value: utils.Float64ToStr(utils.StrToFloat64(yesterdayTotal[0]["media_revenue"]) / 100)}, + {Name: "七日收益(媒体)", Type: "within_seven_days", Bili: commBili(c, beforeWithinSevenDaysTotal, withinSevenDaysTotal, "media_revenue"), Value: utils.Float64ToStr(utils.StrToFloat64(withinSevenDaysTotal[0]["media_revenue"]) / 100)}, + {Name: "本月收益(媒体)", Type: "current_month", Bili: commBili(c, lastMonthTotal, currentMonthTotal, "media_revenue"), Value: utils.Float64ToStr(utils.StrToFloat64(currentMonthTotal[0]["media_revenue"]) / 100)}, + {Name: "上月收益(媒体)", Type: "last_month", Bili: commBili(c, beforeLastMonthTotal, lastMonthTotal, "media_revenue"), Value: utils.Float64ToStr(utils.StrToFloat64(lastMonthTotal[0]["media_revenue"]) / 100)}, + {Name: "昨日收益(曝光量)", Type: "yesterday", Bili: commBili(c, beforeYesterDayTotal, yesterdayTotal, "exposure_count"), Value: yesterdayTotal[0]["exposure_count"]}, + {Name: "七日收益(曝光量)", Type: "within_seven_days", Bili: commBili(c, beforeWithinSevenDaysTotal, withinSevenDaysTotal, "exposure_count"), Value: withinSevenDaysTotal[0]["exposure_count"]}, + {Name: "本月收益(曝光量)", Type: "current_month", Bili: commBili(c, lastMonthTotal, currentMonthTotal, "exposure_count"), Value: currentMonthTotal[0]["exposure_count"]}, + {Name: "上月收益(曝光量)", Type: "last_month", Bili: commBili(c, beforeLastMonthTotal, lastMonthTotal, "exposure_count"), Value: lastMonthTotal[0]["exposure_count"]}, + } + e.OutSuc(c, res, nil) + return +} +func commBili(c *gin.Context, before, after []map[string]string, types string) string { + bili := "-%" + if utils.StrToFloat64(before[0][types]) > 0 { + tmpDiff := utils.StrToFloat64(after[0][types]) - utils.StrToFloat64(before[0][types]) + types1 := "+" + if tmpDiff < 0 { + types1 = "" + } + bili = types1 + utils.Float64ToStr(tmpDiff/utils.StrToFloat64(before[0][types])*100) + "%" + } + return bili +} +func IndexAppList(c *gin.Context, req md.IndexAppListReq) md.IndexAppListRes { + appId := make([]string, 0) + data := commTotalByApp(c, req, appId) + for _, v := range data { + appId = append(appId, v["app_id"]) + } + start := utils.TimeStdParseUnix(req.StartDate + " 00:00:00") + day := (utils.TimeStdParseUnix(req.EndDate+" 00:00:00") - start) / 86400 + req.EndDate = time.Unix(start-1, 0).Format("2006-01-02") + req.StartDate = time.Unix(start-1-day*86400, 0).Format("2006-01-02") + dataLast := commTotalByApp(c, req, appId) + dataLastMap := make(map[string][]map[string]string) + for _, v := range dataLast { + dataLastMap[v["app_id"]] = make([]map[string]string, 0) + dataLastMap[v["app_id"]] = append(dataLastMap[v["app_id"]], v) + } + list := make([]md.IndexAppListData, 0) + for _, v := range data { + _, ok := dataLastMap[v["app_id"]] + if ok == false { + dataLastMap[v["app_id"]] = []map[string]string{ + {"media_revenue": "0", "ecpm": "0", "exposure_count": "0", "click_count": "0", "click_rate": "0"}, + } + } + tmpList := []map[string]string{ + v, + } + dataList := []md.IndexAppListDataList{ + {Name: "广告预估收益", Type: "media_revenue", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "media_revenue"), Value: utils.Float64ToStr(utils.StrToFloat64(v["media_revenue"]) / 100)}, + {Name: "ECPM", Type: "ecpm", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "ecpm"), Value: v["ecpm"]}, + {Name: "曝光量", Type: "exposure_count", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "exposure_count"), Value: v["exposure_count"]}, + {Name: "点击量", Type: "click_count", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "click_count"), Value: v["click_count"]}, + {Name: "点击率", Type: "click_rate", Bili: commBili(c, dataLastMap[v["app_id"]], tmpList, "click_rate"), Value: utils.GetPrec(v["click_rate"], "2") + "%"}, + } + applet := GetAppletInfo(c, v["app_id"]) + tmp := md.IndexAppListData{ + Name: applet["name"], + Logo: applet["logo"], + List: dataList, + TableList: []string{}, + } + list = append(list, tmp) + } + res := md.IndexAppListRes{ + List: list, + Sort: []md.SelectData{ + {Name: "按收益最高", Value: "media_revenue desc"}, + {Name: "按ECPM最高", Value: "ecpm desc"}, + {Name: "按曝光量最高", Value: "exposure_count desc"}, + }, + } + return res +} +func commTotal(c *gin.Context, startDate, endDate string) []map[string]string { + sql := ` + SELECT + SUM(exposure_count) as exposure_count, + SUM(click_count) as click_count, + SUM(click_rate) as click_rate, + SUM(ecpm) as ecpm, + SUM(media_revenue) as media_revenue + FROM generate_wx_ad_data + where %s +` + where := "uuid=" + c.GetString("mid") + if startDate != "" { + where += " and date>='" + startDate + "'" + } + if endDate != "" { + where += " and date<='" + endDate + "'" + } + sql = fmt.Sprintf(sql, where) + nativeString, _ := db.QueryNativeString(db.Db, sql) + if len(nativeString) == 0 { + nativeString = []map[string]string{ + { + "media_revenue": "0", + }, + } + } + return nativeString +} +func commTotalByApp(c *gin.Context, req md.IndexAppListReq, appId []string) []map[string]string { + sql := ` + SELECT + app_id as app_id, + SUM(exposure_count) as exposure_count, + SUM(click_count) as click_count, + SUM(click_count)/SUM(exposure_count)*100 as click_rate, + SUM(ecpm) as ecpm, + SUM(media_revenue) as media_revenue + FROM generate_wx_ad_data + where %s group by app_id order by %s,id asc limit 50 +` + where := "uuid=" + c.GetString("mid") + if req.StartDate != "" { + where += " and date>='" + req.StartDate + "'" + } + if req.EndDate != "" { + where += " and date<='" + req.EndDate + "'" + } + if req.Name != "" { + mediumId := GetMediumId(c, req.Name) + where += " and medium_id in(" + mediumId + ")" + } + if len(appId) > 0 { + where += " and app_id in(" + strings.Join(appId, ",") + ")" + } + if req.Sort == "" { + req.Sort = "media_revenue desc" + } + sql = fmt.Sprintf(sql, where, req.Sort) + nativeString, _ := db.QueryNativeString(db.Db, sql) + return nativeString +} diff --git a/app/svc/svc_medium_qualification.go b/app/svc/svc_medium_qualification.go index 7772d80..595a393 100644 --- a/app/svc/svc_medium_qualification.go +++ b/app/svc/svc_medium_qualification.go @@ -80,7 +80,7 @@ func MediumQualificationEnterpriseAudit(c *gin.Context, req md.MediumQualificati if data == nil { return e.NewErr(400, "记录不存在") } - if data.State == 1 { + if data.State == 2 { return e.NewErr(400, "记录已审核过") } data.State = utils.StrToInt(req.State) diff --git a/app/svc/svc_wx_data.go b/app/svc/svc_wx_data.go index c42f42e..a4f60ca 100644 --- a/app/svc/svc_wx_data.go +++ b/app/svc/svc_wx_data.go @@ -91,6 +91,7 @@ func GenerateWxAdData(req md.GenerateWxAdData) (err error, generateWxAdData mode now := time.Now() generateWxAdData = model.GenerateWxAdData{ + MediumId: originalWxAdData.MediumId, Uuid: originalWxAdData.Uuid, Platform: originalWxAdData.Platform, AppId: originalWxAdData.AppId, diff --git a/app/utils/convert.go b/app/utils/convert.go index c398317..66edb0e 100644 --- a/app/utils/convert.go +++ b/app/utils/convert.go @@ -323,3 +323,55 @@ func IntToStr(i int) string { func Int64ToStr(i int64) string { return strconv.FormatInt(i, 10) } +func Float64ToStrByPrec(f float64, prec int) string { + return strconv.FormatFloat(f, 'f', prec, 64) +} +func GetPrec(sum, commPrec string) string { + if sum == "" { + sum = "0" + } + sum = StrToFormat(sum, StrToInt(commPrec)) + ex := strings.Split(sum, ".") + if len(ex) == 2 { + if StrToFloat64(ex[1]) == 0 { + sum = ex[0] + } else { + val := Float64ToStrByPrec(StrToFloat64(ex[1]), 0) + keyMax := 0 + for i := 0; i < len(val); i++ { + ch := string(val[i]) + fmt.Println(StrToInt(ch)) + if StrToInt(ch) > 0 { + keyMax = i + } + } + valNew := val[0 : keyMax+1] + sum = ex[0] + "." + strings.ReplaceAll(ex[1], val, valNew) + } + } + return sum +} +func StrToFormat(s string, prec int) string { + ex := strings.Split(s, ".") + if len(ex) == 2 { + if StrToFloat64(ex[1]) == 0 { //小数点后面为空就是不要小数点了 + return ex[0] + } + //看取多少位 + str := ex[1] + str1 := str + if prec < len(str) { + str1 = str[0:prec] + } else { + for i := 0; i < prec-len(str); i++ { + str1 += "0" + } + } + if prec > 0 { + return ex[0] + "." + str1 + } else { + return ex[0] + } + } + return s +} diff --git a/docs/docs.go b/docs/docs.go index 2d3b897..9f0aa94 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -804,7 +804,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" + "$ref": "#/definitions/md.DataCenterOriginalDataMoreApplicationDoingReq" } } ], @@ -844,15 +844,6 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" - } } ], "responses": { @@ -1238,9 +1229,9 @@ const docTemplate = `{ } } }, - "/api/financeCenter/medium/detail": { + "/api/financeCenter/agent/detail": { "post": { - "description": "财务中心-媒体详情", + "description": "财务中心-代理详情", "consumes": [ "application/json" ], @@ -1250,7 +1241,7 @@ const docTemplate = `{ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体详情", + "summary": "代理详情", "parameters": [ { "type": "string", @@ -1273,7 +1264,7 @@ const docTemplate = `{ "200": { "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.FinanceCenterDataRes" + "$ref": "#/definitions/md.FinanceCenterDataAgentDetailRes" } }, "400": { @@ -1285,9 +1276,9 @@ const docTemplate = `{ } } }, - "/api/financeCenter/medium/invoice/save": { + "/api/financeCenter/agent/invoice/save": { "post": { - "description": "财务中心-媒体详情-发票保存", + "description": "财务中心-代理详情-发票保存", "consumes": [ "application/json" ], @@ -1297,7 +1288,7 @@ const docTemplate = `{ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体详情-发票保存", + "summary": "代理详情-发票保存", "parameters": [ { "type": "string", @@ -1332,9 +1323,9 @@ const docTemplate = `{ } } }, - "/api/financeCenter/medium/list": { + "/api/financeCenter/agent/list": { "post": { - "description": "财务中心-媒体列表", + "description": "财务中心-代理列表", "consumes": [ "application/json" ], @@ -1344,7 +1335,7 @@ const docTemplate = `{ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体列表", + "summary": "代理列表", "parameters": [ { "type": "string", @@ -1379,9 +1370,9 @@ const docTemplate = `{ } } }, - "/api/financeCenter/medium/other/income/save": { + "/api/financeCenter/agent/other/income/save": { "post": { - "description": "财务中心-媒体详情-其他收益调整", + "description": "财务中心-代理详情-其他收益调整", "consumes": [ "application/json" ], @@ -1391,7 +1382,7 @@ const docTemplate = `{ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体详情-其他收益调整", + "summary": "代理详情-其他收益调整", "parameters": [ { "type": "string", @@ -1426,9 +1417,9 @@ const docTemplate = `{ } } }, - "/api/financeCenter/medium/pay/save": { + "/api/financeCenter/agent/pay/save": { "post": { - "description": "财务中心-媒体详情-确认支付", + "description": "财务中心-代理详情-确认支付", "consumes": [ "application/json" ], @@ -1438,7 +1429,7 @@ const docTemplate = `{ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体详情-确认支付", + "summary": "代理详情-确认支付", "parameters": [ { "type": "string", @@ -1473,9 +1464,9 @@ const docTemplate = `{ } } }, - "/api/financeCenter/medium/settle/file/save": { + "/api/financeCenter/agent/settle/file/save": { "post": { - "description": "财务中心-媒体详情-结算单保存", + "description": "财务中心-代理详情-结算单保存", "consumes": [ "application/json" ], @@ -1485,7 +1476,7 @@ const docTemplate = `{ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体详情-结算单保存", + "summary": "代理详情-结算单保存", "parameters": [ { "type": "string", @@ -1520,9 +1511,9 @@ const docTemplate = `{ } } }, - "/api/login": { + "/api/financeCenter/medium/detail": { "post": { - "description": "登入", + "description": "财务中心-媒体详情", "consumes": [ "application/json" ], @@ -1530,25 +1521,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.CommDetailReq" } } ], "responses": { "200": { - "description": "token", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.LoginResponse" + "$ref": "#/definitions/md.FinanceCenterDataDetailRes" } }, "400": { @@ -1560,9 +1558,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/agent/bind/medium/list": { + "/api/financeCenter/medium/invoice/save": { "post": { - "description": "媒体中心-代理绑定媒体列表", + "description": "财务中心-媒体详情-发票保存", "consumes": [ "application/json" ], @@ -1570,9 +1568,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "财务中心------嘉俊" ], - "summary": "代理绑定媒体列表", + "summary": "媒体详情-发票保存", "parameters": [ { "type": "string", @@ -1587,7 +1585,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListReq" + "$ref": "#/definitions/md.InvoiceReq" } } ], @@ -1595,7 +1593,7 @@ const docTemplate = `{ "200": { "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.MediumListRes" + "type": "string" } }, "400": { @@ -1607,9 +1605,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/agent/list": { + "/api/financeCenter/medium/list": { "post": { - "description": "媒体中心-代理列表", + "description": "财务中心-媒体列表", "consumes": [ "application/json" ], @@ -1617,9 +1615,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "财务中心------嘉俊" ], - "summary": "代理列表", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -1634,7 +1632,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AgentQualificationEnterpriseReq" + "$ref": "#/definitions/md.FinanceCenterDataReq" } } ], @@ -1642,7 +1640,7 @@ const docTemplate = `{ "200": { "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AgentQualificationEnterpriseRes" + "$ref": "#/definitions/md.FinanceCenterDataRes" } }, "400": { @@ -1654,9 +1652,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/ad/space/audit": { + "/api/financeCenter/medium/other/income/save": { "post": { - "description": "小程序应用-广告位审核", + "description": "财务中心-媒体详情-其他收益调整", "consumes": [ "application/json" ], @@ -1664,9 +1662,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "财务中心------嘉俊" ], - "summary": "广告位审核", + "summary": "媒体详情-其他收益调整", "parameters": [ { "type": "string", @@ -1681,13 +1679,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceSaveReq" + "$ref": "#/definitions/md.OtherIncomeReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { "type": "string" } @@ -1701,9 +1699,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/ad/space/list": { + "/api/financeCenter/medium/pay/save": { "post": { - "description": "媒体中心-媒体列表", + "description": "财务中心-媒体详情-确认支付", "consumes": [ "application/json" ], @@ -1711,9 +1709,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "财务中心------嘉俊" ], - "summary": "媒体列表", + "summary": "媒体详情-确认支付", "parameters": [ { "type": "string", @@ -1728,15 +1726,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListReq" + "$ref": "#/definitions/md.CommDetailReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListRes" + "type": "string" } }, "400": { @@ -1748,9 +1746,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/ad/space/save": { + "/api/financeCenter/medium/settle/file/save": { "post": { - "description": "小程序应用-广告位列表", + "description": "财务中心-媒体详情-结算单保存", "consumes": [ "application/json" ], @@ -1758,9 +1756,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "财务中心------嘉俊" ], - "summary": "广告位列表", + "summary": "媒体详情-结算单保存", "parameters": [ { "type": "string", @@ -1775,15 +1773,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceListReq" + "$ref": "#/definitions/md.SettleFileReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceListRes" + "type": "string" } }, "400": { @@ -1795,9 +1793,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/audit": { + "/api/index/app/list": { "post": { - "description": "小程序应用-审核", + "description": "数据中心-数据明细", "consumes": [ "application/json" ], @@ -1805,9 +1803,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "审核", + "summary": "数据明细", "parameters": [ { "type": "string", @@ -1822,15 +1820,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationSaveReq" + "$ref": "#/definitions/md.IndexAppListReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.IndexAppListRes" } }, "400": { @@ -1842,9 +1840,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/list": { - "post": { - "description": "小程序应用-列表数据", + "/api/index/base": { + "get": { + "description": "首页-右上角基本数据", "consumes": [ "application/json" ], @@ -1852,9 +1850,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "首页------嘉俊" ], - "summary": "应用列表", + "summary": "右上角基本数据", "parameters": [ { "type": "string", @@ -1862,22 +1860,13 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AppletApplicationListReq" - } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationListRes" + "type": "string" } }, "400": { @@ -1889,9 +1878,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/applet/application/medium/list": { - "post": { - "description": "媒体中心-媒体列表", + "/api/index/total": { + "get": { + "description": "首页-统计数据", "consumes": [ "application/json" ], @@ -1899,9 +1888,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "首页------嘉俊" ], - "summary": "媒体列表", + "summary": "统计数据", "parameters": [ { "type": "string", @@ -1909,22 +1898,13 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AppletApplicationMediumListReq" - } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationMediumListRes" + "type": "string" } }, "400": { @@ -1936,9 +1916,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/medium/bind/agent/del": { + "/api/login": { "post": { - "description": "媒体中心-媒体绑定代理删除", + "description": "登入", "consumes": [ "application/json" ], @@ -1946,32 +1926,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.MediumListDelReq" + "$ref": "#/definitions/md.LoginReq" } } ], "responses": { "200": { - "description": "具体看返回内容 ", + "description": "token", "schema": { - "type": "string" + "$ref": "#/definitions/md.LoginResponse" } }, "400": { @@ -1983,9 +1956,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/medium/bind/agent/list": { + "/api/mediumCenter/agent/bind/medium/list": { "post": { - "description": "媒体中心-媒体绑定代理列表", + "description": "媒体中心-代理绑定媒体列表", "consumes": [ "application/json" ], @@ -1995,7 +1968,7 @@ const docTemplate = `{ "tags": [ "媒体中心------嘉俊" ], - "summary": "媒体绑定代理列表", + "summary": "代理绑定媒体列表", "parameters": [ { "type": "string", @@ -2030,9 +2003,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/medium/bind/agent/save": { + "/api/mediumCenter/agent/list": { "post": { - "description": "媒体中心-媒体绑定代理操作", + "description": "媒体中心-代理列表", "consumes": [ "application/json" ], @@ -2042,7 +2015,7 @@ const docTemplate = `{ "tags": [ "媒体中心------嘉俊" ], - "summary": "媒体绑定代理操作", + "summary": "代理列表", "parameters": [ { "type": "string", @@ -2057,15 +2030,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListSaveReq" + "$ref": "#/definitions/md.AgentQualificationEnterpriseReq" } } ], "responses": { "200": { - "description": "具体看返回内容 ", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AgentQualificationEnterpriseRes" } }, "400": { @@ -2077,9 +2050,9 @@ const docTemplate = `{ } } }, - "/api/mediumCenter/medium/list": { + "/api/mediumCenter/applet/application/ad/space/audit": { "post": { - "description": "媒体中心-媒体列表", + "description": "小程序应用-广告位审核", "consumes": [ "application/json" ], @@ -2089,7 +2062,7 @@ const docTemplate = `{ "tags": [ "媒体中心------嘉俊" ], - "summary": "媒体列表", + "summary": "广告位审核", "parameters": [ { "type": "string", @@ -2104,15 +2077,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceSaveReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容", "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" + "type": "string" } }, "400": { @@ -2124,21 +2097,9 @@ const docTemplate = `{ } } }, - "/api/mediumQualification/bank": { - "post": { - "responses": { - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/mediumQualification/bank/audit": { + "/api/mediumCenter/applet/application/ad/space/list": { "post": { - "description": "媒体资质-银行资质审核", + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -2146,9 +2107,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "媒体中心------嘉俊" ], - "summary": "银行资质审核", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -2163,15 +2124,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListRes" } }, "400": { @@ -2183,9 +2144,9 @@ const docTemplate = `{ } } }, - "/api/mediumQualification/contact": { + "/api/mediumCenter/applet/application/ad/space/save": { "post": { - "description": "媒体资质-联系方式", + "description": "小程序应用-广告位列表", "consumes": [ "application/json" ], @@ -2193,9 +2154,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "媒体中心------嘉俊" ], - "summary": "联系方式", + "summary": "广告位列表", "parameters": [ { "type": "string", @@ -2210,15 +2171,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceListReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "$ref": "#/definitions/md.MediumQualificationContactRes" + "$ref": "#/definitions/md.AppletApplicationAdSpaceListRes" } }, "400": { @@ -2230,9 +2191,9 @@ const docTemplate = `{ } } }, - "/api/mediumQualification/contact/audit": { + "/api/mediumCenter/applet/application/audit": { "post": { - "description": "媒体资质-联系方式审核", + "description": "小程序应用-审核", "consumes": [ "application/json" ], @@ -2240,9 +2201,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "媒体中心------嘉俊" ], - "summary": "联系方式审核", + "summary": "审核", "parameters": [ { "type": "string", @@ -2257,7 +2218,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.AppletApplicationSaveReq" } } ], @@ -2277,9 +2238,9 @@ const docTemplate = `{ } } }, - "/api/mediumQualification/enterprise": { + "/api/mediumCenter/applet/application/list": { "post": { - "description": "媒体资质-主体资质", + "description": "小程序应用-列表数据", "consumes": [ "application/json" ], @@ -2287,9 +2248,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "媒体中心------嘉俊" ], - "summary": "主体资质", + "summary": "应用列表", "parameters": [ { "type": "string", @@ -2304,15 +2265,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + "$ref": "#/definitions/md.AppletApplicationListReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" + "$ref": "#/definitions/md.AppletApplicationListRes" } }, "400": { @@ -2324,9 +2285,9 @@ const docTemplate = `{ } } }, - "/api/mediumQualification/enterprise/audit": { + "/api/mediumCenter/applet/application/medium/list": { "post": { - "description": "媒体资质-主体资质审核", + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -2334,9 +2295,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "媒体中心------嘉俊" ], - "summary": "主体资质审核", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -2351,15 +2312,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.AppletApplicationMediumListReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationMediumListRes" } }, "400": { @@ -2371,9 +2332,9 @@ const docTemplate = `{ } } }, - "/api/qualification/select/base": { - "get": { - "description": "资质认证-认证下拉框选择内容", + "/api/mediumCenter/medium/bind/agent/del": { + "post": { + "description": "媒体中心-媒体绑定代理删除", "consumes": [ "application/json" ], @@ -2381,9 +2342,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "资质认证------嘉俊" + "媒体中心------嘉俊" ], - "summary": "认证下拉框选择内容", + "summary": "媒体绑定代理删除", "parameters": [ { "type": "string", @@ -2391,51 +2352,20 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true - } - ], - "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", + "description": "请求参数", + "name": "args", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.RegisterForAgentReq" + "$ref": "#/definitions/md.MediumListDelReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 ", "schema": { "type": "string" } @@ -2449,9 +2379,9 @@ const docTemplate = `{ } } }, - "/api/registerForMedium": { + "/api/mediumCenter/medium/bind/agent/list": { "post": { - "description": "注册模块-媒体注册", + "description": "媒体中心-媒体绑定代理列表", "consumes": [ "application/json" ], @@ -2459,25 +2389,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.RegisterForMediumReq" + "$ref": "#/definitions/md.MediumListReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumListRes" } }, "400": { @@ -2489,9 +2426,9 @@ const docTemplate = `{ } } }, - "/api/role/addAdmin": { + "/api/mediumCenter/medium/bind/agent/save": { "post": { - "description": "权限管理-新增管理员", + "description": "媒体中心-媒体绑定代理操作", "consumes": [ "application/json" ], @@ -2499,9 +2436,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "新增管理员", + "summary": "媒体绑定代理操作", "parameters": [ { "type": "string", @@ -2516,13 +2453,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AddAdminReq" + "$ref": "#/definitions/md.MediumListSaveReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 ", "schema": { "type": "string" } @@ -2536,9 +2473,9 @@ const docTemplate = `{ } } }, - "/api/role/addRole": { + "/api/mediumCenter/medium/list": { "post": { - "description": "权限管理-添加角色", + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -2546,9 +2483,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "添加角色", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -2563,15 +2500,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AddRoleReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" } }, "400": { @@ -2583,9 +2520,9 @@ const docTemplate = `{ } } }, - "/api/role/adminInfo": { - "get": { - "description": "权限管理-管理员信息", + "/api/mediumQualification/bank": { + "post": { + "description": "媒体资质-银行资质", "consumes": [ "application/json" ], @@ -2593,9 +2530,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "管理员信息", + "summary": "银行资质", "parameters": [ { "type": "string", @@ -2605,18 +2542,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.MediumQualificationEnterpriseReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumQualificationBankRes" } }, "400": { @@ -2628,9 +2567,9 @@ const docTemplate = `{ } } }, - "/api/role/adminList": { + "/api/mediumQualification/bank/audit": { "post": { - "description": "权限管理-管理员列表", + "description": "媒体资质-银行资质审核", "consumes": [ "application/json" ], @@ -2638,9 +2577,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "管理员列表", + "summary": "银行资质审核", "parameters": [ { "type": "string", @@ -2655,7 +2594,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AdminListReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" } } ], @@ -2675,9 +2614,9 @@ const docTemplate = `{ } } }, - "/api/role/bindAdminRole/": { + "/api/mediumQualification/contact": { "post": { - "description": "权限管理-管理员绑定角色", + "description": "媒体资质-联系方式", "consumes": [ "application/json" ], @@ -2685,9 +2624,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "管理员绑定角色", + "summary": "联系方式", "parameters": [ { "type": "string", @@ -2702,15 +2641,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.BindAdminRoleReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumQualificationContactRes" } }, "400": { @@ -2722,9 +2661,9 @@ const docTemplate = `{ } } }, - "/api/role/deleteAdmin/{$adm_id}": { - "delete": { - "description": "权限管理-删除管理员", + "/api/mediumQualification/contact/audit": { + "post": { + "description": "媒体资质-联系方式审核", "consumes": [ "application/json" ], @@ -2732,9 +2671,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "删除管理员", + "summary": "联系方式审核", "parameters": [ { "type": "string", @@ -2742,11 +2681,20 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -2760,9 +2708,9 @@ const docTemplate = `{ } } }, - "/api/role/deleteRole/{$id}": { - "delete": { - "description": "权限管理-删除角色", + "/api/mediumQualification/enterprise": { + "post": { + "description": "媒体资质-主体资质", "consumes": [ "application/json" ], @@ -2770,9 +2718,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "删除角色", + "summary": "主体资质", "parameters": [ { "type": "string", @@ -2787,15 +2735,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" } }, "400": { @@ -2807,9 +2755,9 @@ const docTemplate = `{ } } }, - "/api/role/roleBindPermissionGroup": { + "/api/mediumQualification/enterprise/audit": { "post": { - "description": "权限管理-角色绑定权限组", + "description": "媒体资质-主体资质审核", "consumes": [ "application/json" ], @@ -2817,9 +2765,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "角色绑定权限组", + "summary": "主体资质审核", "parameters": [ { "type": "string", @@ -2834,13 +2782,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.RoleBindPermissionGroupReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -2854,9 +2802,9 @@ const docTemplate = `{ } } }, - "/api/role/roleList": { + "/api/qualification/select/base": { "get": { - "description": "权限管理-角色列表", + "description": "资质认证-认证下拉框选择内容", "consumes": [ "application/json" ], @@ -2864,9 +2812,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "资质认证------嘉俊" ], - "summary": "角色列表", + "summary": "认证下拉框选择内容", "parameters": [ { "type": "string", @@ -2892,9 +2840,9 @@ const docTemplate = `{ } } }, - "/api/role/updateAdmin": { + "/api/registerForAgent": { "post": { - "description": "权限管理-修改管理员信息", + "description": "注册模块-渠道代理注册", "consumes": [ "application/json" ], @@ -2902,24 +2850,17 @@ 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.UpdateAdminReq" + "$ref": "#/definitions/md.RegisterForAgentReq" } } ], @@ -2939,9 +2880,9 @@ const docTemplate = `{ } } }, - "/api/role/updateAdminState": { + "/api/registerForMedium": { "post": { - "description": "权限管理-修改管理员状态", + "description": "注册模块-媒体注册", "consumes": [ "application/json" ], @@ -2949,24 +2890,17 @@ 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.UpdateAdminStateReq" + "$ref": "#/definitions/md.RegisterForMediumReq" } } ], @@ -2986,9 +2920,9 @@ const docTemplate = `{ } } }, - "/api/role/updateRole": { + "/api/role/addAdmin": { "post": { - "description": "权限管理-修改角色", + "description": "权限管理-新增管理员", "consumes": [ "application/json" ], @@ -2998,7 +2932,7 @@ const docTemplate = `{ "tags": [ "权限管理" ], - "summary": "修改角色", + "summary": "新增管理员", "parameters": [ { "type": "string", @@ -3013,7 +2947,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleReq" + "$ref": "#/definitions/md.AddAdminReq" } } ], @@ -3033,9 +2967,9 @@ const docTemplate = `{ } } }, - "/api/role/updateRoleState": { + "/api/role/addRole": { "post": { - "description": "权限管理-修改角色状态", + "description": "权限管理-添加角色", "consumes": [ "application/json" ], @@ -3045,7 +2979,7 @@ const docTemplate = `{ "tags": [ "权限管理" ], - "summary": "修改角色状态", + "summary": "添加角色", "parameters": [ { "type": "string", @@ -3060,7 +2994,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" + "$ref": "#/definitions/md.AddRoleReq" } } ], @@ -3080,9 +3014,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/applet/add": { - "post": { - "description": "小程序设置-新增", + "/api/role/adminInfo": { + "get": { + "description": "权限管理-管理员信息", "consumes": [ "application/json" ], @@ -3090,9 +3024,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-小程序设置" + "权限管理" ], - "summary": "新增", + "summary": "管理员信息", "parameters": [ { "type": "string", @@ -3102,18 +3036,16 @@ const docTemplate = `{ "required": true }, { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AppletAddReq" - } + "type": "string", + "description": "管理员id", + "name": "adm_id", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -3127,9 +3059,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/applet/authorize": { - "get": { - "description": "设置中心-基础设置", + "/api/role/adminList": { + "post": { + "description": "权限管理-管理员列表", "consumes": [ "application/json" ], @@ -3137,9 +3069,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心" + "权限管理" ], - "summary": "设置中心-基础设置-微信三方应用获取", + "summary": "管理员列表", "parameters": [ { "type": "string", @@ -3147,11 +3079,20 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AdminListReq" + } } ], "responses": { "200": { - "description": "微信授权界面url", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -3165,9 +3106,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/applet/list": { - "get": { - "description": "小程序设置-列表", + "/api/role/bindAdminRole/": { + "post": { + "description": "权限管理-管理员绑定角色", "consumes": [ "application/json" ], @@ -3175,9 +3116,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-小程序设置" + "权限管理" ], - "summary": "列表", + "summary": "管理员绑定角色", "parameters": [ { "type": "string", @@ -3185,13 +3126,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.BindAdminRoleReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "success", "schema": { - "$ref": "#/definitions/hdl.WxOpenThirdPartyAppList" + "type": "string" } }, "400": { @@ -3203,9 +3153,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/applet/unauthorized": { - "get": { - "description": "设置中心-基础设置", + "/api/role/deleteAdmin/{$adm_id}": { + "delete": { + "description": "权限管理-删除管理员", "consumes": [ "application/json" ], @@ -3213,9 +3163,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心" + "权限管理" ], - "summary": "设置中心-基础设置-微信三方应用获取", + "summary": "删除管理员", "parameters": [ { "type": "string", @@ -3241,9 +3191,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/applet/update": { - "post": { - "description": "小程序设置-更新", + "/api/role/deleteRole/{$id}": { + "delete": { + "description": "权限管理-删除角色", "consumes": [ "application/json" ], @@ -3251,9 +3201,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-小程序设置" + "权限管理" ], - "summary": "更新", + "summary": "删除角色", "parameters": [ { "type": "string", @@ -3268,7 +3218,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletUpdateReq" + "$ref": "#/definitions/md.UpdateRoleStateReq" } } ], @@ -3288,9 +3238,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/getMob": { - "get": { - "description": "基础设置-mob获取", + "/api/role/roleBindPermissionGroup": { + "post": { + "description": "权限管理-角色绑定权限组", "consumes": [ "application/json" ], @@ -3298,9 +3248,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "mob获取", + "summary": "角色绑定权限组", "parameters": [ { "type": "string", @@ -3308,13 +3258,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.RoleBindPermissionGroupReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "success", "schema": { - "$ref": "#/definitions/md.SetOssResp" + "type": "string" } }, "400": { @@ -3326,9 +3285,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/getOss": { + "/api/role/roleList": { "get": { - "description": "基础设置-oss获取", + "description": "权限管理-角色列表", "consumes": [ "application/json" ], @@ -3336,9 +3295,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "oss获取", + "summary": "角色列表", "parameters": [ { "type": "string", @@ -3350,9 +3309,9 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK", + "description": "具体看返回内容", "schema": { - "$ref": "#/definitions/md.SetOssResp" + "type": "string" } }, "400": { @@ -3364,9 +3323,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/setMob": { + "/api/role/updateAdmin": { "post": { - "description": "基础设置-mob设置", + "description": "权限管理-修改管理员信息", "consumes": [ "application/json" ], @@ -3374,9 +3333,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "mob设置", + "summary": "修改管理员信息", "parameters": [ { "type": "string", @@ -3391,7 +3350,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SetMobReq" + "$ref": "#/definitions/md.UpdateAdminReq" } } ], @@ -3411,9 +3370,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/setOss": { + "/api/role/updateAdminState": { "post": { - "description": "基础设置-oss设置", + "description": "权限管理-修改管理员状态", "consumes": [ "application/json" ], @@ -3421,9 +3380,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "oss设置", + "summary": "修改管理员状态", "parameters": [ { "type": "string", @@ -3438,7 +3397,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SetOssReq" + "$ref": "#/definitions/md.UpdateAdminStateReq" } } ], @@ -3458,9 +3417,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/wxOpenGet": { - "get": { - "description": "基础设置-微信三方应用获取", + "/api/role/updateRole": { + "post": { + "description": "权限管理-修改角色", "consumes": [ "application/json" ], @@ -3468,9 +3427,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "微信三方应用获取", + "summary": "修改角色", "parameters": [ { "type": "string", @@ -3478,13 +3437,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UpdateRoleReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "success", "schema": { - "$ref": "#/definitions/md.WxOpenGetResp" + "type": "string" } }, "400": { @@ -3496,9 +3464,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/basic/wxOpenSet": { + "/api/role/updateRoleState": { "post": { - "description": "基础设置-微信三方应用设置", + "description": "权限管理-修改角色状态", "consumes": [ "application/json" ], @@ -3506,9 +3474,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "微信三方应用设置", + "summary": "修改角色状态", "parameters": [ { "type": "string", @@ -3523,7 +3491,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.WxOpenSetReq" + "$ref": "#/definitions/md.UpdateRoleStateReq" } } ], @@ -3543,9 +3511,9 @@ const docTemplate = `{ } } }, - "/api/setCenter/share/index": { - "get": { - "description": "邀请链接界面接口", + "/api/setCenter/applet/add": { + "post": { + "description": "小程序设置-新增", "consumes": [ "application/json" ], @@ -3553,9 +3521,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-邀请链接" + "设置中心-小程序设置" ], - "summary": "邀请链接", + "summary": "新增", "parameters": [ { "type": "string", @@ -3563,13 +3531,22 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AppletAddReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "success", "schema": { - "$ref": "#/definitions/md.ShareIndexResp" + "type": "string" } }, "400": { @@ -3581,9 +3558,9 @@ const docTemplate = `{ } } }, - "/api/settleCenter/agent/detail": { - "post": { - "description": "结算中心-代理列表", + "/api/setCenter/applet/authorize": { + "get": { + "description": "设置中心-基础设置", "consumes": [ "application/json" ], @@ -3591,9 +3568,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心" ], - "summary": "代理列表", + "summary": "设置中心-基础设置-微信三方应用获取", "parameters": [ { "type": "string", @@ -3601,20 +3578,11 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.SettleCenterDataDetailReq" - } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "微信授权界面url", "schema": { "type": "string" } @@ -3628,9 +3596,9 @@ const docTemplate = `{ } } }, - "/api/settleCenter/agent/list": { - "post": { - "description": "结算中心-代理列表", + "/api/setCenter/applet/list": { + "get": { + "description": "小程序设置-列表", "consumes": [ "application/json" ], @@ -3638,9 +3606,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心-小程序设置" ], - "summary": "代理列表", + "summary": "列表", "parameters": [ { "type": "string", @@ -3648,22 +3616,51 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/hdl.WxOpenThirdPartyAppList" + } }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, + "400": { + "description": "具体错误", "schema": { - "$ref": "#/definitions/md.SettleCenterDataReq" + "$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": "具体看返回内容 这是data里面的数据", + "description": "success", "schema": { - "$ref": "#/definitions/md.SettleCenterDataRes" + "type": "string" } }, "400": { @@ -3675,9 +3672,9 @@ const docTemplate = `{ } } }, - "/api/settleCenter/agent/save": { + "/api/setCenter/applet/update": { "post": { - "description": "结算中心-代理列表", + "description": "小程序设置-更新", "consumes": [ "application/json" ], @@ -3685,9 +3682,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心-小程序设置" ], - "summary": "代理列表", + "summary": "更新", "parameters": [ { "type": "string", @@ -3702,13 +3699,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SettleCenterDataSaveReq" + "$ref": "#/definitions/md.AppletUpdateReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "success", "schema": { "type": "string" } @@ -3722,9 +3719,9 @@ const docTemplate = `{ } } }, - "/api/settleCenter/medium/detail": { - "post": { - "description": "结算中心-媒体列表", + "/api/setCenter/basic/getMob": { + "get": { + "description": "基础设置-mob获取", "consumes": [ "application/json" ], @@ -3732,9 +3729,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心-基础设置" ], - "summary": "媒体列表", + "summary": "mob获取", "parameters": [ { "type": "string", @@ -3742,22 +3739,51 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/md.SetOssResp" + } }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, + "400": { + "description": "具体错误", "schema": { - "$ref": "#/definitions/md.SettleCenterDataDetailReq" + "$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": "具体看返回内容 这是data里面的数据", + "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/md.SetOssResp" } }, "400": { @@ -3769,9 +3795,9 @@ const docTemplate = `{ } } }, - "/api/settleCenter/medium/list": { + "/api/setCenter/basic/setMob": { "post": { - "description": "结算中心-媒体列表", + "description": "基础设置-mob设置", "consumes": [ "application/json" ], @@ -3779,9 +3805,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心-基础设置" ], - "summary": "媒体列表", + "summary": "mob设置", "parameters": [ { "type": "string", @@ -3796,15 +3822,15 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SettleCenterDataReq" + "$ref": "#/definitions/md.SetMobReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "success", "schema": { - "$ref": "#/definitions/md.SettleCenterDataRes" + "type": "string" } }, "400": { @@ -3816,9 +3842,9 @@ const docTemplate = `{ } } }, - "/api/settleCenter/medium/save": { + "/api/setCenter/basic/setOss": { "post": { - "description": "结算中心-媒体列表", + "description": "基础设置-oss设置", "consumes": [ "application/json" ], @@ -3826,9 +3852,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心-基础设置" ], - "summary": "媒体列表", + "summary": "oss设置", "parameters": [ { "type": "string", @@ -3843,13 +3869,13 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SettleCenterDataSaveReq" + "$ref": "#/definitions/md.SetOssReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "success", "schema": { "type": "string" } @@ -3863,9 +3889,9 @@ const docTemplate = `{ } } }, - "/role/permissionGroupList": { + "/api/setCenter/basic/wxOpenGet": { "get": { - "description": "权限管理-权限组列表", + "description": "基础设置-微信三方应用获取", "consumes": [ "application/json" ], @@ -3873,9 +3899,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "权限管理" + "设置中心-基础设置" ], - "summary": "权限组列表", + "summary": "微信三方应用获取", "parameters": [ { "type": "string", @@ -3883,18 +3909,58 @@ const docTemplate = `{ "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": "管理员id", - "name": "adm_id", - "in": "query", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.WxOpenSetReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "success", "schema": { "type": "string" } @@ -3908,9 +3974,9 @@ const docTemplate = `{ } } }, - "/v1/banner/delete/{$id}": { - "delete": { - "description": "小程序设置-删除", + "/api/setCenter/share/index": { + "get": { + "description": "邀请链接界面接口", "consumes": [ "application/json" ], @@ -3918,9 +3984,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "设置中心-小程序设置" + "设置中心-邀请链接" ], - "summary": "删除", + "summary": "邀请链接", "parameters": [ { "type": "string", @@ -3932,9 +3998,9 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "success", + "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/md.ShareIndexResp" } }, "400": { @@ -3945,29 +4011,394 @@ const docTemplate = `{ } } } - } - }, - "definitions": { - "hdl.WxOpenThirdPartyAppList": { - "type": "object", - "properties": { - "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" + }, + "/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": { + "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" @@ -5299,6 +5730,21 @@ const docTemplate = `{ } } }, + "md.DataCenterOriginalDataMoreApplicationDoingReq": { + "type": "object", + "properties": { + "date": { + "type": "string", + "example": "2024-08-28" + }, + "ids": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReqData" + } + } + } + }, "md.DataCenterOriginalDataMoreApplicationReq": { "type": "object", "properties": { @@ -5414,6 +5860,17 @@ const docTemplate = `{ } } }, + "md.DataCenterOriginalDataOneApplicationDoingReqData": { + "type": "object", + "properties": { + "ad_id": { + "type": "string" + }, + "app_id": { + "type": "string" + } + } + }, "md.DataCenterOriginalDataOneApplicationDoingRes": { "type": "object", "properties": { @@ -5634,45 +6091,216 @@ const docTemplate = `{ }, "name": { "type": "string", - "example": "名称" + "example": "名称" + }, + "platform_retention_rate": { + "type": "string", + "example": "平台留存百分比" + } + } + }, + "md.DivisionStrategyReq": { + "type": "object", + "properties": { + "limit": { + "type": "string" + }, + "name": { + "type": "string" + }, + "page": { + "type": "string" + } + } + }, + "md.DivisionStrategyRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DivisionStrategyData" + } + }, + "total": { + "type": "integer" + } + } + }, + "md.FinanceCenterDataAgentDetail": { + "type": "object", + "properties": { + "account": { + "type": "string", + "example": "媒体账号" + }, + "all_income": { + "type": "string", + "example": "合计收益" + }, + "change_income": { + "type": "string", + "example": "调价留存" + }, + "commission_income": { + "type": "string", + "example": "佣金留存" + }, + "income": { + "type": "string", + "example": "渠道结算" + }, + "invoice": { + "$ref": "#/definitions/md.Invoice" + }, + "name": { + "type": "string", + "example": "媒体名称" + }, + "other_income": { + "type": "string", + "example": "其他调整" + }, + "pay_state": { + "type": "string", + "example": "结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)" + }, + "platform_income": { + "type": "string", + "example": "平台留存" + }, + "settle_file": { + "type": "string", + "example": "结算单" + }, + "source": { + "type": "string", + "example": "结算标示" + }, + "state": { + "type": "string", + "example": "结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)" + }, + "time_str": { + "type": "string", + "example": "业务时间" + }, + "top_income": { + "type": "string", + "example": "上游结算" + } + } + }, + "md.FinanceCenterDataAgentDetailRes": { + "type": "object", + "properties": { + "business_kind": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "data": { + "$ref": "#/definitions/md.FinanceCenterDataAgentDetail" + }, + "invoice_cate": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "invoice_state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "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" + } + } + } + }, + "md.FinanceCenterDataData": { + "type": "object", + "properties": { + "all_income": { + "type": "string", + "example": "合计收益" + }, + "change_income": { + "type": "string", + "example": "调价留存" + }, + "commission_income": { + "type": "string", + "example": "佣金留存" + }, + "id": { + "type": "string" + }, + "label": { + "type": "string" + }, + "medium_income": { + "type": "string", + "example": "媒体结算" + }, + "name": { + "type": "string", + "example": "媒体名称" + }, + "other_income": { + "type": "string", + "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:预付)" }, - "platform_retention_rate": { + "state": { "type": "string", - "example": "平台留存百分比" - } - } - }, - "md.DivisionStrategyReq": { - "type": "object", - "properties": { - "limit": { - "type": "string" + "example": "结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)" }, - "name": { - "type": "string" + "time_str": { + "type": "string", + "example": "业务时间" }, - "page": { - "type": "string" + "top_income": { + "type": "string", + "example": "上游结算" } } }, - "md.DivisionStrategyRes": { + "md.FinanceCenterDataDetail": { "type": "object", "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.DivisionStrategyData" - } + "account": { + "type": "string", + "example": "媒体账号" }, - "total": { - "type": "integer" - } - } - }, - "md.FinanceCenterDataData": { - "type": "object", - "properties": { "all_income": { "type": "string", "example": "合计收益" @@ -5685,11 +6313,8 @@ const docTemplate = `{ "type": "string", "example": "佣金留存" }, - "id": { - "type": "string" - }, - "label": { - "type": "string" + "invoice": { + "$ref": "#/definitions/md.Invoice" }, "medium_income": { "type": "string", @@ -5711,9 +6336,13 @@ const docTemplate = `{ "type": "string", "example": "平台留存" }, - "settle_type": { + "settle_file": { "type": "string", - "example": "结算单类型(1:日结 2:周结 3:月结 4:预付)" + "example": "结算单" + }, + "source": { + "type": "string", + "example": "结算标示" }, "state": { "type": "string", @@ -5729,6 +6358,50 @@ const docTemplate = `{ } } }, + "md.FinanceCenterDataDetailRes": { + "type": "object", + "properties": { + "business_kind": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "data": { + "$ref": "#/definitions/md.FinanceCenterDataDetail" + }, + "invoice_cate": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "invoice_state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "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" + } + } + } + }, "md.FinanceCenterDataReq": { "type": "object", "properties": { @@ -5789,6 +6462,103 @@ const docTemplate = `{ } } }, + "md.IndexAppListData": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.IndexAppListDataList" + } + }, + "logo": { + "type": "string" + }, + "name": { + "type": "string" + }, + "table_list": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "md.IndexAppListDataList": { + "type": "object", + "properties": { + "bili": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "md.IndexAppListReq": { + "type": "object", + "properties": { + "end_date": { + "type": "string", + "example": "2024-08-30" + }, + "name": { + "type": "string" + }, + "sort": { + "type": "string", + "example": "排序" + }, + "start_date": { + "type": "string", + "example": "2024-08-30" + } + } + }, + "md.IndexAppListRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.IndexAppListData" + } + }, + "sort": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + } + } + }, + "md.Invoice": { + "type": "object", + "properties": { + "count": { + "type": "string" + }, + "file": { + "type": "array", + "items": { + "$ref": "#/definitions/md.InvoiceFile" + } + }, + "time": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, "md.InvoiceFile": { "type": "object", "properties": { @@ -5950,6 +6720,95 @@ const docTemplate = `{ } } }, + "md.MediumQualificationBankData": { + "type": "object", + "properties": { + "account": { + "type": "string", + "example": "账号" + }, + "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": "开户许可证" + }, + "medium_id": { + "type": "string", + "example": "代理id" + }, + "memo": { + "type": "string", + "example": "备注 审核时填写的" + }, + "state": { + "type": "string", + "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + }, + "unified_social_credit_code": { + "type": "string", + "example": "统一社会信用代码" + } + } + }, + "md.MediumQualificationBankRes": { + "type": "object", + "properties": { + "currency_conf": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.MediumQualificationBankData" + } + }, + "state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "total": { + "type": "integer" + }, + "type": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + } + } + }, "md.MediumQualificationContactData": { "type": "object", "properties": { diff --git a/docs/swagger.json b/docs/swagger.json index b3786b7..c9d7777 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -796,7 +796,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" + "$ref": "#/definitions/md.DataCenterOriginalDataMoreApplicationDoingReq" } } ], @@ -836,15 +836,6 @@ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq" - } } ], "responses": { @@ -1230,9 +1221,9 @@ } } }, - "/api/financeCenter/medium/detail": { + "/api/financeCenter/agent/detail": { "post": { - "description": "财务中心-媒体详情", + "description": "财务中心-代理详情", "consumes": [ "application/json" ], @@ -1242,7 +1233,7 @@ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体详情", + "summary": "代理详情", "parameters": [ { "type": "string", @@ -1265,7 +1256,7 @@ "200": { "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.FinanceCenterDataRes" + "$ref": "#/definitions/md.FinanceCenterDataAgentDetailRes" } }, "400": { @@ -1277,9 +1268,9 @@ } } }, - "/api/financeCenter/medium/invoice/save": { + "/api/financeCenter/agent/invoice/save": { "post": { - "description": "财务中心-媒体详情-发票保存", + "description": "财务中心-代理详情-发票保存", "consumes": [ "application/json" ], @@ -1289,7 +1280,7 @@ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体详情-发票保存", + "summary": "代理详情-发票保存", "parameters": [ { "type": "string", @@ -1324,9 +1315,9 @@ } } }, - "/api/financeCenter/medium/list": { + "/api/financeCenter/agent/list": { "post": { - "description": "财务中心-媒体列表", + "description": "财务中心-代理列表", "consumes": [ "application/json" ], @@ -1336,7 +1327,7 @@ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体列表", + "summary": "代理列表", "parameters": [ { "type": "string", @@ -1371,9 +1362,9 @@ } } }, - "/api/financeCenter/medium/other/income/save": { + "/api/financeCenter/agent/other/income/save": { "post": { - "description": "财务中心-媒体详情-其他收益调整", + "description": "财务中心-代理详情-其他收益调整", "consumes": [ "application/json" ], @@ -1383,7 +1374,7 @@ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体详情-其他收益调整", + "summary": "代理详情-其他收益调整", "parameters": [ { "type": "string", @@ -1418,9 +1409,9 @@ } } }, - "/api/financeCenter/medium/pay/save": { + "/api/financeCenter/agent/pay/save": { "post": { - "description": "财务中心-媒体详情-确认支付", + "description": "财务中心-代理详情-确认支付", "consumes": [ "application/json" ], @@ -1430,7 +1421,7 @@ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体详情-确认支付", + "summary": "代理详情-确认支付", "parameters": [ { "type": "string", @@ -1465,9 +1456,9 @@ } } }, - "/api/financeCenter/medium/settle/file/save": { + "/api/financeCenter/agent/settle/file/save": { "post": { - "description": "财务中心-媒体详情-结算单保存", + "description": "财务中心-代理详情-结算单保存", "consumes": [ "application/json" ], @@ -1477,7 +1468,7 @@ "tags": [ "财务中心------嘉俊" ], - "summary": "媒体详情-结算单保存", + "summary": "代理详情-结算单保存", "parameters": [ { "type": "string", @@ -1512,9 +1503,9 @@ } } }, - "/api/login": { + "/api/financeCenter/medium/detail": { "post": { - "description": "登入", + "description": "财务中心-媒体详情", "consumes": [ "application/json" ], @@ -1522,25 +1513,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.CommDetailReq" } } ], "responses": { "200": { - "description": "token", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.LoginResponse" + "$ref": "#/definitions/md.FinanceCenterDataDetailRes" } }, "400": { @@ -1552,9 +1550,9 @@ } } }, - "/api/mediumCenter/agent/bind/medium/list": { + "/api/financeCenter/medium/invoice/save": { "post": { - "description": "媒体中心-代理绑定媒体列表", + "description": "财务中心-媒体详情-发票保存", "consumes": [ "application/json" ], @@ -1562,9 +1560,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "财务中心------嘉俊" ], - "summary": "代理绑定媒体列表", + "summary": "媒体详情-发票保存", "parameters": [ { "type": "string", @@ -1579,7 +1577,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListReq" + "$ref": "#/definitions/md.InvoiceReq" } } ], @@ -1587,7 +1585,7 @@ "200": { "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.MediumListRes" + "type": "string" } }, "400": { @@ -1599,9 +1597,9 @@ } } }, - "/api/mediumCenter/agent/list": { + "/api/financeCenter/medium/list": { "post": { - "description": "媒体中心-代理列表", + "description": "财务中心-媒体列表", "consumes": [ "application/json" ], @@ -1609,9 +1607,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "财务中心------嘉俊" ], - "summary": "代理列表", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -1626,7 +1624,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AgentQualificationEnterpriseReq" + "$ref": "#/definitions/md.FinanceCenterDataReq" } } ], @@ -1634,7 +1632,7 @@ "200": { "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AgentQualificationEnterpriseRes" + "$ref": "#/definitions/md.FinanceCenterDataRes" } }, "400": { @@ -1646,9 +1644,9 @@ } } }, - "/api/mediumCenter/applet/application/ad/space/audit": { + "/api/financeCenter/medium/other/income/save": { "post": { - "description": "小程序应用-广告位审核", + "description": "财务中心-媒体详情-其他收益调整", "consumes": [ "application/json" ], @@ -1656,9 +1654,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "财务中心------嘉俊" ], - "summary": "广告位审核", + "summary": "媒体详情-其他收益调整", "parameters": [ { "type": "string", @@ -1673,13 +1671,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceSaveReq" + "$ref": "#/definitions/md.OtherIncomeReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { "type": "string" } @@ -1693,9 +1691,9 @@ } } }, - "/api/mediumCenter/applet/application/ad/space/list": { + "/api/financeCenter/medium/pay/save": { "post": { - "description": "媒体中心-媒体列表", + "description": "财务中心-媒体详情-确认支付", "consumes": [ "application/json" ], @@ -1703,9 +1701,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "财务中心------嘉俊" ], - "summary": "媒体列表", + "summary": "媒体详情-确认支付", "parameters": [ { "type": "string", @@ -1720,15 +1718,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListReq" + "$ref": "#/definitions/md.CommDetailReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListRes" + "type": "string" } }, "400": { @@ -1740,9 +1738,9 @@ } } }, - "/api/mediumCenter/applet/application/ad/space/save": { + "/api/financeCenter/medium/settle/file/save": { "post": { - "description": "小程序应用-广告位列表", + "description": "财务中心-媒体详情-结算单保存", "consumes": [ "application/json" ], @@ -1750,9 +1748,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "财务中心------嘉俊" ], - "summary": "广告位列表", + "summary": "媒体详情-结算单保存", "parameters": [ { "type": "string", @@ -1767,15 +1765,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceListReq" + "$ref": "#/definitions/md.SettleFileReq" } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationAdSpaceListRes" + "type": "string" } }, "400": { @@ -1787,9 +1785,9 @@ } } }, - "/api/mediumCenter/applet/application/audit": { + "/api/index/app/list": { "post": { - "description": "小程序应用-审核", + "description": "数据中心-数据明细", "consumes": [ "application/json" ], @@ -1797,9 +1795,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "数据中心------嘉俊" ], - "summary": "审核", + "summary": "数据明细", "parameters": [ { "type": "string", @@ -1814,15 +1812,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletApplicationSaveReq" + "$ref": "#/definitions/md.IndexAppListReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.IndexAppListRes" } }, "400": { @@ -1834,9 +1832,9 @@ } } }, - "/api/mediumCenter/applet/application/list": { - "post": { - "description": "小程序应用-列表数据", + "/api/index/base": { + "get": { + "description": "首页-右上角基本数据", "consumes": [ "application/json" ], @@ -1844,9 +1842,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "首页------嘉俊" ], - "summary": "应用列表", + "summary": "右上角基本数据", "parameters": [ { "type": "string", @@ -1854,22 +1852,13 @@ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AppletApplicationListReq" - } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationListRes" + "type": "string" } }, "400": { @@ -1881,9 +1870,9 @@ } } }, - "/api/mediumCenter/applet/application/medium/list": { - "post": { - "description": "媒体中心-媒体列表", + "/api/index/total": { + "get": { + "description": "首页-统计数据", "consumes": [ "application/json" ], @@ -1891,9 +1880,9 @@ "application/json" ], "tags": [ - "媒体中心------嘉俊" + "首页------嘉俊" ], - "summary": "媒体列表", + "summary": "统计数据", "parameters": [ { "type": "string", @@ -1901,22 +1890,13 @@ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AppletApplicationMediumListReq" - } } ], "responses": { "200": { - "description": "具体看返回内容---这是data里面的数据", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "$ref": "#/definitions/md.AppletApplicationMediumListRes" + "type": "string" } }, "400": { @@ -1928,9 +1908,9 @@ } } }, - "/api/mediumCenter/medium/bind/agent/del": { + "/api/login": { "post": { - "description": "媒体中心-媒体绑定代理删除", + "description": "登入", "consumes": [ "application/json" ], @@ -1938,32 +1918,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.MediumListDelReq" + "$ref": "#/definitions/md.LoginReq" } } ], "responses": { "200": { - "description": "具体看返回内容 ", + "description": "token", "schema": { - "type": "string" + "$ref": "#/definitions/md.LoginResponse" } }, "400": { @@ -1975,9 +1948,9 @@ } } }, - "/api/mediumCenter/medium/bind/agent/list": { + "/api/mediumCenter/agent/bind/medium/list": { "post": { - "description": "媒体中心-媒体绑定代理列表", + "description": "媒体中心-代理绑定媒体列表", "consumes": [ "application/json" ], @@ -1987,7 +1960,7 @@ "tags": [ "媒体中心------嘉俊" ], - "summary": "媒体绑定代理列表", + "summary": "代理绑定媒体列表", "parameters": [ { "type": "string", @@ -2022,9 +1995,9 @@ } } }, - "/api/mediumCenter/medium/bind/agent/save": { + "/api/mediumCenter/agent/list": { "post": { - "description": "媒体中心-媒体绑定代理操作", + "description": "媒体中心-代理列表", "consumes": [ "application/json" ], @@ -2034,7 +2007,7 @@ "tags": [ "媒体中心------嘉俊" ], - "summary": "媒体绑定代理操作", + "summary": "代理列表", "parameters": [ { "type": "string", @@ -2049,15 +2022,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumListSaveReq" + "$ref": "#/definitions/md.AgentQualificationEnterpriseReq" } } ], "responses": { "200": { - "description": "具体看返回内容 ", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AgentQualificationEnterpriseRes" } }, "400": { @@ -2069,9 +2042,9 @@ } } }, - "/api/mediumCenter/medium/list": { + "/api/mediumCenter/applet/application/ad/space/audit": { "post": { - "description": "媒体中心-媒体列表", + "description": "小程序应用-广告位审核", "consumes": [ "application/json" ], @@ -2081,7 +2054,7 @@ "tags": [ "媒体中心------嘉俊" ], - "summary": "媒体列表", + "summary": "广告位审核", "parameters": [ { "type": "string", @@ -2096,15 +2069,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceSaveReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容", "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" + "type": "string" } }, "400": { @@ -2116,21 +2089,9 @@ } } }, - "/api/mediumQualification/bank": { - "post": { - "responses": { - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/mediumQualification/bank/audit": { + "/api/mediumCenter/applet/application/ad/space/list": { "post": { - "description": "媒体资质-银行资质审核", + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -2138,9 +2099,9 @@ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "媒体中心------嘉俊" ], - "summary": "银行资质审核", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -2155,15 +2116,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationAdSpaceMediumListRes" } }, "400": { @@ -2175,9 +2136,9 @@ } } }, - "/api/mediumQualification/contact": { + "/api/mediumCenter/applet/application/ad/space/save": { "post": { - "description": "媒体资质-联系方式", + "description": "小程序应用-广告位列表", "consumes": [ "application/json" ], @@ -2185,9 +2146,9 @@ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "媒体中心------嘉俊" ], - "summary": "联系方式", + "summary": "广告位列表", "parameters": [ { "type": "string", @@ -2202,15 +2163,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + "$ref": "#/definitions/md.AppletApplicationAdSpaceListReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "$ref": "#/definitions/md.MediumQualificationContactRes" + "$ref": "#/definitions/md.AppletApplicationAdSpaceListRes" } }, "400": { @@ -2222,9 +2183,9 @@ } } }, - "/api/mediumQualification/contact/audit": { + "/api/mediumCenter/applet/application/audit": { "post": { - "description": "媒体资质-联系方式审核", + "description": "小程序应用-审核", "consumes": [ "application/json" ], @@ -2232,9 +2193,9 @@ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "媒体中心------嘉俊" ], - "summary": "联系方式审核", + "summary": "审核", "parameters": [ { "type": "string", @@ -2249,7 +2210,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.AppletApplicationSaveReq" } } ], @@ -2269,9 +2230,9 @@ } } }, - "/api/mediumQualification/enterprise": { + "/api/mediumCenter/applet/application/list": { "post": { - "description": "媒体资质-主体资质", + "description": "小程序应用-列表数据", "consumes": [ "application/json" ], @@ -2279,9 +2240,9 @@ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "媒体中心------嘉俊" ], - "summary": "主体资质", + "summary": "应用列表", "parameters": [ { "type": "string", @@ -2296,15 +2257,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" + "$ref": "#/definitions/md.AppletApplicationListReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" + "$ref": "#/definitions/md.AppletApplicationListRes" } }, "400": { @@ -2316,9 +2277,9 @@ } } }, - "/api/mediumQualification/enterprise/audit": { + "/api/mediumCenter/applet/application/medium/list": { "post": { - "description": "媒体资质-主体资质审核", + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -2326,9 +2287,9 @@ "application/json" ], "tags": [ - "媒体资质------嘉俊" + "媒体中心------嘉俊" ], - "summary": "主体资质审核", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -2343,15 +2304,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + "$ref": "#/definitions/md.AppletApplicationMediumListReq" } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容---这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.AppletApplicationMediumListRes" } }, "400": { @@ -2363,9 +2324,9 @@ } } }, - "/api/qualification/select/base": { - "get": { - "description": "资质认证-认证下拉框选择内容", + "/api/mediumCenter/medium/bind/agent/del": { + "post": { + "description": "媒体中心-媒体绑定代理删除", "consumes": [ "application/json" ], @@ -2373,9 +2334,9 @@ "application/json" ], "tags": [ - "资质认证------嘉俊" + "媒体中心------嘉俊" ], - "summary": "认证下拉框选择内容", + "summary": "媒体绑定代理删除", "parameters": [ { "type": "string", @@ -2383,51 +2344,20 @@ "name": "Authorization", "in": "header", "required": true - } - ], - "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", + "description": "请求参数", + "name": "args", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.RegisterForAgentReq" + "$ref": "#/definitions/md.MediumListDelReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 ", "schema": { "type": "string" } @@ -2441,9 +2371,9 @@ } } }, - "/api/registerForMedium": { + "/api/mediumCenter/medium/bind/agent/list": { "post": { - "description": "注册模块-媒体注册", + "description": "媒体中心-媒体绑定代理列表", "consumes": [ "application/json" ], @@ -2451,25 +2381,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.RegisterForMediumReq" + "$ref": "#/definitions/md.MediumListReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumListRes" } }, "400": { @@ -2481,9 +2418,9 @@ } } }, - "/api/role/addAdmin": { + "/api/mediumCenter/medium/bind/agent/save": { "post": { - "description": "权限管理-新增管理员", + "description": "媒体中心-媒体绑定代理操作", "consumes": [ "application/json" ], @@ -2491,9 +2428,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "新增管理员", + "summary": "媒体绑定代理操作", "parameters": [ { "type": "string", @@ -2508,13 +2445,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AddAdminReq" + "$ref": "#/definitions/md.MediumListSaveReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 ", "schema": { "type": "string" } @@ -2528,9 +2465,9 @@ } } }, - "/api/role/addRole": { + "/api/mediumCenter/medium/list": { "post": { - "description": "权限管理-添加角色", + "description": "媒体中心-媒体列表", "consumes": [ "application/json" ], @@ -2538,9 +2475,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体中心------嘉俊" ], - "summary": "添加角色", + "summary": "媒体列表", "parameters": [ { "type": "string", @@ -2555,15 +2492,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AddRoleReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" } }, "400": { @@ -2575,9 +2512,9 @@ } } }, - "/api/role/adminInfo": { - "get": { - "description": "权限管理-管理员信息", + "/api/mediumQualification/bank": { + "post": { + "description": "媒体资质-银行资质", "consumes": [ "application/json" ], @@ -2585,9 +2522,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "管理员信息", + "summary": "银行资质", "parameters": [ { "type": "string", @@ -2597,18 +2534,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.MediumQualificationEnterpriseReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumQualificationBankRes" } }, "400": { @@ -2620,9 +2559,9 @@ } } }, - "/api/role/adminList": { + "/api/mediumQualification/bank/audit": { "post": { - "description": "权限管理-管理员列表", + "description": "媒体资质-银行资质审核", "consumes": [ "application/json" ], @@ -2630,9 +2569,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "管理员列表", + "summary": "银行资质审核", "parameters": [ { "type": "string", @@ -2647,7 +2586,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AdminListReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" } } ], @@ -2667,9 +2606,9 @@ } } }, - "/api/role/bindAdminRole/": { + "/api/mediumQualification/contact": { "post": { - "description": "权限管理-管理员绑定角色", + "description": "媒体资质-联系方式", "consumes": [ "application/json" ], @@ -2677,9 +2616,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "管理员绑定角色", + "summary": "联系方式", "parameters": [ { "type": "string", @@ -2694,15 +2633,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.BindAdminRoleReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumQualificationContactRes" } }, "400": { @@ -2714,9 +2653,9 @@ } } }, - "/api/role/deleteAdmin/{$adm_id}": { - "delete": { - "description": "权限管理-删除管理员", + "/api/mediumQualification/contact/audit": { + "post": { + "description": "媒体资质-联系方式审核", "consumes": [ "application/json" ], @@ -2724,9 +2663,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "删除管理员", + "summary": "联系方式审核", "parameters": [ { "type": "string", @@ -2734,11 +2673,20 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" + } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -2752,9 +2700,9 @@ } } }, - "/api/role/deleteRole/{$id}": { - "delete": { - "description": "权限管理-删除角色", + "/api/mediumQualification/enterprise": { + "post": { + "description": "媒体资质-主体资质", "consumes": [ "application/json" ], @@ -2762,9 +2710,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "删除角色", + "summary": "主体资质", "parameters": [ { "type": "string", @@ -2779,15 +2727,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容 这是data里面的数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.MediumQualificationEnterpriseRes" } }, "400": { @@ -2799,9 +2747,9 @@ } } }, - "/api/role/roleBindPermissionGroup": { + "/api/mediumQualification/enterprise/audit": { "post": { - "description": "权限管理-角色绑定权限组", + "description": "媒体资质-主体资质审核", "consumes": [ "application/json" ], @@ -2809,9 +2757,9 @@ "application/json" ], "tags": [ - "权限管理" + "媒体资质------嘉俊" ], - "summary": "角色绑定权限组", + "summary": "主体资质审核", "parameters": [ { "type": "string", @@ -2826,13 +2774,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.RoleBindPermissionGroupReq" + "$ref": "#/definitions/md.MediumQualificationEnterpriseAuditReq" } } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -2846,9 +2794,9 @@ } } }, - "/api/role/roleList": { + "/api/qualification/select/base": { "get": { - "description": "权限管理-角色列表", + "description": "资质认证-认证下拉框选择内容", "consumes": [ "application/json" ], @@ -2856,9 +2804,9 @@ "application/json" ], "tags": [ - "权限管理" + "资质认证------嘉俊" ], - "summary": "角色列表", + "summary": "认证下拉框选择内容", "parameters": [ { "type": "string", @@ -2884,9 +2832,9 @@ } } }, - "/api/role/updateAdmin": { + "/api/registerForAgent": { "post": { - "description": "权限管理-修改管理员信息", + "description": "注册模块-渠道代理注册", "consumes": [ "application/json" ], @@ -2894,24 +2842,17 @@ "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.UpdateAdminReq" + "$ref": "#/definitions/md.RegisterForAgentReq" } } ], @@ -2931,9 +2872,9 @@ } } }, - "/api/role/updateAdminState": { + "/api/registerForMedium": { "post": { - "description": "权限管理-修改管理员状态", + "description": "注册模块-媒体注册", "consumes": [ "application/json" ], @@ -2941,24 +2882,17 @@ "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.UpdateAdminStateReq" + "$ref": "#/definitions/md.RegisterForMediumReq" } } ], @@ -2978,9 +2912,9 @@ } } }, - "/api/role/updateRole": { + "/api/role/addAdmin": { "post": { - "description": "权限管理-修改角色", + "description": "权限管理-新增管理员", "consumes": [ "application/json" ], @@ -2990,7 +2924,7 @@ "tags": [ "权限管理" ], - "summary": "修改角色", + "summary": "新增管理员", "parameters": [ { "type": "string", @@ -3005,7 +2939,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleReq" + "$ref": "#/definitions/md.AddAdminReq" } } ], @@ -3025,9 +2959,9 @@ } } }, - "/api/role/updateRoleState": { + "/api/role/addRole": { "post": { - "description": "权限管理-修改角色状态", + "description": "权限管理-添加角色", "consumes": [ "application/json" ], @@ -3037,7 +2971,7 @@ "tags": [ "权限管理" ], - "summary": "修改角色状态", + "summary": "添加角色", "parameters": [ { "type": "string", @@ -3052,7 +2986,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UpdateRoleStateReq" + "$ref": "#/definitions/md.AddRoleReq" } } ], @@ -3072,9 +3006,9 @@ } } }, - "/api/setCenter/applet/add": { - "post": { - "description": "小程序设置-新增", + "/api/role/adminInfo": { + "get": { + "description": "权限管理-管理员信息", "consumes": [ "application/json" ], @@ -3082,9 +3016,9 @@ "application/json" ], "tags": [ - "设置中心-小程序设置" + "权限管理" ], - "summary": "新增", + "summary": "管理员信息", "parameters": [ { "type": "string", @@ -3094,18 +3028,16 @@ "required": true }, { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AppletAddReq" - } + "type": "string", + "description": "管理员id", + "name": "adm_id", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "success", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -3119,9 +3051,9 @@ } } }, - "/api/setCenter/applet/authorize": { - "get": { - "description": "设置中心-基础设置", + "/api/role/adminList": { + "post": { + "description": "权限管理-管理员列表", "consumes": [ "application/json" ], @@ -3129,9 +3061,9 @@ "application/json" ], "tags": [ - "设置中心" + "权限管理" ], - "summary": "设置中心-基础设置-微信三方应用获取", + "summary": "管理员列表", "parameters": [ { "type": "string", @@ -3139,11 +3071,20 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AdminListReq" + } } ], "responses": { "200": { - "description": "微信授权界面url", + "description": "具体看返回内容", "schema": { "type": "string" } @@ -3157,9 +3098,9 @@ } } }, - "/api/setCenter/applet/list": { - "get": { - "description": "小程序设置-列表", + "/api/role/bindAdminRole/": { + "post": { + "description": "权限管理-管理员绑定角色", "consumes": [ "application/json" ], @@ -3167,9 +3108,9 @@ "application/json" ], "tags": [ - "设置中心-小程序设置" + "权限管理" ], - "summary": "列表", + "summary": "管理员绑定角色", "parameters": [ { "type": "string", @@ -3177,13 +3118,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.BindAdminRoleReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "success", "schema": { - "$ref": "#/definitions/hdl.WxOpenThirdPartyAppList" + "type": "string" } }, "400": { @@ -3195,9 +3145,9 @@ } } }, - "/api/setCenter/applet/unauthorized": { - "get": { - "description": "设置中心-基础设置", + "/api/role/deleteAdmin/{$adm_id}": { + "delete": { + "description": "权限管理-删除管理员", "consumes": [ "application/json" ], @@ -3205,9 +3155,9 @@ "application/json" ], "tags": [ - "设置中心" + "权限管理" ], - "summary": "设置中心-基础设置-微信三方应用获取", + "summary": "删除管理员", "parameters": [ { "type": "string", @@ -3233,9 +3183,9 @@ } } }, - "/api/setCenter/applet/update": { - "post": { - "description": "小程序设置-更新", + "/api/role/deleteRole/{$id}": { + "delete": { + "description": "权限管理-删除角色", "consumes": [ "application/json" ], @@ -3243,9 +3193,9 @@ "application/json" ], "tags": [ - "设置中心-小程序设置" + "权限管理" ], - "summary": "更新", + "summary": "删除角色", "parameters": [ { "type": "string", @@ -3260,7 +3210,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AppletUpdateReq" + "$ref": "#/definitions/md.UpdateRoleStateReq" } } ], @@ -3280,9 +3230,9 @@ } } }, - "/api/setCenter/basic/getMob": { - "get": { - "description": "基础设置-mob获取", + "/api/role/roleBindPermissionGroup": { + "post": { + "description": "权限管理-角色绑定权限组", "consumes": [ "application/json" ], @@ -3290,9 +3240,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "mob获取", + "summary": "角色绑定权限组", "parameters": [ { "type": "string", @@ -3300,13 +3250,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.RoleBindPermissionGroupReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "success", "schema": { - "$ref": "#/definitions/md.SetOssResp" + "type": "string" } }, "400": { @@ -3318,9 +3277,9 @@ } } }, - "/api/setCenter/basic/getOss": { + "/api/role/roleList": { "get": { - "description": "基础设置-oss获取", + "description": "权限管理-角色列表", "consumes": [ "application/json" ], @@ -3328,9 +3287,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "oss获取", + "summary": "角色列表", "parameters": [ { "type": "string", @@ -3342,9 +3301,9 @@ ], "responses": { "200": { - "description": "OK", + "description": "具体看返回内容", "schema": { - "$ref": "#/definitions/md.SetOssResp" + "type": "string" } }, "400": { @@ -3356,9 +3315,9 @@ } } }, - "/api/setCenter/basic/setMob": { + "/api/role/updateAdmin": { "post": { - "description": "基础设置-mob设置", + "description": "权限管理-修改管理员信息", "consumes": [ "application/json" ], @@ -3366,9 +3325,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "mob设置", + "summary": "修改管理员信息", "parameters": [ { "type": "string", @@ -3383,7 +3342,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SetMobReq" + "$ref": "#/definitions/md.UpdateAdminReq" } } ], @@ -3403,9 +3362,9 @@ } } }, - "/api/setCenter/basic/setOss": { + "/api/role/updateAdminState": { "post": { - "description": "基础设置-oss设置", + "description": "权限管理-修改管理员状态", "consumes": [ "application/json" ], @@ -3413,9 +3372,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "oss设置", + "summary": "修改管理员状态", "parameters": [ { "type": "string", @@ -3430,7 +3389,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SetOssReq" + "$ref": "#/definitions/md.UpdateAdminStateReq" } } ], @@ -3450,9 +3409,9 @@ } } }, - "/api/setCenter/basic/wxOpenGet": { - "get": { - "description": "基础设置-微信三方应用获取", + "/api/role/updateRole": { + "post": { + "description": "权限管理-修改角色", "consumes": [ "application/json" ], @@ -3460,9 +3419,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "微信三方应用获取", + "summary": "修改角色", "parameters": [ { "type": "string", @@ -3470,13 +3429,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UpdateRoleReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "success", "schema": { - "$ref": "#/definitions/md.WxOpenGetResp" + "type": "string" } }, "400": { @@ -3488,9 +3456,9 @@ } } }, - "/api/setCenter/basic/wxOpenSet": { + "/api/role/updateRoleState": { "post": { - "description": "基础设置-微信三方应用设置", + "description": "权限管理-修改角色状态", "consumes": [ "application/json" ], @@ -3498,9 +3466,9 @@ "application/json" ], "tags": [ - "设置中心-基础设置" + "权限管理" ], - "summary": "微信三方应用设置", + "summary": "修改角色状态", "parameters": [ { "type": "string", @@ -3515,7 +3483,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.WxOpenSetReq" + "$ref": "#/definitions/md.UpdateRoleStateReq" } } ], @@ -3535,9 +3503,9 @@ } } }, - "/api/setCenter/share/index": { - "get": { - "description": "邀请链接界面接口", + "/api/setCenter/applet/add": { + "post": { + "description": "小程序设置-新增", "consumes": [ "application/json" ], @@ -3545,9 +3513,9 @@ "application/json" ], "tags": [ - "设置中心-邀请链接" + "设置中心-小程序设置" ], - "summary": "邀请链接", + "summary": "新增", "parameters": [ { "type": "string", @@ -3555,13 +3523,22 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AppletAddReq" + } } ], "responses": { "200": { - "description": "OK", + "description": "success", "schema": { - "$ref": "#/definitions/md.ShareIndexResp" + "type": "string" } }, "400": { @@ -3573,9 +3550,9 @@ } } }, - "/api/settleCenter/agent/detail": { - "post": { - "description": "结算中心-代理列表", + "/api/setCenter/applet/authorize": { + "get": { + "description": "设置中心-基础设置", "consumes": [ "application/json" ], @@ -3583,9 +3560,9 @@ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心" ], - "summary": "代理列表", + "summary": "设置中心-基础设置-微信三方应用获取", "parameters": [ { "type": "string", @@ -3593,20 +3570,11 @@ "name": "Authorization", "in": "header", "required": true - }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.SettleCenterDataDetailReq" - } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "微信授权界面url", "schema": { "type": "string" } @@ -3620,9 +3588,9 @@ } } }, - "/api/settleCenter/agent/list": { - "post": { - "description": "结算中心-代理列表", + "/api/setCenter/applet/list": { + "get": { + "description": "小程序设置-列表", "consumes": [ "application/json" ], @@ -3630,9 +3598,9 @@ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心-小程序设置" ], - "summary": "代理列表", + "summary": "列表", "parameters": [ { "type": "string", @@ -3640,22 +3608,51 @@ "name": "Authorization", "in": "header", "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/hdl.WxOpenThirdPartyAppList" + } }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, + "400": { + "description": "具体错误", "schema": { - "$ref": "#/definitions/md.SettleCenterDataReq" + "$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": "具体看返回内容 这是data里面的数据", + "description": "success", "schema": { - "$ref": "#/definitions/md.SettleCenterDataRes" + "type": "string" } }, "400": { @@ -3667,9 +3664,9 @@ } } }, - "/api/settleCenter/agent/save": { + "/api/setCenter/applet/update": { "post": { - "description": "结算中心-代理列表", + "description": "小程序设置-更新", "consumes": [ "application/json" ], @@ -3677,9 +3674,9 @@ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心-小程序设置" ], - "summary": "代理列表", + "summary": "更新", "parameters": [ { "type": "string", @@ -3694,13 +3691,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SettleCenterDataSaveReq" + "$ref": "#/definitions/md.AppletUpdateReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "success", "schema": { "type": "string" } @@ -3714,9 +3711,9 @@ } } }, - "/api/settleCenter/medium/detail": { - "post": { - "description": "结算中心-媒体列表", + "/api/setCenter/basic/getMob": { + "get": { + "description": "基础设置-mob获取", "consumes": [ "application/json" ], @@ -3724,9 +3721,9 @@ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心-基础设置" ], - "summary": "媒体列表", + "summary": "mob获取", "parameters": [ { "type": "string", @@ -3734,22 +3731,51 @@ "name": "Authorization", "in": "header", "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/md.SetOssResp" + } }, - { - "description": "请求参数", - "name": "args", - "in": "body", - "required": true, + "400": { + "description": "具体错误", "schema": { - "$ref": "#/definitions/md.SettleCenterDataDetailReq" + "$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": "具体看返回内容 这是data里面的数据", + "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/md.SetOssResp" } }, "400": { @@ -3761,9 +3787,9 @@ } } }, - "/api/settleCenter/medium/list": { + "/api/setCenter/basic/setMob": { "post": { - "description": "结算中心-媒体列表", + "description": "基础设置-mob设置", "consumes": [ "application/json" ], @@ -3771,9 +3797,9 @@ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心-基础设置" ], - "summary": "媒体列表", + "summary": "mob设置", "parameters": [ { "type": "string", @@ -3788,15 +3814,15 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SettleCenterDataReq" + "$ref": "#/definitions/md.SetMobReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "success", "schema": { - "$ref": "#/definitions/md.SettleCenterDataRes" + "type": "string" } }, "400": { @@ -3808,9 +3834,9 @@ } } }, - "/api/settleCenter/medium/save": { + "/api/setCenter/basic/setOss": { "post": { - "description": "结算中心-媒体列表", + "description": "基础设置-oss设置", "consumes": [ "application/json" ], @@ -3818,9 +3844,9 @@ "application/json" ], "tags": [ - "结算中心------嘉俊" + "设置中心-基础设置" ], - "summary": "媒体列表", + "summary": "oss设置", "parameters": [ { "type": "string", @@ -3835,13 +3861,13 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.SettleCenterDataSaveReq" + "$ref": "#/definitions/md.SetOssReq" } } ], "responses": { "200": { - "description": "具体看返回内容 这是data里面的数据", + "description": "success", "schema": { "type": "string" } @@ -3855,9 +3881,9 @@ } } }, - "/role/permissionGroupList": { + "/api/setCenter/basic/wxOpenGet": { "get": { - "description": "权限管理-权限组列表", + "description": "基础设置-微信三方应用获取", "consumes": [ "application/json" ], @@ -3865,9 +3891,9 @@ "application/json" ], "tags": [ - "权限管理" + "设置中心-基础设置" ], - "summary": "权限组列表", + "summary": "微信三方应用获取", "parameters": [ { "type": "string", @@ -3875,18 +3901,58 @@ "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": "管理员id", - "name": "adm_id", - "in": "query", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "args", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.WxOpenSetReq" + } } ], "responses": { "200": { - "description": "具体看返回内容", + "description": "success", "schema": { "type": "string" } @@ -3900,9 +3966,9 @@ } } }, - "/v1/banner/delete/{$id}": { - "delete": { - "description": "小程序设置-删除", + "/api/setCenter/share/index": { + "get": { + "description": "邀请链接界面接口", "consumes": [ "application/json" ], @@ -3910,9 +3976,9 @@ "application/json" ], "tags": [ - "设置中心-小程序设置" + "设置中心-邀请链接" ], - "summary": "删除", + "summary": "邀请链接", "parameters": [ { "type": "string", @@ -3924,9 +3990,9 @@ ], "responses": { "200": { - "description": "success", + "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/md.ShareIndexResp" } }, "400": { @@ -3937,29 +4003,394 @@ } } } - } - }, - "definitions": { - "hdl.WxOpenThirdPartyAppList": { - "type": "object", - "properties": { - "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" + }, + "/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": { + "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" @@ -5291,6 +5722,21 @@ } } }, + "md.DataCenterOriginalDataMoreApplicationDoingReq": { + "type": "object", + "properties": { + "date": { + "type": "string", + "example": "2024-08-28" + }, + "ids": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DataCenterOriginalDataOneApplicationDoingReqData" + } + } + } + }, "md.DataCenterOriginalDataMoreApplicationReq": { "type": "object", "properties": { @@ -5406,6 +5852,17 @@ } } }, + "md.DataCenterOriginalDataOneApplicationDoingReqData": { + "type": "object", + "properties": { + "ad_id": { + "type": "string" + }, + "app_id": { + "type": "string" + } + } + }, "md.DataCenterOriginalDataOneApplicationDoingRes": { "type": "object", "properties": { @@ -5626,45 +6083,216 @@ }, "name": { "type": "string", - "example": "名称" + "example": "名称" + }, + "platform_retention_rate": { + "type": "string", + "example": "平台留存百分比" + } + } + }, + "md.DivisionStrategyReq": { + "type": "object", + "properties": { + "limit": { + "type": "string" + }, + "name": { + "type": "string" + }, + "page": { + "type": "string" + } + } + }, + "md.DivisionStrategyRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.DivisionStrategyData" + } + }, + "total": { + "type": "integer" + } + } + }, + "md.FinanceCenterDataAgentDetail": { + "type": "object", + "properties": { + "account": { + "type": "string", + "example": "媒体账号" + }, + "all_income": { + "type": "string", + "example": "合计收益" + }, + "change_income": { + "type": "string", + "example": "调价留存" + }, + "commission_income": { + "type": "string", + "example": "佣金留存" + }, + "income": { + "type": "string", + "example": "渠道结算" + }, + "invoice": { + "$ref": "#/definitions/md.Invoice" + }, + "name": { + "type": "string", + "example": "媒体名称" + }, + "other_income": { + "type": "string", + "example": "其他调整" + }, + "pay_state": { + "type": "string", + "example": "结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)" + }, + "platform_income": { + "type": "string", + "example": "平台留存" + }, + "settle_file": { + "type": "string", + "example": "结算单" + }, + "source": { + "type": "string", + "example": "结算标示" + }, + "state": { + "type": "string", + "example": "结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)" + }, + "time_str": { + "type": "string", + "example": "业务时间" + }, + "top_income": { + "type": "string", + "example": "上游结算" + } + } + }, + "md.FinanceCenterDataAgentDetailRes": { + "type": "object", + "properties": { + "business_kind": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "data": { + "$ref": "#/definitions/md.FinanceCenterDataAgentDetail" + }, + "invoice_cate": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "invoice_state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "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" + } + } + } + }, + "md.FinanceCenterDataData": { + "type": "object", + "properties": { + "all_income": { + "type": "string", + "example": "合计收益" + }, + "change_income": { + "type": "string", + "example": "调价留存" + }, + "commission_income": { + "type": "string", + "example": "佣金留存" + }, + "id": { + "type": "string" + }, + "label": { + "type": "string" + }, + "medium_income": { + "type": "string", + "example": "媒体结算" + }, + "name": { + "type": "string", + "example": "媒体名称" + }, + "other_income": { + "type": "string", + "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:预付)" }, - "platform_retention_rate": { + "state": { "type": "string", - "example": "平台留存百分比" - } - } - }, - "md.DivisionStrategyReq": { - "type": "object", - "properties": { - "limit": { - "type": "string" + "example": "结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)" }, - "name": { - "type": "string" + "time_str": { + "type": "string", + "example": "业务时间" }, - "page": { - "type": "string" + "top_income": { + "type": "string", + "example": "上游结算" } } }, - "md.DivisionStrategyRes": { + "md.FinanceCenterDataDetail": { "type": "object", "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.DivisionStrategyData" - } + "account": { + "type": "string", + "example": "媒体账号" }, - "total": { - "type": "integer" - } - } - }, - "md.FinanceCenterDataData": { - "type": "object", - "properties": { "all_income": { "type": "string", "example": "合计收益" @@ -5677,11 +6305,8 @@ "type": "string", "example": "佣金留存" }, - "id": { - "type": "string" - }, - "label": { - "type": "string" + "invoice": { + "$ref": "#/definitions/md.Invoice" }, "medium_income": { "type": "string", @@ -5703,9 +6328,13 @@ "type": "string", "example": "平台留存" }, - "settle_type": { + "settle_file": { "type": "string", - "example": "结算单类型(1:日结 2:周结 3:月结 4:预付)" + "example": "结算单" + }, + "source": { + "type": "string", + "example": "结算标示" }, "state": { "type": "string", @@ -5721,6 +6350,50 @@ } } }, + "md.FinanceCenterDataDetailRes": { + "type": "object", + "properties": { + "business_kind": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "data": { + "$ref": "#/definitions/md.FinanceCenterDataDetail" + }, + "invoice_cate": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "invoice_state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "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" + } + } + } + }, "md.FinanceCenterDataReq": { "type": "object", "properties": { @@ -5781,6 +6454,103 @@ } } }, + "md.IndexAppListData": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.IndexAppListDataList" + } + }, + "logo": { + "type": "string" + }, + "name": { + "type": "string" + }, + "table_list": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "md.IndexAppListDataList": { + "type": "object", + "properties": { + "bili": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "md.IndexAppListReq": { + "type": "object", + "properties": { + "end_date": { + "type": "string", + "example": "2024-08-30" + }, + "name": { + "type": "string" + }, + "sort": { + "type": "string", + "example": "排序" + }, + "start_date": { + "type": "string", + "example": "2024-08-30" + } + } + }, + "md.IndexAppListRes": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.IndexAppListData" + } + }, + "sort": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + } + } + }, + "md.Invoice": { + "type": "object", + "properties": { + "count": { + "type": "string" + }, + "file": { + "type": "array", + "items": { + "$ref": "#/definitions/md.InvoiceFile" + } + }, + "time": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, "md.InvoiceFile": { "type": "object", "properties": { @@ -5942,6 +6712,95 @@ } } }, + "md.MediumQualificationBankData": { + "type": "object", + "properties": { + "account": { + "type": "string", + "example": "账号" + }, + "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": "开户许可证" + }, + "medium_id": { + "type": "string", + "example": "代理id" + }, + "memo": { + "type": "string", + "example": "备注 审核时填写的" + }, + "state": { + "type": "string", + "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)" + }, + "unified_social_credit_code": { + "type": "string", + "example": "统一社会信用代码" + } + } + }, + "md.MediumQualificationBankRes": { + "type": "object", + "properties": { + "currency_conf": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.MediumQualificationBankData" + } + }, + "state": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + }, + "total": { + "type": "integer" + }, + "type": { + "type": "array", + "items": { + "$ref": "#/definitions/md.SelectData" + } + } + } + }, "md.MediumQualificationContactData": { "type": "object", "properties": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 09f760f..7c3489a 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -949,6 +949,16 @@ definitions: example: 状态id type: string type: object + md.DataCenterOriginalDataMoreApplicationDoingReq: + properties: + date: + example: "2024-08-28" + type: string + ids: + items: + $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationDoingReqData' + type: array + type: object md.DataCenterOriginalDataMoreApplicationReq: properties: limit: @@ -1026,6 +1036,13 @@ definitions: example: "2024-08-28" type: string type: object + md.DataCenterOriginalDataOneApplicationDoingReqData: + properties: + ad_id: + type: string + app_id: + type: string + type: object md.DataCenterOriginalDataOneApplicationDoingRes: properties: ad_id: @@ -1204,6 +1221,82 @@ definitions: total: type: integer type: object + md.FinanceCenterDataAgentDetail: + properties: + account: + example: 媒体账号 + type: string + all_income: + example: 合计收益 + type: string + change_income: + example: 调价留存 + type: string + commission_income: + example: 佣金留存 + type: string + income: + example: 渠道结算 + type: string + invoice: + $ref: '#/definitions/md.Invoice' + name: + example: 媒体名称 + type: string + other_income: + example: 其他调整 + type: string + pay_state: + example: 结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款) + type: string + platform_income: + example: 平台留存 + type: string + settle_file: + example: 结算单 + type: string + source: + example: 结算标示 + type: string + state: + example: 结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订) + type: string + time_str: + example: 业务时间 + type: string + top_income: + example: 上游结算 + type: string + type: object + md.FinanceCenterDataAgentDetailRes: + properties: + business_kind: + items: + $ref: '#/definitions/md.SelectData' + type: array + data: + $ref: '#/definitions/md.FinanceCenterDataAgentDetail' + invoice_cate: + items: + $ref: '#/definitions/md.SelectData' + type: array + invoice_state: + items: + $ref: '#/definitions/md.SelectData' + 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 + type: object md.FinanceCenterDataData: properties: all_income: @@ -1247,6 +1340,82 @@ definitions: example: 上游结算 type: string type: object + md.FinanceCenterDataDetail: + properties: + account: + example: 媒体账号 + type: string + all_income: + example: 合计收益 + type: string + change_income: + example: 调价留存 + type: string + commission_income: + example: 佣金留存 + type: string + invoice: + $ref: '#/definitions/md.Invoice' + medium_income: + example: 媒体结算 + type: string + name: + example: 媒体名称 + type: string + other_income: + example: 其他调整 + type: string + pay_state: + example: 结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款) + type: string + platform_income: + example: 平台留存 + type: string + settle_file: + example: 结算单 + type: string + source: + example: 结算标示 + type: string + state: + example: 结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订) + type: string + time_str: + example: 业务时间 + type: string + top_income: + example: 上游结算 + type: string + type: object + md.FinanceCenterDataDetailRes: + properties: + business_kind: + items: + $ref: '#/definitions/md.SelectData' + type: array + data: + $ref: '#/definitions/md.FinanceCenterDataDetail' + invoice_cate: + items: + $ref: '#/definitions/md.SelectData' + type: array + invoice_state: + items: + $ref: '#/definitions/md.SelectData' + 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 + type: object md.FinanceCenterDataReq: properties: end_time: @@ -1287,6 +1456,70 @@ definitions: total: type: integer type: object + md.IndexAppListData: + properties: + list: + items: + $ref: '#/definitions/md.IndexAppListDataList' + type: array + logo: + type: string + name: + type: string + table_list: + items: + type: string + type: array + type: object + md.IndexAppListDataList: + properties: + bili: + type: string + name: + type: string + type: + type: string + value: + type: string + type: object + md.IndexAppListReq: + properties: + end_date: + example: "2024-08-30" + type: string + name: + type: string + sort: + example: 排序 + type: string + start_date: + example: "2024-08-30" + type: string + type: object + md.IndexAppListRes: + properties: + list: + items: + $ref: '#/definitions/md.IndexAppListData' + type: array + sort: + items: + $ref: '#/definitions/md.SelectData' + type: array + type: object + md.Invoice: + properties: + count: + type: string + file: + items: + $ref: '#/definitions/md.InvoiceFile' + type: array + time: + type: string + type: + type: string + type: object md.InvoiceFile: properties: state: @@ -1397,6 +1630,69 @@ definitions: username: type: string type: object + md.MediumQualificationBankData: + properties: + account: + example: 账号 + type: string + bank: + example: 开户银行 + type: string + bank_branch: + example: 开户银行分行 + type: string + bank_no: + example: 银行卡号 + type: string + company_name: + example: 公司名称 + type: string + currency_conf: + example: 结算币种 0人民币 + type: string + id: + example: id + type: string + kind: + example: 类型(1:企业 2:个人) + type: string + licence: + 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.MediumQualificationBankRes: + properties: + currency_conf: + items: + $ref: '#/definitions/md.SelectData' + type: array + list: + items: + $ref: '#/definitions/md.MediumQualificationBankData' + type: array + state: + items: + $ref: '#/definitions/md.SelectData' + type: array + total: + type: integer + type: + items: + $ref: '#/definitions/md.SelectData' + type: array + type: object md.MediumQualificationContactData: properties: account: @@ -2217,7 +2513,274 @@ paths: post: consumes: - application/json - description: 数据中心-收益报表-列表 + 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.DataCenterOriginalDataMoreApplicationDoingReq' + 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 + 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 @@ -2229,26 +2792,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DataCenterGenerateDataReq' + $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq' produces: - application/json responses: "200": - description: 具体看返回内容 这是data里面的数据 + description: '具体看返回内容 ' schema: - $ref: '#/definitions/md.DataCenterIncomeDataRes' + type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 收益报表-列表 + summary: 原始数据-单个应用数据操作 tags: - 数据中心------嘉俊 - /api/dataCenter/original/data/del: + /api/dataCenter/original/data/one/application/total: post: consumes: - application/json - description: 数据中心-原始数据-删除 + description: 数据中心-原始数据-单个应用数据统计 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2260,26 +2823,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DataCenterOriginalDataCommReq' + $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq' produces: - application/json responses: "200": description: '具体看返回内容 ' schema: - type: string + $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationDoingRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 原始数据-删除 + summary: 原始数据-单个应用数据统计 tags: - 数据中心------嘉俊 - /api/dataCenter/original/data/doing: + /api/dataCenter/original/data/total: post: consumes: - application/json - description: 数据中心-原始数据-应用操作 + description: 数据中心-原始数据-记录应用时统计 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2291,7 +2854,7 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DataCenterDataCenterOriginalDataDoingReq' + $ref: '#/definitions/md.DataCenterOriginalDataCommReq' produces: - application/json responses: @@ -2303,14 +2866,14 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 原始数据-应用操作 + summary: 原始数据-记录应用时统计 tags: - 数据中心------嘉俊 - /api/dataCenter/original/data/list: + /api/divisionStrategy/detail: post: consumes: - application/json - description: 数据中心-原始数据-列表 + description: 分成策略-详情 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2322,26 +2885,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DataCenterOriginalDataReq' + $ref: '#/definitions/md.DivisionStrategyDetailReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.DataCenterOriginalDataRes' + $ref: '#/definitions/md.DivisionStrategyDetailRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 原始数据-列表 + summary: 详情 tags: - - 数据中心------嘉俊 - /api/dataCenter/original/data/more/application: + - 分成策略------嘉俊 + /api/divisionStrategy/list: post: consumes: - application/json - description: 数据中心-原始数据-一键导入应用列表 + description: 分成策略-列表 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2353,26 +2916,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DataCenterOriginalDataMoreApplicationReq' + $ref: '#/definitions/md.DivisionStrategyReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.DataCenterOriginalDataMoreApplicationRes' + $ref: '#/definitions/md.DivisionStrategyRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 原始数据-一键导入应用列表 + summary: 列表 tags: - - 数据中心------嘉俊 - /api/dataCenter/original/data/more/application/doing: + - 分成策略------嘉俊 + /api/divisionStrategy/save: post: consumes: - application/json - description: 数据中心-原始数据-一键导入操作 + description: 分成策略-保存 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2384,7 +2947,7 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq' + $ref: '#/definitions/md.DivisionStrategyDetailRes' produces: - application/json responses: @@ -2396,14 +2959,14 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 原始数据-一键导入操作 + summary: 保存 tags: - - 数据中心------嘉俊 - /api/dataCenter/original/data/more/application/state: - get: + - 分成策略------嘉俊 + /api/financeCenter/agent/detail: + post: consumes: - application/json - description: 数据中心-原始数据-一键导入操作状态 + description: 财务中心-代理详情 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2415,51 +2978,57 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq' + $ref: '#/definitions/md.CommDetailReq' produces: - application/json responses: "200": - description: 具体看返回内容 state=1 进行中 + description: 具体看返回内容 这是data里面的数据 schema: - type: string + $ref: '#/definitions/md.FinanceCenterDataAgentDetailRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 原始数据-一键导入操作状态 + summary: 代理详情 tags: - - 数据中心------嘉俊 - /api/dataCenter/original/data/one/application: - get: + - 财务中心------嘉俊 + /api/financeCenter/agent/invoice/save: + post: consumes: - application/json - description: 数据中心-原始数据-单个导入应用列表 + description: 财务中心-代理详情-发票保存 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string + - description: 请求参数 + in: body + name: args + required: true + schema: + $ref: '#/definitions/md.InvoiceReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationRes' + type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 原始数据-单个导入应用列表 + summary: 代理详情-发票保存 tags: - - 数据中心------嘉俊 - /api/dataCenter/original/data/one/application/ad/list: + - 财务中心------嘉俊 + /api/financeCenter/agent/list: post: consumes: - application/json - description: 数据中心-原始数据-单个导入应用-广告位列表 + description: 财务中心-代理列表 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2471,26 +3040,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationAdListReq' + $ref: '#/definitions/md.FinanceCenterDataReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationAdListRes' + $ref: '#/definitions/md.FinanceCenterDataRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 原始数据-单个导入应用-广告位列表 + summary: 代理列表 tags: - - 数据中心------嘉俊 - /api/dataCenter/original/data/one/application/doing: + - 财务中心------嘉俊 + /api/financeCenter/agent/other/income/save: post: consumes: - application/json - description: 数据中心-原始数据-单个应用数据操作 + description: 财务中心-代理详情-其他收益调整 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2502,26 +3071,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq' + $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/dataCenter/original/data/one/application/total: + - 财务中心------嘉俊 + /api/financeCenter/agent/pay/save: post: consumes: - application/json - description: 数据中心-原始数据-单个应用数据统计 + description: 财务中心-代理详情-确认支付 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2533,26 +3102,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationDoingReq' + $ref: '#/definitions/md.CommDetailReq' produces: - application/json responses: "200": - description: '具体看返回内容 ' + description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.DataCenterOriginalDataOneApplicationDoingRes' + type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 原始数据-单个应用数据统计 + summary: 代理详情-确认支付 tags: - - 数据中心------嘉俊 - /api/dataCenter/original/data/total: + - 财务中心------嘉俊 + /api/financeCenter/agent/settle/file/save: post: consumes: - application/json - description: 数据中心-原始数据-记录应用时统计 + description: 财务中心-代理详情-结算单保存 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2564,26 +3133,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DataCenterOriginalDataCommReq' + $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/divisionStrategy/detail: + - 财务中心------嘉俊 + /api/financeCenter/medium/detail: post: consumes: - application/json - description: 分成策略-详情 + description: 财务中心-媒体详情 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2595,26 +3164,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DivisionStrategyDetailReq' + $ref: '#/definitions/md.CommDetailReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.DivisionStrategyDetailRes' + $ref: '#/definitions/md.FinanceCenterDataDetailRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 详情 + summary: 媒体详情 tags: - - 分成策略------嘉俊 - /api/divisionStrategy/list: + - 财务中心------嘉俊 + /api/financeCenter/medium/invoice/save: post: consumes: - application/json - description: 分成策略-列表 + description: 财务中心-媒体详情-发票保存 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2626,26 +3195,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DivisionStrategyReq' + $ref: '#/definitions/md.InvoiceReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.DivisionStrategyRes' + type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 列表 + summary: 媒体详情-发票保存 tags: - - 分成策略------嘉俊 - /api/divisionStrategy/save: + - 财务中心------嘉俊 + /api/financeCenter/medium/list: post: consumes: - application/json - description: 分成策略-保存 + description: 财务中心-媒体列表 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2657,26 +3226,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.DivisionStrategyDetailRes' + $ref: '#/definitions/md.FinanceCenterDataReq' produces: - application/json responses: "200": - description: '具体看返回内容 ' + description: 具体看返回内容 这是data里面的数据 schema: - type: string + $ref: '#/definitions/md.FinanceCenterDataRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 保存 + summary: 媒体列表 tags: - - 分成策略------嘉俊 - /api/financeCenter/medium/detail: + - 财务中心------嘉俊 + /api/financeCenter/medium/other/income/save: post: consumes: - application/json - description: 财务中心-媒体详情 + description: 财务中心-媒体详情-其他收益调整 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2688,26 +3257,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.CommDetailReq' + $ref: '#/definitions/md.OtherIncomeReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.FinanceCenterDataRes' + type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 媒体详情 + summary: 媒体详情-其他收益调整 tags: - 财务中心------嘉俊 - /api/financeCenter/medium/invoice/save: + /api/financeCenter/medium/pay/save: post: consumes: - application/json - description: 财务中心-媒体详情-发票保存 + description: 财务中心-媒体详情-确认支付 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2719,7 +3288,7 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.InvoiceReq' + $ref: '#/definitions/md.CommDetailReq' produces: - application/json responses: @@ -2731,14 +3300,14 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 媒体详情-发票保存 + summary: 媒体详情-确认支付 tags: - 财务中心------嘉俊 - /api/financeCenter/medium/list: + /api/financeCenter/medium/settle/file/save: post: consumes: - application/json - description: 财务中心-媒体列表 + description: 财务中心-媒体详情-结算单保存 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2750,26 +3319,26 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.FinanceCenterDataReq' + $ref: '#/definitions/md.SettleFileReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: - $ref: '#/definitions/md.FinanceCenterDataRes' + type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 媒体列表 + summary: 媒体详情-结算单保存 tags: - 财务中心------嘉俊 - /api/financeCenter/medium/other/income/save: + /api/index/app/list: post: consumes: - application/json - description: 财务中心-媒体详情-其他收益调整 + description: 数据中心-数据明细 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -2781,38 +3350,32 @@ paths: name: args required: true schema: - $ref: '#/definitions/md.OtherIncomeReq' + $ref: '#/definitions/md.IndexAppListReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: - type: string + $ref: '#/definitions/md.IndexAppListRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 媒体详情-其他收益调整 + summary: 数据明细 tags: - - 财务中心------嘉俊 - /api/financeCenter/medium/pay/save: - post: + - 数据中心------嘉俊 + /api/index/base: + get: consumes: - application/json - description: 财务中心-媒体详情-确认支付 + description: 首页-右上角基本数据 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - - description: 请求参数 - in: body - name: args - required: true - schema: - $ref: '#/definitions/md.CommDetailReq' produces: - application/json responses: @@ -2824,26 +3387,20 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 媒体详情-确认支付 + summary: 右上角基本数据 tags: - - 财务中心------嘉俊 - /api/financeCenter/medium/settle/file/save: - post: + - 首页------嘉俊 + /api/index/total: + get: consumes: - application/json - description: 财务中心-媒体详情-结算单保存 + description: 首页-统计数据 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - - description: 请求参数 - in: body - name: args - required: true - schema: - $ref: '#/definitions/md.SettleFileReq' produces: - application/json responses: @@ -2855,9 +3412,9 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 媒体详情-结算单保存 + summary: 统计数据 tags: - - 财务中心------嘉俊 + - 首页------嘉俊 /api/login: post: consumes: @@ -3258,11 +3815,35 @@ paths: - 媒体中心------嘉俊 /api/mediumQualification/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.MediumQualificationEnterpriseReq' + produces: + - application/json responses: + "200": + description: 具体看返回内容 这是data里面的数据 + schema: + $ref: '#/definitions/md.MediumQualificationBankRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' + summary: 银行资质 + tags: + - 媒体资质------嘉俊 /api/mediumQualification/bank/audit: post: consumes: @@ -4219,7 +4800,7 @@ paths: post: consumes: - application/json - description: 结算中心-代理列表 + description: 结算中心-代理详情 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -4243,7 +4824,7 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 代理列表 + summary: 代理详情 tags: - 结算中心------嘉俊 /api/settleCenter/agent/list: @@ -4281,7 +4862,7 @@ paths: post: consumes: - application/json - description: 结算中心-代理列表 + description: 结算中心-代理修改结算方式 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -4305,14 +4886,14 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 代理列表 + summary: 代理修改结算方式 tags: - 结算中心------嘉俊 /api/settleCenter/medium/detail: post: consumes: - application/json - description: 结算中心-媒体列表 + description: 结算中心-媒体详情 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -4336,7 +4917,7 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 媒体列表 + summary: 媒体详情 tags: - 结算中心------嘉俊 /api/settleCenter/medium/list: @@ -4374,7 +4955,7 @@ paths: post: consumes: - application/json - description: 结算中心-媒体列表 + description: 结算中心-媒体修改结算方式 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -4398,7 +4979,7 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 媒体列表 + summary: 媒体修改结算方式 tags: - 结算中心------嘉俊 /role/permissionGroupList: diff --git a/go.mod b/go.mod index fe8048b..2973b84 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( 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 + code.fnuoos.com/zhimeng/model.git v0.0.3-0.20240902065422-a58ca385e5a0 github.com/jinzhu/copier v0.4.0 )