definitions: md.AddAdminReq: properties: memo: type: string password: type: string username: type: string required: - password - username type: object md.AddRoleReq: properties: memo: type: string name: type: string required: - memo - name type: object md.AdminListReq: properties: limit: type: integer page: type: integer state: type: integer username: type: string type: object md.BasicSetReq: properties: app_logo: example: 项目logo type: string app_name: example: 项目名称 type: string required: - app_logo - app_name type: object md.BindAdminRoleReq: properties: adm_id: type: integer role_ids: items: type: integer type: array required: - adm_id type: object md.DataCenterGenerateDataCommReq: properties: id: example: 列表id type: string type: object md.DataCenterGenerateDataData: properties: adv_name: example: 广告位 type: string agent_revenue: example: 代理收益(元) type: string agreement_sharing: example: 协议分成(元) type: string agreement_sharing_total: example: 协议总分成(元) type: string click_count: example: 现-点击量 type: string click_rate: example: 现-点击率 type: string commission_retention: example: 佣金留存(元) type: string date: example: 日期 type: string ecpm: example: '''现-ecpm(元)' type: string exposure_count: example: 现-曝光量 type: string extra_revenue: example: 额外收益(元) type: string id: example: id type: string is_generate_report: example: 是否已生成报表(0:未 1:已) type: string media_revenue: example: 媒体收益(元) type: string name: example: 名称 type: string old_click_count: example: 原-点击量 type: string old_click_rate: example: 原-点击率 type: string old_ecpm: example: '''原-ecpm(元)' type: string old_exposure_count: example: 原-曝光量 type: string platform: example: 平台名称 type: string platform_retention: example: 平台留存(元) type: string price_adjustment_retention: example: 调价留存(元) type: string state: example: 状态id type: string type: object md.DataCenterGenerateDataDetailAgentReward: properties: account: type: string agent_revenue: example: 代理收益(元) type: string agent_revenue_rate: example: 代理收益百分比 type: string extra_revenue: example: 额外收益(元) type: string extra_revenue_rate: example: '''额外收益百分比' type: string name: type: string type: object md.DataCenterGenerateDataDetailData: properties: agent_revenue_rate: example: 代理收益百分比 type: string agent_reward: items: $ref: '#/definitions/md.DataCenterGenerateDataDetailAgentReward' type: array agreement_sharing_rate: example: 协议分成百分比 type: string commission_retention_rate: example: 佣金留存百分比 type: string create_at: type: string extra_revenue_rate: example: 额外收益百分比 type: string media_revenue_rate: example: 媒体收益百分比 type: string platform_retention_rate: example: 平台留存百分比 type: string update_at: type: string type: object md.DataCenterGenerateDataReq: properties: end_time: type: string limit: type: string name: type: string page: type: string platform: type: string start_time: type: string state: type: string type: object md.DataCenterGenerateDataRes: properties: list: items: $ref: '#/definitions/md.DataCenterGenerateDataData' type: array platform: items: $ref: '#/definitions/md.SelectData' type: array state: items: $ref: '#/definitions/md.SelectData' type: array total: type: integer type: object md.DataCenterOriginalDataData: properties: adv_name: example: 广告位 type: string click_count: example: 点击量 type: string click_rate: example: 点击率 type: string date: example: 日期 type: string ecpm: example: '''ecpm(元)' type: string exposure_count: example: 曝光量 type: string exposure_rate: example: 曝光率 type: string id: example: id type: string is_apply: example: 是否已应用 type: string name: example: 名称 type: string platform: example: 平台名称 type: string publisher_income: example: 总收益(元) type: string req_succ_count: example: 拉取量 type: string state: example: 状态id type: string type: object md.DataCenterOriginalDataReq: properties: end_time: type: string limit: type: string name: type: string page: type: string platform: type: string start_time: type: string state: type: string type: object md.DataCenterOriginalDataRes: properties: list: items: $ref: '#/definitions/md.DataCenterOriginalDataData' type: array platform: items: $ref: '#/definitions/md.SelectData' type: array state: items: $ref: '#/definitions/md.SelectData' type: array total: type: integer type: object md.LoginInfoResponse: properties: adm_id: description: 管理员id type: integer create_at: type: string is_super_administrator: description: 是否为超级管理员(0:否 1:是) type: integer memo: example: 备注信息 type: string update_at: type: string username: example: 登录账号 type: string type: object md.LoginReq: properties: code: example: 验证码 type: string password: example: 登录密码 type: string username: example: 登录账号 type: string required: - password - username type: object md.LoginResponse: properties: token: type: string type: object md.Response: properties: code: example: 响应码 type: string data: description: 内容 msg: example: 具体错误原因 type: string type: object md.RoleBindPermissionGroupReq: properties: permission_ids: items: type: integer type: array role_id: type: integer required: - role_id type: object md.SelectData: properties: name: example: 名称 type: string value: example: 值 type: string type: object md.SmsDetail: properties: create_at: example: 创建时间 type: string id: type: integer phone: example: 接收号码 type: string state_zh: example: 发送状态 type: string type: object md.SmsDetailReq: properties: limit: type: integer page: type: integer uuid: example: 站长ID type: string type: object md.SmsDetailResp: properties: list: items: $ref: '#/definitions/md.SmsDetail' type: array total: type: integer type: object md.SmsList: properties: name: example: 站长名称 type: string num: description: 短信条数 type: integer uuid: example: 站长ID type: string type: object md.SmsListReq: properties: limit: type: integer name: example: 站长名称 type: string page: type: integer uuid: example: 站长ID type: string type: object md.SmsListResp: properties: list: items: $ref: '#/definitions/md.SmsList' type: array total: type: integer type: object md.UpdateAdminReq: properties: adm_id: type: integer memo: type: string password: type: string username: type: string required: - adm_id - password - username type: object md.UpdateAdminStateReq: properties: adm_id: type: integer state: type: integer required: - adm_id - state type: object md.UpdateRoleReq: properties: memo: type: string name: type: string role_id: type: integer required: - memo - name - role_id type: object md.UpdateRoleStateReq: properties: role_id: type: integer state: type: integer required: - role_id - state type: object host: localhost:1001 or advertisement.dengbiao.top info: contact: email: 1239118001@qq.com name: dengbiao url: http://www.swagger.io/support description: 总站长后台接口 license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html termsOfService: http://swagger.io/terms/ title: 广告联盟-总站长平台 version: "1.0" paths: /api/comm/basicGet: get: consumes: - application/json description: 公共模块-获取系统信息 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 获取系统信息 tags: - 公共模块 /api/comm/uploadFile: post: consumes: - multipart/form-data description: 公共模块-上传文件 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - description: 上传的文件 in: formData name: file required: true type: file produces: - multipart/form-data responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 上传文件 tags: - 公共模块 /api/dataCenter/generate/data/detail: post: consumes: - application/json description: 数据中心-分成数据-详情 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - description: 请求参数 in: body name: args required: true schema: $ref: '#/definitions/md.DataCenterGenerateDataCommReq' produces: - application/json responses: "200": description: '具体看返回内容 ' schema: $ref: '#/definitions/md.DataCenterGenerateDataDetailData' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 分成数据-详情 tags: - 数据中心 /api/dataCenter/generate/data/list: post: consumes: - application/json description: 数据中心-分成数据-列表 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - description: 请求参数 in: body name: args required: true schema: $ref: '#/definitions/md.DataCenterGenerateDataReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: $ref: '#/definitions/md.DataCenterGenerateDataRes' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 分成数据-列表 tags: - 数据中心 /api/dataCenter/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/login: post: consumes: - application/json description: 登入 parameters: - description: 用户名密码 in: body name: req required: true schema: $ref: '#/definitions/md.LoginReq' produces: - application/json responses: "200": description: token schema: $ref: '#/definitions/md.LoginResponse' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 登陆 tags: - 登录注册 /api/loginInfo: get: consumes: - application/json description: 登录信息 parameters: - description: 用户名密码 in: body name: req required: true schema: $ref: '#/definitions/md.LoginReq' produces: - application/json responses: "200": description: token schema: $ref: '#/definitions/md.LoginInfoResponse' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 登录信息 tags: - 登录注册 /api/role/addAdmin: 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.AddAdminReq' produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 新增管理员 tags: - 权限管理 /api/role/addRole: 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.AddRoleReq' produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 添加角色 tags: - 权限管理 /api/role/adminInfo: get: consumes: - application/json description: 权限管理-管理员信息 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - description: 管理员id in: query name: adm_id required: true type: string produces: - application/json responses: "200": description: 具体看返回内容 schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 管理员信息 tags: - 权限管理 /api/role/adminList: 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.AdminListReq' produces: - application/json responses: "200": description: 具体看返回内容 schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 管理员列表 tags: - 权限管理 /api/role/bindAdminRole/: 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.BindAdminRoleReq' produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 管理员绑定角色 tags: - 权限管理 /api/role/deleteAdmin/{$adm_id}: delete: consumes: - application/json description: 权限管理-删除管理员 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 删除管理员 tags: - 权限管理 /api/role/deleteRole/{$id}: delete: 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.UpdateRoleStateReq' produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 删除角色 tags: - 权限管理 /api/role/permissionGroupList: get: consumes: - application/json description: 权限管理-权限组列表 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - description: 管理员id in: query name: adm_id required: true type: string produces: - application/json responses: "200": description: 具体看返回内容 schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 权限组列表 tags: - 权限管理 /api/role/roleBindPermissionGroup: 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.RoleBindPermissionGroupReq' produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 角色绑定权限组 tags: - 权限管理 /api/role/roleList: get: consumes: - application/json description: 权限管理-角色列表 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string produces: - application/json responses: "200": description: 具体看返回内容 schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 角色列表 tags: - 权限管理 /api/role/updateAdmin: 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.UpdateAdminReq' produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 修改管理员信息 tags: - 权限管理 /api/role/updateAdminState: 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.UpdateAdminStateReq' produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 修改管理员状态 tags: - 权限管理 /api/role/updateRole: 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.UpdateRoleStateReq' produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 修改角色状态 tags: - 权限管理 /api/setCenter/basicGet: get: consumes: - application/json description: 基础设置-获取 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 基础设置 tags: - 设置中心-基础设置 /api/setCenter/basicSet: 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.BasicSetReq' produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 基础设置 tags: - 设置中心-基础设置 /api/smsCenter/detail: post: consumes: - application/json description: 短信中心-详情 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - description: 请求参数 in: body name: args required: true schema: $ref: '#/definitions/md.SmsDetailReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: $ref: '#/definitions/md.SmsDetailResp' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 详情 tags: - 短信中心 /api/smsCenter/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.SmsListReq' produces: - application/json responses: "200": description: 具体看返回内容 这是data里面的数据 schema: $ref: '#/definitions/md.SmsListResp' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 列表 tags: - 短信中心 /api/smsCenter/update: 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.SmsDetailReq' produces: - application/json responses: "200": description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' summary: 修改 tags: - 短信中心 securityDefinitions: MasterID: in: header name: MasterID type: apiKey swagger: "2.0"