From 95eee1c30d439d6e06040064d57b6234bc50411c Mon Sep 17 00:00:00 2001 From: dengbiao Date: Wed, 20 Nov 2024 11:28:25 +0800 Subject: [PATCH] 1 --- app/hdl/hdl_login.go | 2 +- build.sh | 2 +- docs/docs.go | 4481 +----------------------------------------- docs/swagger.json | 4480 +---------------------------------------- docs/swagger.yaml | 3096 +---------------------------- go.mod | 15 +- k8s/container.yaml | 54 +- 7 files changed, 297 insertions(+), 11833 deletions(-) diff --git a/app/hdl/hdl_login.go b/app/hdl/hdl_login.go index 6973cba..e37594b 100644 --- a/app/hdl/hdl_login.go +++ b/app/hdl/hdl_login.go @@ -23,7 +23,7 @@ import ( // @Produce json // @Param req body md.RegisterReq true "注册参数" // @Success 200 {object} md.LoginResponse "登录成功返回" -// @Failure 400 {object} md.CustomerErrResponse "具体错误" +// @Failure 400 {object} md.Response "具体错误" // @Router /v1/register [post] func Register(c *gin.Context) { var req md.RegisterReq diff --git a/build.sh b/build.sh index a267ddc..b9057fd 100644 --- a/build.sh +++ b/build.sh @@ -9,7 +9,7 @@ echo "GET the Commit ID for git -> $ZYOS_APP_COMMIT_ID" echo "Start build image " -image_name=registry-vpc.cn-shenzhen.aliyuncs.com/fnuoos-prd/egg-admin:${ZYOS_APP_COMMIT_ID} +image_name=registry-vpc.cn-shenzhen.aliyuncs.com/fnuoos-prd/egg-app:${ZYOS_APP_COMMIT_ID} #final_image_name=registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos:${ZYOS_APP_COMMIT_ID} docker build -t ${image_name} . diff --git a/docs/docs.go b/docs/docs.go index 443661a..ba106dc 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -62,91 +62,6 @@ const docTemplate = `{ } } }, - "/api/comm/oss/getBasic": { - "get": { - "description": "对象存储设置(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "对象存储" - ], - "summary": "设置中心-对象存储-对象存储设置(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "设置列表", - "schema": { - "$ref": "#/definitions/md.GetBasicResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/comm/oss/setBasic": { - "post": { - "description": "对象存储设置(更新)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "对象存储" - ], - "summary": "设置中心-对象存储-对象存储设置(更新)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "上传需要修改的信息", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.SetBasicReq" - } - } - ], - "responses": { - "200": { - "description": "success", - "schema": { - "type": "string" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, "/api/demo": { "post": { "description": "Demo样例测试", @@ -186,9 +101,9 @@ const docTemplate = `{ } } }, - "/api/institutionalManagement/eggEnergy/availableEnergy/list": { + "/v1/login": { "post": { - "description": "动态数据流水(获取)", + "description": "登入", "consumes": [ "application/json" ], @@ -196,32 +111,25 @@ const docTemplate = `{ "application/json" ], "tags": [ - "公排管理" + "登录" ], - "summary": "制度中心-动态数据-动态数据流水(获取)", + "summary": "登陆", "parameters": [ { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "页数、每页大小必传 起止时间、持有类型选传", + "description": "用户名密码", "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.DynamicDataFlowListReq" + "$ref": "#/definitions/md.LoginReq" } } ], "responses": { "200": { - "description": "成功返回", + "description": "token", "schema": { - "$ref": "#/definitions/md.DynamicDataFlowListResp" + "$ref": "#/definitions/md.LoginResponse" } }, "400": { @@ -233,9 +141,9 @@ const docTemplate = `{ } } }, - "/api/institutionalManagement/eggEnergy/eggPoint/manualScore": { + "/v1/register": { "post": { - "description": "蛋蛋分管理(人工打分)", + "description": "注册", "consumes": [ "application/json" ], @@ -243,32 +151,25 @@ const docTemplate = `{ "application/json" ], "tags": [ - "蛋蛋能量" + "注册" ], - "summary": "制度中心-蛋蛋能量-蛋蛋分管理(人工打分)", + "summary": "注册", "parameters": [ { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "请求参数", + "description": "注册参数", "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.ManualScoreReq" + "$ref": "#/definitions/md.RegisterReq" } } ], "responses": { "200": { - "description": "成功返回", + "description": "登录成功返回", "schema": { - "type": "string" + "$ref": "#/definitions/md.LoginResponse" } }, "400": { @@ -279,4304 +180,108 @@ const docTemplate = `{ } } } - }, - "/api/institutionalManagement/eggEnergy/eggPoint/statisticsUserEggIndex": { - "post": { - "description": "蛋蛋分管理(着陆页数据分析)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-蛋蛋分管理(着陆页数据分析)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "请求参数", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.StatisticsEggPointReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.StatisticsEggPointResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } + } + }, + "definitions": { + "md.LoginReq": { + "type": "object", + "required": [ + "password", + "phone" + ], + "properties": { + "code": { + "type": "string", + "example": "验证码" + }, + "password": { + "type": "string", + "example": "登录密码" + }, + "phone": { + "type": "string", + "example": "手机号" } } }, - "/api/institutionalManagement/eggEnergy/eggPoint/userEggFlow": { - "post": { - "description": "蛋蛋分管理(用户数据列表)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-蛋蛋分管理(用户数据列表)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "请求参数", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UserEggFlowReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.UserEggFlowReqResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } + "md.LoginResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" } } }, - "/api/institutionalManagement/eggEnergy/getBasic": { - "get": { - "description": "基础设置(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-基础设置(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetEggEnergyBasicResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } + "md.RegisterReq": { + "type": "object", + "required": [ + "mobile" + ], + "properties": { + "avatar": { + "type": "string", + "example": "头像" + }, + "code": { + "type": "string", + "example": "验证码" + }, + "invite_code": { + "type": "string", + "example": "邀请码" + }, + "mobile": { + "type": "string" + }, + "nickname": { + "type": "string", + "example": "昵称" + }, + "open_id": { + "type": "string", + "example": "微信openId" + }, + "sex": { + "description": "性别(0:未知 1:男 2:女)", + "type": "integer" + }, + "type": { + "type": "string", + "example": "app:APP注册、h5:H5注册" + }, + "union_id": { + "type": "string", + "example": "微信UnionId" } } }, - "/api/institutionalManagement/eggEnergy/getVirtualCoinList": { - "get": { - "description": "查询所有币种(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-查询所有币种(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/md.VirtualCoin" - } - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/coreDataList": { - "get": { - "description": "数据概览(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-数据概览(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetEggCoreDataListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/fundDataAdd": { - "post": { - "description": "价值明细数据(新增)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-价值明细数据(新增)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "数据种类、金额、时长(最长24h)、执行次数必填,备注选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AddFundDataReq" - } - } - ], - "responses": { - "200": { - "description": "插入数据 id", - "schema": { - "type": "int" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/fundDataList": { - "post": { - "description": "新增数据列表(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-新增数据列表(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "分页信息必填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.GetFundDataListReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetFundDataListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/fundDataRecordList": { - "post": { - "description": "新增数据列表详情(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-新增数据列表详情(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "获取到的 system_id 以及分页信息", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.GetFundDataRecordListReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetFundDataRecordListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/platformRevenueList": { - "post": { - "description": "平台营收数据(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-平台营收数据(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "分页信息必填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.ListPlatformRevenueReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.ListPlatformRevenueResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve": { - "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": "1:按天 2:按小时 3:按周", - "name": "kind", - "in": "query" - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetPriceCurveResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/platformRevenue/PlatformRevenueAdd": { - "post": { - "description": "平台营收数据(新增)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-平台营收数据(新增)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "数据种类、金额、时长(最长24h)、执行次数必填,备注选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AddPlatformRevenueReq" - } - } - ], - "responses": { - "200": { - "description": "插入数据 id", - "schema": { - "type": "int" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/platformRevenue/SetVideoReward": { - "post": { - "description": "激励视频(设置)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-激励视频(设置)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "落地页不填页大小默认20条数据", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.SetVideoRewardReq" - } - } - ], - "responses": { - "200": { - "description": "success", - "schema": { - "type": "string" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/updateBasic": { - "post": { - "description": "基础设置(更新)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-基础设置(更新)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "system_id 必填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UpdateEggEnergyBasicReq" - } - } - ], - "responses": { - "200": { - "description": "修改数据条数", - "schema": { - "type": "int" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/userCoin/activePointsUserCoinFlowList": { - "post": { - "description": "活跃积分持有流水(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-活跃积分持有者明细-活跃积分持有流水(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "至少传入 货币类型 ID 用户 UID 页数 每页大小", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.GetActivePointsUserCoinFlowListReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.GetActivePointsUserCoinFlowListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/userCoin/activePointsUserCoinList": { - "post": { - "description": "活跃积分持有(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-活跃积分持有者明细-活跃积分持有(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "落地页不填页大小默认20条数据", - "name": "req", - "in": "body", - "schema": { - "$ref": "#/definitions/md.GetActivePointsUserCoinListReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.GetActivePointsUserCoinListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/userCoin/greenEnergyUserCoinFlowList": { - "post": { - "description": "绿色能量持有流水(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-绿色能量持有者明细-绿色能量持有流水(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "至少传入 货币类型 ID 用户 UID 页数 每页大小", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.GetGreenEnergyUserCoinFlowListReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.GetGreenEnergyUserCoinFlowListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/userCoin/greenEnergyUserCoinList": { - "post": { - "description": "绿色能量(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-绿色能量持有者明细-绿色能量(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "落地页不填页大小默认20条数据", - "name": "req", - "in": "body", - "schema": { - "$ref": "#/definitions/md.GetGreenEnergyUserCoinListReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.GetGreenEnergyUserCoinListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsAdd": { - "post": { - "description": "社区分红(新增)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-社区分红(新增)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "分红名称、分红总量", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AddCommunityDividendsReq" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "type": "success" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsList": { - "post": { - "description": "社区分红(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-社区分红(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "页数、每页大小必填 起止时间、起止数量选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.ListCommunityDividendsReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.ListCommunityDividendsResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserAdd": { - "post": { - "description": "社区长列表(新增)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-社区长列表(新增)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "新增社区长 ID、备注", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AddCommunityDividendsWithUserReq" - } - } - ], - "responses": { - "200": { - "description": "插入数据 ID", - "schema": { - "type": "int" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserList": { - "post": { - "description": "社区长列表(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-社区长列表(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "页数、每页大小必填 手机号、用户ID选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.ListCommunityDividendsWithUserReq" - } - } - ], - "responses": { - "200": { - "description": "社区长列表", - "schema": { - "$ref": "#/definitions/md.ListCommunityDividendsWithUserResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/exchangeUserPosition": { - "post": { - "description": "关系分布图(位置转换)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-关系分布图(位置转换)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "需要交换的两个位置", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.ExchangeUserPositionReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "type": "" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/findSubUserRelationshipMap": { - "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": "uid", - "in": "query", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.FindSubUserRelationshipMapResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/findUserRelationshipMap": { - "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": "uid", - "in": "query", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.TreeNode" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/getBasic": { - "get": { - "description": "公排基础设置(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-公排基础设置(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetPublicPlatoonBasicResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/index": { - "post": { - "description": "免罚用户(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-免罚用户(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "页数和行数必填,uid选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.GetFreePublishUserReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.GetFreePublishUserResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/save": { - "post": { - "description": "免罚用户(新增)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-免罚用户(新增)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "页数和行数必填,uid选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AddFreePublishUserReq" - } - } - ], - "responses": { - "200": { - "description": "插入数据 ID", - "schema": { - "type": "int" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/relationshipMap": { - "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": "phone", - "name": "phone", - "in": "query", - "required": true - }, - { - "type": "string", - "description": "uid", - "name": "uid", - "in": "query", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.TreeNode" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/updateBasic": { - "put": { - "description": "公排基础设置(修改)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-公排基础设置(修改)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "公排设置表单内容", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UpdatePublicPlatoonBasicReq" - } - } - ], - "responses": { - "200": { - "description": "success", - "schema": { - "type": "string" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/userDailyActivityAnalysis/index": { - "post": { - "description": "日活分析", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-日活分析", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "用户 ID、查询开始时间、结束时间(查询时间不超过30天)、页数、每页大小", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UserDailyActivityAnalysisReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.UserDailyActivityAnalysisResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/login": { - "post": { - "description": "登入", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "登录" - ], - "summary": "登陆", - "parameters": [ - { - "description": "用户名密码", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.LoginReq" - } - } - ], - "responses": { - "200": { - "description": "token", - "schema": { - "$ref": "#/definitions/md.LoginResponse" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/marketingApplications/newUserRedPackage/getBasic": { - "get": { - "description": "新人红包设置(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "营销应用" - ], - "summary": "制度中心-营销应用-新人红包设置(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageGetBasicResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/marketingApplications/newUserRedPackage/recordFlowList": { - "post": { - "description": "新人红包列表明细(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "营销应用" - ], - "summary": "制度中心-营销应用-新人红包列表明细(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "新人红包列表明细查询条件(分页信息、用户 ID必填)", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/marketingApplications/newUserRedPackage/recordList": { - "post": { - "description": "新人红包列表(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "营销应用" - ], - "summary": "制度中心-营销应用-新人红包列表(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "新人红包列表查询条件(分页信息必填)", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordListReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/marketingApplications/newUserRedPackage/updateBasic": { - "put": { - "description": "新人红包设置(修改)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "营销应用" - ], - "summary": "制度中心-营销应用-新人红包设置(修改)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "新人红包设置表单", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageUpdateBasicReq" - } - } - ], - "responses": { - "200": { - "description": "success", - "schema": { - "type": "string" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - } - }, - "definitions": { - "applet_app_md_institutional_management_egg_energy.BasicSetting": { - "type": "object", - "properties": { - "direct_push_reward": { - "description": "直推奖励", - "allOf": [ - { - "$ref": "#/definitions/md.TeamRewardSettingStruct" - } - ] - }, - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "person_egg_energy_coin_id": { - "description": "个人蛋蛋能量对应虚拟币 id", - "type": "integer" - }, - "person_egg_points_coin_id": { - "description": "个人蛋蛋积分对应虚拟币 id", - "type": "integer" - }, - "team_egg_energy_coin_id": { - "description": "团队蛋蛋能量对应虚拟币 id", - "type": "integer" - }, - "team_egg_points_coin_id": { - "description": "团队蛋蛋积分对应虚拟币 id", - "type": "integer" - } - } - }, - "applet_app_md_institutional_management_egg_energy.Paginate": { - "type": "object", - "properties": { - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "total": { - "description": "总数据量", - "type": "integer" - } - } - }, - "applet_app_md_institutional_management_new_user_red_package.Paginate": { - "type": "object", - "properties": { - "limit": { - "type": "integer" - }, - "page": { - "type": "integer" - }, - "total": { - "type": "integer" - } - } - }, - "applet_app_md_institutional_management_public_platoon.BasicSetting": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "is_self_active_get_team_revenue": { - "description": "会员本人没有日活,没有圈层奖励(1:开启 0:关闭)", - "type": "integer" - }, - "originator_uid": { - "description": "创始人uid", - "type": "integer" - }, - "several_rows": { - "description": "几排", - "type": "integer" - }, - "several_times": { - "description": "几乘", - "type": "integer" - }, - "system_punish_replace": { - "description": "是否位置滑落 被新用户替换 0否 1是", - "type": "integer" - }, - "system_punish_replace_value": { - "description": "xx天未活跃,处罚滑落", - "type": "integer" - } - } - }, - "applet_app_md_institutional_management_public_platoon.Paginate": { - "type": "object", - "properties": { - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "total": { - "description": "总数据量", - "type": "integer" - } - } - }, - "md.ActivePointsWalletNode": { - "type": "object", - "properties": { - "amount": { - "type": "string", - "example": "账户余额" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - }, - "user_name": { - "type": "string", - "example": "用户名" - }, - "user_phone": { - "type": "string", - "example": "手机号" - } - } - }, - "md.AddCommunityDividendsReq": { - "type": "object", - "properties": { - "amount": { - "description": "社区分红数量", - "type": "string" - }, - "name": { - "type": "string", - "example": "社区分红名称" - } - } - }, - "md.AddCommunityDividendsWithUserReq": { - "type": "object", - "properties": { - "memo": { - "type": "string", - "example": "备注" - }, - "uid": { - "description": "新增社区长用户 ID", - "type": "integer" - } - } - }, - "md.AddFreePublishUserReq": { - "type": "object", - "properties": { - "uid": { - "type": "integer" - } - } - }, - "md.AddFundDataReq": { - "type": "object", - "properties": { - "frequency": { - "description": "频率(分钟)", - "type": "integer" - }, - "hours": { - "description": "时长(小时)", - "type": "integer" - }, - "kind": { - "description": "种类(1:公司补贴 2:资方投资 3:市场期望)", - "type": "integer" - }, - "memo": { - "type": "string", - "example": "备注" - }, - "total_amount": { - "description": "金额", - "type": "string" - } - } - }, - "md.AddPlatformRevenueReq": { - "type": "object", - "properties": { - "frequency": { - "description": "频率(分钟)", - "type": "integer" - }, - "hours": { - "description": "时长(小时)", - "type": "integer" - }, - "kind": { - "description": "种类(1:开屏广告 2:banner 广告 3:信息流广告 4:插屏广告)", - "type": "integer" - }, - "memo": { - "type": "string", - "example": "备注" - }, - "total_amount": { - "description": "金额", - "type": "string" - } - } - }, - "md.DailyActivityAnalysisTopData": { - "type": "object", - "properties": { - "activity_count": { - "description": "子节点活跃天数", - "type": "integer" - }, - "team_activity_user_count": { - "description": "子节点活跃人数", - "type": "integer" - }, - "team_user_count": { - "description": "团队人数", - "type": "integer" - } - } - }, - "md.DataSetting": { - "type": "object", - "properties": { - "total_angel_investor": { - "description": "天使投资人", - "type": "string", - "example": "天使投资人" - }, - "total_ecological_development": { - "description": "生态建设", - "type": "string", - "example": "当前价格" - }, - "total_issuance_amount": { - "description": "总发行量", - "type": "string", - "example": "总发行量" - }, - "total_operate_fund": { - "description": "运营资金", - "type": "string", - "example": "运营资金" - }, - "total_technology_team": { - "description": "技术团队", - "type": "string", - "example": "技术团队" - }, - "total_user_for_person": { - "description": "TotalTeamDividends string` + "`" + `json:\"total_team_dividends\" example:\"团队分红\"` + "`" + ` // 团队分红", - "type": "string", - "example": "个人区域" - }, - "total_user_for_team": { - "description": "团队区域", - "type": "string", - "example": "团队区域" - } - } - }, - "md.DestructionSettingStruct": { - "type": "object", - "properties": { - "community_dividends": { - "description": "社区分红百分比", - "type": "string" - }, - "destruction_quantity": { - "description": "销毁百分比", - "type": "string" - }, - "development_committee": { - "description": "发展委员会百分比", - "type": "string" - }, - "marketplace_merchant": { - "description": "市商数量百分比", - "type": "string" - }, - "public_welfare_and_charity": { - "description": "公益慈善百分比", - "type": "string" - }, - "star_level_dividends": { - "description": "星级分红百分比", - "type": "string" - } - } - }, - "md.DynamicDataFlowListReq": { - "type": "object", - "properties": { - "end_at": { - "description": "结束时间", - "type": "string", - "example": "结束时间" - }, - "kind": { - "description": "持有类型", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string", - "example": "开始时间" - } - } - }, - "md.DynamicDataFlowListResp": { - "type": "object", - "properties": { - "kind_list": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.EggEnergyAvailableEnergyFlow" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - } - }, - "md.EggEnergyAvailableEnergyFlow": { - "type": "object", - "properties": { - "after_community_dividends": { - "type": "string" - }, - "after_destruction_quantity_values": { - "type": "string" - }, - "after_development_committee_values": { - "type": "string" - }, - "after_marketplace_merchant_fund_values": { - "type": "string" - }, - "after_marketplace_merchant_values": { - "type": "string" - }, - "after_now_energy_total_nums": { - "type": "string" - }, - "after_planet_total_value": { - "type": "string" - }, - "after_price": { - "type": "string" - }, - "after_public_welfare_and_charity_values": { - "type": "string" - }, - "after_star_level_dividends_values": { - "type": "string" - }, - "amount": { - "type": "string" - }, - "before_community_dividends": { - "type": "string" - }, - "before_destruction_quantity_values": { - "type": "string" - }, - "before_development_committee_values": { - "type": "string" - }, - "before_marketplace_merchant_fund_values": { - "type": "string" - }, - "before_marketplace_merchant_values": { - "type": "string" - }, - "before_now_energy_total_nums": { - "type": "string" - }, - "before_planet_total_value": { - "type": "string" - }, - "before_price": { - "type": "string" - }, - "before_public_welfare_and_charity_values": { - "type": "string" - }, - "before_star_level_dividends_values": { - "type": "string" - }, - "create_time": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "kind": { - "type": "integer" - }, - "title": { - "type": "string" - } - } - }, - "md.EggEnergyCommunityDividends": { - "type": "object", - "properties": { - "amount": { - "description": "分红数量", - "type": "string" - }, - "coin_id": { - "description": "虚拟币 id", - "type": "integer" - }, - "create_at": { - "description": "分红时间", - "type": "string" - }, - "id": { - "type": "integer" - }, - "is_over": { - "description": "是否分红完毕", - "type": "integer" - }, - "name": { - "type": "string", - "example": "名称" - }, - "persons_num": { - "description": "分红人数", - "type": "integer" - }, - "update_at": { - "type": "string" - } - } - }, - "md.EggEnergyCommunityDividendsWithUser": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "memo": { - "type": "string", - "example": "备注" - }, - "nickname": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "uid": { - "type": "integer" - } - } - }, - "md.ExchangeRulesStruct": { - "type": "object", - "properties": { - "auto_exchange_nums_by_person": { - "description": "个人数量X个,自动兑换可用蛋蛋能量", - "type": "string" - }, - "auto_exchange_nums_by_team": { - "description": "团队数量X个,自动兑换团队蛋蛋能量", - "type": "string" - }, - "auto_exchange_rate_by_person": { - "description": "个人数量百分比,自动兑换可用蛋蛋能量", - "type": "string" - }, - "auto_exchange_rate_by_team": { - "description": "团队数量百分比,自动兑换团队蛋蛋能量", - "type": "string" - } - } - }, - "md.ExchangeUserPositionReq": { - "type": "object", - "properties": { - "position_1": { - "description": "位置1,具体值取返回数据中的 system_id", - "type": "integer" - }, - "position_2": { - "description": "位置2,具体值取返回数据中的 system_id", - "type": "integer" - } - } - }, - "md.FindSubUserRelationshipMapResp": { - "type": "object", - "properties": { - "basic_setting": { - "description": "公排设置", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.BasicSetting" - } - ] - }, - "search_uid": { - "description": "查找的用户 ID", - "type": "string" - }, - "sub_user": { - "description": "上级用户信息", - "allOf": [ - { - "$ref": "#/definitions/md.SubUser" - } - ] - } - } - }, - "md.FreePublishUserNode": { - "type": "object", - "properties": { - "nickname": { - "type": "string", - "example": "昵称" - }, - "phone": { - "type": "string", - "example": "手机号" - }, - "uid": { - "type": "integer" - } - } - }, - "md.FundDataNode": { - "type": "object", - "properties": { - "balance_amount": { - "description": "余额", - "type": "string" - }, - "balance_times": { - "description": "剩余执行次数", - "type": "integer" - }, - "create_at": { - "description": "创建时间", - "type": "string" - }, - "hours": { - "description": "时长", - "type": "integer" - }, - "kind": { - "description": "种类(1:公司补贴 2:资方投资 3:市场期望)", - "type": "integer" - }, - "memo": { - "description": "备注", - "type": "string" - }, - "system_id": { - "type": "integer" - }, - "total_amount": { - "description": "金额", - "type": "string" - } - } - }, - "md.FundDataRecordNode": { - "type": "object", - "properties": { - "after_planet_total_value": { - "description": "执行后-星球价值", - "type": "string" - }, - "after_price": { - "description": "执行后-价格", - "type": "string" - }, - "balance_amount": { - "description": "余额", - "type": "string" - }, - "balance_times": { - "description": "剩余执行次数", - "type": "integer" - }, - "before_planet_total_value": { - "description": "执行前-星球价值", - "type": "string" - }, - "before_price": { - "description": "执行前-价格", - "type": "string" - }, - "create_at": { - "type": "string" - }, - "total_amount": { - "description": "金额", - "type": "string" - } - } - }, - "md.GetActivePointsUserCoinFlowListReq": { - "type": "object", - "properties": { - "coin_id": { - "description": "货币类型 ID", - "type": "integer" - }, - "direction": { - "description": "流水方向:1收入 2支出", - "type": "integer" - }, - "end_at": { - "description": "结束时间", - "type": "string" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - } - } - }, - "md.GetActivePointsUserCoinFlowListResp": { - "type": "object", - "properties": { - "list": { - "description": "流水信息", - "type": "array", - "items": { - "$ref": "#/definitions/md.UserVirtualCoinFlow" - } - }, - "paginate": { - "description": "分页信息", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - ] - }, - "select_data": { - "description": "流水类型", - "allOf": [ - { - "$ref": "#/definitions/md.SelectData" - } - ] - } - } - }, - "md.GetActivePointsUserCoinListReq": { - "type": "object", - "properties": { - "end_coin": { - "type": "string", - "example": "最大金额" - }, - "kind": { - "description": "虚拟币种类编号", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "单页大小", - "type": "integer" - }, - "start_coin": { - "type": "string", - "example": "最小金额" - }, - "uid": { - "description": "指定查询用户 ID", - "type": "integer" - }, - "user_name": { - "type": "string", - "example": "用户名称" - }, - "user_phone": { - "type": "string", - "example": "手机号" - } - } - }, - "md.GetActivePointsUserCoinListResp": { - "type": "object", - "properties": { - "kind_list": { - "description": "货币类型集合", - "type": "array", - "items": { - "$ref": "#/definitions/md.VirtualCoinListNode" - } - }, - "list": { - "description": "余额集合", - "type": "array", - "items": { - "$ref": "#/definitions/md.ActivePointsWalletNode" - } - }, - "sum_user_amount": { - "description": "用户持有总数", - "type": "number" - }, - "total": { - "description": "持有该类型用户数", - "type": "integer" - } - } - }, - "md.GetBasicResp": { - "type": "object", - "properties": { - "oss_access_key_id": { - "type": "string", - "example": "oss访问秘钥id" - }, - "oss_access_key_secret": { - "type": "string", - "example": "oss访问秘钥" - }, - "oss_bucket_name": { - "type": "string", - "example": "oss存储桶名称" - }, - "oss_bucket_scheme": { - "type": "string", - "example": "oss上传方式" - }, - "oss_endpoint": { - "type": "string", - "example": "oss地域节点" - }, - "oss_object_domain": { - "type": "string", - "example": "oss域名" - } - } - }, - "md.GetEggCoreDataListResp": { - "type": "object", - "properties": { - "now_energy_total_nums": { - "description": "现行总量", - "type": "string", - "example": "现行总量" - }, - "now_price": { - "description": "当前价格", - "type": "string", - "example": "当前价格" - }, - "planet_total_value": { - "description": "星球价值", - "type": "string", - "example": "星球价值" - }, - "user_hold_total_nums": { - "description": "用户持有总量", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "md.GetEggEnergyBasicResp": { - "type": "object", - "properties": { - "basic_setting": { - "description": "基础设置", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting" - } - ] - }, - "data_setting": { - "description": "数据设置", - "allOf": [ - { - "$ref": "#/definitions/md.DataSetting" - } - ] - }, - "destruction_setting": { - "description": "销毁设置", - "allOf": [ - { - "$ref": "#/definitions/md.DestructionSettingStruct" - } - ] - }, - "exchange_rules": { - "description": "兑换规则", - "allOf": [ - { - "$ref": "#/definitions/md.ExchangeRulesStruct" - } - ] - }, - "new_user_incentive_rules": { - "description": "新用户奖励规则", - "allOf": [ - { - "$ref": "#/definitions/md.NewUserRewardRules" - } - ] - }, - "price_setting": { - "description": "价格设置", - "allOf": [ - { - "$ref": "#/definitions/md.PriceSettingStruct" - } - ] - }, - "reward_system": { - "description": "圈层奖励", - "allOf": [ - { - "$ref": "#/definitions/md.RewardSystemStruct" - } - ] - }, - "system_id": { - "description": "该设置系统 ID", - "type": "integer" - }, - "video_reward_setting": { - "description": "视频奖励", - "allOf": [ - { - "$ref": "#/definitions/md.VideoRewardSetting" - } - ] - } - } - }, - "md.GetFreePublishUserReq": { - "type": "object", - "properties": { - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "当前页数", - "type": "integer" - }, - "uid": { - "description": "筛选的用户 ID", - "type": "integer" - } - } - }, - "md.GetFreePublishUserResp": { - "type": "object", - "properties": { - "list": { - "description": "免罚用户列表", - "type": "array", - "items": { - "$ref": "#/definitions/md.FreePublishUserNode" - } - }, - "paginate": { - "description": "分页信息", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.Paginate" - } - ] - } - } - }, - "md.GetFundDataListReq": { - "type": "object", - "properties": { - "end_at": { - "type": "string", - "example": "结束时间" - }, - "kind": { - "description": "数据类型", - "type": "integer" - }, - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "start_at": { - "type": "string", - "example": "开始时间" - } - } - }, - "md.GetFundDataListResp": { - "type": "object", - "properties": { - "kind_list": { - "description": "类型列表", - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "list": { - "description": "数据列表", - "type": "array", - "items": { - "$ref": "#/definitions/md.FundDataNode" - } - }, - "paginate": { - "description": "分页数据", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - ] - } - } - }, - "md.GetFundDataRecordListReq": { - "type": "object", - "properties": { - "limit": { - "description": "页面大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "system_id": { - "description": "数据在系统中的 ID", - "type": "integer" - } - } - }, - "md.GetFundDataRecordListResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.FundDataRecordNode" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - } - }, - "md.GetGreenEnergyUserCoinFlowListReq": { - "type": "object", - "properties": { - "coin_id": { - "description": "货币类型 ID", - "type": "integer" - }, - "direction": { - "description": "流水方向:1收入 2支出", - "type": "integer" - }, - "end_at": { - "description": "结束时间", - "type": "string" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - } - } - }, - "md.GetGreenEnergyUserCoinFlowListResp": { - "type": "object", - "properties": { - "list": { - "description": "流水信息", - "type": "array", - "items": { - "$ref": "#/definitions/md.UserVirtualCoinFlow" - } - }, - "paginate": { - "description": "分页信息", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - ] - }, - "select_data": { - "description": "流水类型", - "allOf": [ - { - "$ref": "#/definitions/md.SelectData" - } - ] - } - } - }, - "md.GetGreenEnergyUserCoinListReq": { - "type": "object", - "properties": { - "end_coin": { - "type": "string", - "example": "最大金额" - }, - "kind": { - "description": "虚拟币种类编号", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "单页大小", - "type": "integer" - }, - "start_coin": { - "type": "string", - "example": "最小金额" - }, - "uid": { - "description": "指定查询用户 ID", - "type": "integer" - }, - "user_name": { - "type": "string", - "example": "用户名称" - }, - "user_phone": { - "type": "string", - "example": "手机号" - } - } - }, - "md.GetGreenEnergyUserCoinListResp": { - "type": "object", - "properties": { - "kind_list": { - "description": "货币类型集合", - "type": "array", - "items": { - "$ref": "#/definitions/md.VirtualCoinListNode" - } - }, - "list": { - "description": "余额集合", - "type": "array", - "items": { - "$ref": "#/definitions/md.ActivePointsWalletNode" - } - }, - "sum_user_amount": { - "description": "用户持有总数", - "type": "number" - }, - "total": { - "description": "持有该类型用户数", - "type": "integer" - } - } - }, - "md.GetPriceCurveResp": { - "type": "object", - "properties": { - "x_data": { - "type": "array", - "items": {} - }, - "y_data": { - "type": "array", - "items": {} - } - } - }, - "md.GetPublicPlatoonBasicResp": { - "type": "object", - "properties": { - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "is_self_active_get_team_revenue": { - "description": "会员本人没有日活,没有圈层奖励(1:开启 0:关闭)", - "type": "integer" - }, - "originator_uid": { - "description": "创始人uid", - "type": "integer" - }, - "several_rows": { - "description": "几排", - "type": "integer" - }, - "several_times": { - "description": "几乘", - "type": "integer" - }, - "system_punish_replace": { - "description": "是否位置滑落 被新用户替换 0否 1是", - "type": "integer" - }, - "system_punish_replace_value": { - "description": "xx天未活跃,处罚滑落", - "type": "integer" - } - } - }, - "md.ListCommunityDividendsReq": { - "type": "object", - "properties": { - "end_at": { - "description": "结束时间", - "type": "string" - }, - "end_nums": { - "description": "分红总量上限", - "type": "integer" - }, - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string" - }, - "start_nums": { - "description": "分红总量下限", - "type": "integer" - } - } - }, - "md.ListCommunityDividendsResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.EggEnergyCommunityDividends" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.Paginate" - } - } - }, - "md.ListCommunityDividendsWithUserReq": { - "type": "object", - "properties": { - "limit": { - "type": "integer" - }, - "page": { - "type": "integer" - }, - "phone": { - "type": "string" - }, - "uid": { - "type": "integer" - } - } - }, - "md.ListCommunityDividendsWithUserResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.EggEnergyCommunityDividendsWithUser" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.Paginate" - } - } - }, - "md.ListPlatformRevenueReq": { - "type": "object", - "properties": { - "end_at": { - "type": "string", - "example": "结束时间" - }, - "kind": { - "description": "数据类型", - "type": "integer" - }, - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "start_at": { - "type": "string", - "example": "开始时间" - } - } - }, - "md.ListPlatformRevenueResp": { - "type": "object", - "properties": { - "kind_list": { - "description": "类型列表", - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "list": { - "description": "数据列表", - "type": "array", - "items": { - "$ref": "#/definitions/md.PlatformRevenueDataNode" - } - }, - "paginate": { - "description": "分页数据", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - ] - } - } - }, - "md.LoginReq": { - "type": "object", - "required": [ - "password", - "username" - ], - "properties": { - "code": { - "type": "string", - "example": "验证码" - }, - "password": { - "type": "string", - "example": "登录密码" - }, - "username": { - "type": "string", - "example": "登录账号" - } - } - }, - "md.LoginResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - } - } - }, - "md.ManualScoreReq": { - "type": "object", - "properties": { - "index_id": { - "description": "文档id", - "type": "string" - }, - "score": { - "type": "string", - "example": "分数" - } - } - }, - "md.NewUserRedPackageGetBasicResp": { - "type": "object", - "properties": { - "create_at": { - "type": "string" - }, - "days": { - "description": "天数", - "type": "integer" - }, - "is_double": { - "description": "是否翻倍", - "type": "integer" - }, - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "total_amount": { - "type": "string", - "example": "总金额" - }, - "update_at": { - "type": "string" - } - } - }, - "md.NewUserRedPackageRecordFlowListReq": { - "type": "object", - "properties": { - "end_at": { - "description": "结束时间", - "type": "string" - }, - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - } - } - }, - "md.NewUserRedPackageRecordFlowListResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.NewUserRedPackageRecordFlowNode" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_new_user_red_package.Paginate" - } - } - }, - "md.NewUserRedPackageRecordFlowNode": { - "type": "object", - "properties": { - "balance_amount": { - "description": "剩余金额", - "type": "string" - }, - "balance_days": { - "description": "剩余天数", - "type": "integer" - }, - "basic_amount": { - "description": "基础金额", - "type": "string" - }, - "create_at": { - "description": "创建时间", - "type": "string" - }, - "day_num": { - "description": "第x天", - "type": "integer" - }, - "double_rate": { - "description": "倍率", - "type": "string" - }, - "id": { - "description": "流水 ID", - "type": "integer" - }, - "is_double": { - "description": "是否翻倍", - "type": "integer" - }, - "receive_days": { - "description": "领取天数", - "type": "integer" - }, - "total_amount": { - "description": "实际金额", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - } - } - }, - "md.NewUserRedPackageRecordListReq": { - "type": "object", - "properties": { - "end_at": { - "description": "结束时间", - "type": "string" - }, - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - } - } - }, - "md.NewUserRedPackageRecordListResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.NewUserRedPackageRecordNode" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_new_user_red_package.Paginate" - } - } - }, - "md.NewUserRedPackageRecordNode": { - "type": "object", - "properties": { - "balance_amount": { - "description": "剩余金额", - "type": "string" - }, - "balance_days": { - "description": "剩余天数", - "type": "integer" - }, - "create_at": { - "description": "创建时间", - "type": "string" - }, - "days": { - "description": "天数", - "type": "integer" - }, - "receive_days": { - "description": "领取天数", - "type": "integer" - }, - "state": { - "description": "状态(0:待领取 1:领取中 2:已领取 3:已冻结)", - "type": "integer" - }, - "system_id": { - "description": "系统中记录的 ID", - "type": "integer" - }, - "total_amount": { - "description": "金额", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - }, - "update_at": { - "description": "修改时间", - "type": "string" - } - } - }, - "md.NewUserRedPackageUpdateBasicReq": { - "type": "object", - "properties": { - "days": { - "description": "天数", - "type": "integer" - }, - "is_double": { - "description": "是否翻倍", - "type": "integer" - }, - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "total_amount": { - "type": "string", - "example": "总金额" - } - } - }, - "md.NewUserRewardRules": { - "type": "object", - "properties": { - "continue_days": { - "description": "连续x天", - "type": "integer" - }, - "invite_user_reward_value": { - "description": "拉新用户奖励x个活跃积分", - "type": "integer" - }, - "reward_coefficient": { - "description": "奖励系数", - "type": "number" - } - } - }, - "md.PlatformRevenueDataNode": { - "type": "object", - "properties": { - "balance_amount": { - "description": "余额", - "type": "string" - }, - "balance_times": { - "description": "剩余执行次数", - "type": "integer" - }, - "create_at": { - "description": "创建时间", - "type": "string" - }, - "hours": { - "description": "时长", - "type": "integer" - }, - "kind": { - "description": "种类(1:开屏广告 2:banner 广告 3:信息流广告 4:插屏广告)", - "type": "integer" - }, - "memo": { - "description": "备注", - "type": "string" - }, - "system_id": { - "type": "integer" - }, - "total_amount": { - "description": "金额", - "type": "string" - } - } - }, - "md.PriceSettingStruct": { - "type": "object", - "properties": { - "marketplace_merchants_fund_exchange_marketplace_merchants_nums_value": { - "description": "市商资金单笔x元自动兑换", - "type": "string" - }, - "marketplace_merchants_nums_exchange_marketplace_merchants_fund_value": { - "description": "市商数量单笔x数量自动兑换", - "type": "string" - }, - "price_below_value": { - "description": "低于x元", - "type": "string" - }, - "price_higher_than_value": { - "description": "高于x元", - "type": "string" - } - } - }, - "md.Response": { - "type": "object", - "properties": { - "code": { - "type": "string", - "example": "响应码" - }, - "data": { - "description": "内容" - }, - "msg": { - "type": "string", - "example": "具体错误原因" - } - } - }, - "md.RewardSystemStruct": { - "type": "object", - "properties": { - "level": { - "description": "圈层", - "type": "integer" - }, - "reward_condition": { - "description": "奖励条件", - "type": "string" - }, - "reward_value": { - "description": "奖励值", - "type": "string" - } - } - }, - "md.SelectData": { - "type": "object", - "properties": { - "direction": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "md.SetBasicReq": { - "type": "object", - "properties": { - "oss_access_key_id": { - "type": "string", - "example": "oss访问秘钥id" - }, - "oss_access_key_secret": { - "type": "string", - "example": "oss访问秘钥" - }, - "oss_bucket_name": { - "type": "string", - "example": "oss存储桶名称" - }, - "oss_bucket_scheme": { - "type": "string", - "example": "oss上传方式" - }, - "oss_endpoint": { - "type": "string", - "example": "oss地域节点" - }, - "oss_object_domain": { - "type": "string", - "example": "oss域名" - } - } - }, - "md.SetVideoRewardReq": { - "type": "object", - "properties": { - "ecmp": { - "description": "当前 Ecmp 值", - "type": "string" - }, - "unit_price": { - "description": "单价", - "type": "string" - } - } - }, - "md.SonUserDailyActivityAnalysisNode": { - "type": "object", - "properties": { - "activity_day_nums": { - "description": "活跃子节点活跃天数", - "type": "integer" - }, - "nickname": { - "type": "string", - "example": "昵称" - }, - "phone": { - "type": "string", - "example": "手机号" - }, - "uid": { - "description": "查询用户活跃子节点 ID", - "type": "integer" - } - } - }, - "md.StatisticsEggPointReq": { - "type": "object", - "properties": { - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - } - } - }, - "md.StatisticsEggPointResp": { - "type": "object", - "properties": { - "statistics_user_egg_account_balance_exchange_egg_energy_nums_range": { - "description": "统计用户\"余额兑换蛋蛋能量数量\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_browse_interface_nums_range": { - "description": "统计用户\"浏览界面次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_college_learning_nums_range": { - "description": "统计用户\"学院学习次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_ecpm_range": { - "description": "统计用户\"ecpm\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_egg_energy_exchange_account_balance_range": { - "description": "统计用户\"蛋蛋能量兑换余额数量\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_forum_comments_nums_range": { - "description": "统计用户\"论坛评论次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_invite_user_nums_range": { - "description": "统计用户\"拉新人数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_kind_proportion": { - "description": "统计用户蛋蛋分\"评比类型\"占比", - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "statistics_user_egg_person_add_activity_value_range": { - "description": "统计用户\"个人活跃积分增量值\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_score_value_range": { - "description": "统计用户蛋蛋分范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_send_circle_of_friend_nums_range": { - "description": "统计用户\"发朋友圈次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_send_red_package_nums_range": { - "description": "统计用户\"发红包次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_sign_in_nums_range": { - "description": "统计用户\"签到次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_team_activity_nums_range": { - "description": "统计用户\"团队活跃次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_violate_nums_range": { - "description": "统计用户\"违规次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - }, - "year_list": { - "description": "年份\u0026\u0026周份列表", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "md.SubUser": { - "type": "object", - "properties": { - "avatar_url": { - "type": "string", - "example": "头像" - }, - "level": { - "description": "整个系统中的等级", - "type": "integer" - }, - "nickname": { - "type": "string", - "example": "昵称" - }, - "phone": { - "type": "string", - "example": "手机号" - }, - "pid": { - "type": "integer" - }, - "position": { - "description": "以pid1为创始人中网的位置", - "type": "integer" - }, - "uid": { - "type": "integer" - } - } - }, - "md.TeamRewardSettingStruct": { - "type": "object", - "properties": { - "member_self_is_open_get_team_reward": { - "description": "会员是否活跃得到团队奖励", - "type": "string" - }, - "one_round_duration": { - "description": "一轮持续时间", - "type": "string" - }, - "reward_decrement_value": { - "description": "递减百分比", - "type": "string" - }, - "reward_end_value": { - "description": "奖励结束值", - "type": "string" - } - } - }, - "md.TreeNode": { - "type": "object", - "properties": { - "avatar_url": { - "type": "string", - "example": "头像" - }, - "level": { - "type": "integer" - }, - "nickname": { - "type": "string", - "example": "昵称" - }, - "phone": { - "type": "string", - "example": "手机号" - }, - "pid": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "son": { - "type": "array", - "items": { - "$ref": "#/definitions/md.TreeNode" - } - }, - "system_id": { - "description": "公排网中id", - "type": "integer" - }, - "uid": { - "type": "integer" - } - } - }, - "md.UpdateEggEnergyBasicReq": { - "type": "object", - "properties": { - "basic_setting": { - "description": "基础设置", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting" - } - ] - }, - "data_setting": { - "description": "数据设置", - "allOf": [ - { - "$ref": "#/definitions/md.DataSetting" - } - ] - }, - "destruction_setting": { - "description": "销毁设置", - "allOf": [ - { - "$ref": "#/definitions/md.DestructionSettingStruct" - } - ] - }, - "exchange_rules": { - "description": "兑换规则", - "allOf": [ - { - "$ref": "#/definitions/md.ExchangeRulesStruct" - } - ] - }, - "new_user_incentive_rules": { - "description": "新用户奖励规则\t\t\t\t\t\t\t\t\t\t\t // 新用户奖励规则", - "allOf": [ - { - "$ref": "#/definitions/md.NewUserRewardRules" - } - ] - }, - "price_setting": { - "description": "价格设置", - "allOf": [ - { - "$ref": "#/definitions/md.PriceSettingStruct" - } - ] - }, - "reward_system": { - "description": "圈层奖励", - "allOf": [ - { - "$ref": "#/definitions/md.RewardSystemStruct" - } - ] - }, - "system_id": { - "description": "该设置系统 ID", - "type": "integer" - }, - "video_reward_setting": { - "description": "视频奖励", - "allOf": [ - { - "$ref": "#/definitions/md.VideoRewardSetting" - } - ] - } - } - }, - "md.UpdatePublicPlatoonBasicReq": { - "type": "object", - "properties": { - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "is_self_active_get_team_revenue": { - "description": "会员本人没有日活,没有圈层奖励(1:开启 0:关闭)", - "type": "integer" - }, - "originator_uid": { - "description": "创始人uid", - "type": "integer" - }, - "several_rows": { - "description": "几排", - "type": "integer" - }, - "several_times": { - "description": "几乘", - "type": "integer" - }, - "system_punish_replace": { - "description": "是否位置滑落 被新用户替换 0否 1是", - "type": "integer" - }, - "system_punish_replace_value": { - "description": "xx天未活跃,处罚滑落", - "type": "integer" - } - } - }, - "md.UserDailyActivityAnalysisReq": { - "type": "object", - "properties": { - "end_date": { - "type": "string", - "example": "结束日期" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "start_date": { - "type": "string", - "example": "开始日期" - }, - "uid": { - "description": "查询用户 ID", - "type": "integer" - } - } - }, - "md.UserDailyActivityAnalysisResp": { - "type": "object", - "properties": { - "son_user_data": { - "description": "被查询用户子节点信息", - "type": "array", - "items": { - "$ref": "#/definitions/md.SonUserDailyActivityAnalysisNode" - } - }, - "top_data": { - "description": "统计信息", - "allOf": [ - { - "$ref": "#/definitions/md.DailyActivityAnalysisTopData" - } - ] - } - } - }, - "md.UserEggFlowReq": { - "type": "object", - "properties": { - "account_balance_exchange_egg_energy_nums_end": { - "type": "string", - "example": "余额兑换蛋蛋能量数量-结束值" - }, - "account_balance_exchange_egg_energy_nums_start": { - "type": "string", - "example": "余额兑换蛋蛋能量数量-起始值" - }, - "browse_interface_nums_end": { - "type": "string", - "example": "浏览界面次数-结束值" - }, - "browse_interface_nums_start": { - "type": "string", - "example": "浏览界面次数-起始值" - }, - "college_learning_nums_end": { - "type": "string", - "example": "学院学习次数-结束值" - }, - "college_learning_nums_start": { - "type": "string", - "example": "学院学习次数-起始值" - }, - "ecpm_end": { - "type": "string", - "example": "ecpm-结束值" - }, - "ecpm_start": { - "type": "string", - "example": "ecpm-起始值" - }, - "egg_energy_exchange_account_balance_end": { - "type": "string", - "example": "蛋蛋能量兑换余额数量-结束值" - }, - "egg_energy_exchange_account_balance_start": { - "type": "string", - "example": "蛋蛋能量兑换余额数量-起始值" - }, - "forum_comments_nums_end": { - "type": "string", - "example": "论坛评论次数-结束值" - }, - "forum_comments_nums_start": { - "type": "string", - "example": "论坛评论次数-起始值" - }, - "im_activity_nums_end": { - "type": "string", - "example": "im活跃次数-结束值" - }, - "im_activity_nums_start": { - "type": "string", - "example": "im活跃次数-起始值" - }, - "invite_user_nums_end": { - "type": "string", - "example": "拉新人数-结束值" - }, - "invite_user_nums_start": { - "type": "string", - "example": "拉新人数-起始值" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "person_add_activity_value_end": { - "type": "string", - "example": "个人活跃积分-结束值" - }, - "person_add_activity_value_start": { - "type": "string", - "example": "个人活跃积分-起始值" - }, - "score_value_end": { - "type": "string", - "example": "蛋蛋分-结束值" - }, - "score_value_kind": { - "description": "评分类型(0:未知 1:人工 2:系统)", - "type": "integer" - }, - "score_value_start": { - "type": "string", - "example": "蛋蛋分-起始值" - }, - "send_circle_of_friend_nums_end": { - "type": "string", - "example": "发朋友圈次数-结束值" - }, - "send_circle_of_friend_nums_start": { - "type": "string", - "example": "发朋友圈次数-起始值" - }, - "send_red_package_nums_end": { - "type": "string", - "example": "发红包次数-结束值" - }, - "send_red_package_nums_start": { - "type": "string", - "example": "发红包次数-起始值" - }, - "sign_in_nums_end": { - "type": "string", - "example": "签到次数-结束值" - }, - "sign_in_nums_start": { - "type": "string", - "example": "签到次数-起始值" - }, - "team-activity-nums-end": { - "type": "string", - "example": "团队活跃次数-结束值" - }, - "team_activity_nums_start": { - "type": "string", - "example": "团队活跃次数-起始值" - }, - "violate_nums_end": { - "type": "string", - "example": "违规次数-结束值" - }, - "violate_nums_start": { - "type": "string", - "example": "违规次数-起始值" - }, - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - } - } - }, - "md.UserEggFlowReqResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.UserEggFlowReqRespList" - } - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "total": { - "description": "总数量", - "type": "integer" - }, - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - } - } - }, - "md.UserEggFlowReqRespList": { - "type": "object", - "properties": { - "account_balance_exchange_egg_energy_nums": { - "description": "余额兑换蛋蛋能量数量", - "type": "integer" - }, - "browse_interface_nums": { - "description": "浏览界面次数", - "type": "integer" - }, - "college_learning_nums": { - "description": "学院学习次数", - "type": "integer" - }, - "ecpm": { - "description": "ecpm", - "type": "number" - }, - "egg_energy_exchange_account_balance": { - "description": "蛋蛋能量兑换余额数量", - "type": "integer" - }, - "forum_comments_nums": { - "description": "论坛评论次数", - "type": "integer" - }, - "im_activity_nums": { - "description": "im活跃次数", - "type": "integer" - }, - "index_id": { - "description": "文档id", - "type": "string" - }, - "invite_user_nums": { - "description": "拉新人数", - "type": "integer" - }, - "person_add_activity_value": { - "description": "个人活跃积分", - "type": "integer" - }, - "score_value": { - "description": "蛋蛋分-起始值", - "type": "number" - }, - "score_value_kind": { - "description": "评分类型(0:未知 1:人工 2:系统)", - "type": "integer" - }, - "send_circle_of_friend_nums": { - "description": "发朋友圈次数", - "type": "integer" - }, - "send_red_package_nums": { - "description": "发红包次数", - "type": "integer" - }, - "sign_in_nums": { - "description": "签到次数", - "type": "integer" - }, - "team_activity_nums": { - "description": "团队活跃次数", - "type": "integer" - }, - "violate_nums": { - "description": "违规次数", - "type": "integer" - } - } - }, - "md.UserEggIndexReq": { - "type": "object", - "properties": { - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - } - } - }, - "md.UserEggIndexResp": { - "type": "object", - "properties": { - "egg_energy_user_egg_index_weight": { - "description": "蛋蛋分系数权重", - "allOf": [ - { - "$ref": "#/definitions/model.EggEnergyUserEggIndexWeight" - } - ] - }, - "statistics_user_egg_kind_proportion": { - "description": "统计用户蛋蛋分\"评比类型\"占比", - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "statistics_user_egg_score_value_range": { - "description": "统计用户蛋蛋分范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - }, - "year_list": { - "description": "年份\u0026\u0026周份列表", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "md.UserVirtualCoinFlow": { - "type": "object", - "properties": { - "after_amount": { - "type": "string", - "example": "变更后数量" - }, - "amount": { - "type": "string", - "example": "变更数量" - }, - "before_amount": { - "type": "string", - "example": "变更前数量" - }, - "coin_id": { - "description": "虚拟币 ID", - "type": "integer" - }, - "create_at": { - "type": "string", - "example": "创建时间" - }, - "direction": { - "description": "方向:1收入 2支出", - "type": "integer" - }, - "id": { - "type": "integer" - }, - "sys_fee": { - "type": "string", - "example": "手续费" - }, - "title": { - "type": "string", - "example": "标题" - }, - "transfer_type": { - "description": "转账类型", - "type": "integer" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - }, - "update_at": { - "type": "string", - "example": "更新时间" - } - } - }, - "md.VideoRewardSetting": { - "type": "object", - "properties": { - "video_reward_is_open": { - "description": "视频奖励是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "video_reward_system": { - "description": "视频奖励机制", - "allOf": [ - { - "$ref": "#/definitions/md.VideoRewardSystemStruct" - } - ] - } - } - }, - "md.VideoRewardSystemStruct": { - "type": "object", - "properties": { - "each_round_hour": { - "description": "每一轮X个小时", - "type": "string" - }, - "interval_minutes": { - "description": "间隔X秒", - "type": "string" - }, - "reward_total_num": { - "description": "一共X个奖励视屏", - "type": "string" - }, - "reward_value": { - "description": "奖励X个活跃积分", - "type": "string" - } - } - }, - "md.VirtualCoin": { + "md.Response": { "type": "object", "properties": { - "create_at": { - "type": "string" - }, - "exchange_ratio": { - "description": "兑换比例(与金额)", + "code": { "type": "string", - "example": "兑换比例(与金额)" - }, - "id": { - "type": "integer" - }, - "is_use": { - "description": "是否开启: 0否 1是", - "type": "integer" - }, - "name": { - "description": "名称", - "type": "string" - }, - "update_at": { - "type": "string" - } - } - }, - "md.VirtualCoinListNode": { - "type": "object", - "properties": { - "coin_id": { - "description": "货币类型 ID", - "type": "integer" + "example": "响应码" }, - "kind": { - "description": "货币序号", - "type": "integer" + "data": { + "description": "内容" }, - "name": { + "msg": { "type": "string", - "example": "货币类型名称" - } - } - }, - "model.EggEnergyUserEggIndexWeight": { - "type": "object", - "properties": { - "account_balance_exchange_egg_energy_nums": { - "type": "string" - }, - "browse_interface_nums": { - "type": "string" - }, - "college_learning_nums": { - "type": "string" - }, - "create_at": { - "type": "string" - }, - "ecpm": { - "type": "string" - }, - "egg_energy_exchange_account_balance": { - "type": "string" - }, - "forum_comments_nums": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "im_activity_nums": { - "type": "string" - }, - "invite_user_nums": { - "type": "string" - }, - "person_add_activity_value": { - "type": "string" - }, - "send_circle_of_friend_nums": { - "type": "string" - }, - "send_red_package_nums": { - "type": "string" - }, - "sign_in_nums": { - "type": "string" - }, - "team_activity_nums": { - "type": "string" - }, - "update_at": { - "type": "string" - }, - "violate_nums": { - "type": "string" + "example": "具体错误原因" } } } - }, - "securityDefinitions": { - "MasterID": { - "type": "apiKey", - "name": "MasterID", - "in": "header" - } } }` // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "1.0", - Host: "localhost:4001", - BasePath: "", + Host: "mp.xbkai.com", + BasePath: "/api", Schemes: []string{}, - Title: "蛋蛋星球-管理后台", - Description: "管理后台接口文档", + Title: "蛋蛋星球-APP客户端", + Description: "APP客户端-Api接口", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", diff --git a/docs/swagger.json b/docs/swagger.json index 4acfaf5..5b78d61 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1,8 +1,8 @@ { "swagger": "2.0", "info": { - "description": "管理后台接口文档", - "title": "蛋蛋星球-管理后台", + "description": "APP客户端-Api接口", + "title": "蛋蛋星球-APP客户端", "termsOfService": "http://swagger.io/terms/", "contact": { "name": "dengbiao", @@ -15,7 +15,8 @@ }, "version": "1.0" }, - "host": "localhost:4001", + "host": "mp.xbkai.com", + "basePath": "/api", "paths": { "/api/comm/getOssUrl": { "get": { @@ -55,91 +56,6 @@ } } }, - "/api/comm/oss/getBasic": { - "get": { - "description": "对象存储设置(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "对象存储" - ], - "summary": "设置中心-对象存储-对象存储设置(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "设置列表", - "schema": { - "$ref": "#/definitions/md.GetBasicResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/comm/oss/setBasic": { - "post": { - "description": "对象存储设置(更新)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "对象存储" - ], - "summary": "设置中心-对象存储-对象存储设置(更新)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "上传需要修改的信息", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.SetBasicReq" - } - } - ], - "responses": { - "200": { - "description": "success", - "schema": { - "type": "string" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, "/api/demo": { "post": { "description": "Demo样例测试", @@ -179,9 +95,9 @@ } } }, - "/api/institutionalManagement/eggEnergy/availableEnergy/list": { + "/v1/login": { "post": { - "description": "动态数据流水(获取)", + "description": "登入", "consumes": [ "application/json" ], @@ -189,32 +105,25 @@ "application/json" ], "tags": [ - "公排管理" + "登录" ], - "summary": "制度中心-动态数据-动态数据流水(获取)", + "summary": "登陆", "parameters": [ { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "页数、每页大小必传 起止时间、持有类型选传", + "description": "用户名密码", "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.DynamicDataFlowListReq" + "$ref": "#/definitions/md.LoginReq" } } ], "responses": { "200": { - "description": "成功返回", + "description": "token", "schema": { - "$ref": "#/definitions/md.DynamicDataFlowListResp" + "$ref": "#/definitions/md.LoginResponse" } }, "400": { @@ -226,9 +135,9 @@ } } }, - "/api/institutionalManagement/eggEnergy/eggPoint/manualScore": { + "/v1/register": { "post": { - "description": "蛋蛋分管理(人工打分)", + "description": "注册", "consumes": [ "application/json" ], @@ -236,32 +145,25 @@ "application/json" ], "tags": [ - "蛋蛋能量" + "注册" ], - "summary": "制度中心-蛋蛋能量-蛋蛋分管理(人工打分)", + "summary": "注册", "parameters": [ { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "请求参数", + "description": "注册参数", "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.ManualScoreReq" + "$ref": "#/definitions/md.RegisterReq" } } ], "responses": { "200": { - "description": "成功返回", + "description": "登录成功返回", "schema": { - "type": "string" + "$ref": "#/definitions/md.LoginResponse" } }, "400": { @@ -272,4292 +174,96 @@ } } } - }, - "/api/institutionalManagement/eggEnergy/eggPoint/statisticsUserEggIndex": { - "post": { - "description": "蛋蛋分管理(着陆页数据分析)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-蛋蛋分管理(着陆页数据分析)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "请求参数", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.StatisticsEggPointReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.StatisticsEggPointResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } + } + }, + "definitions": { + "md.LoginReq": { + "type": "object", + "required": [ + "password", + "phone" + ], + "properties": { + "code": { + "type": "string", + "example": "验证码" + }, + "password": { + "type": "string", + "example": "登录密码" + }, + "phone": { + "type": "string", + "example": "手机号" } } }, - "/api/institutionalManagement/eggEnergy/eggPoint/userEggFlow": { - "post": { - "description": "蛋蛋分管理(用户数据列表)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-蛋蛋分管理(用户数据列表)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "请求参数", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UserEggFlowReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.UserEggFlowReqResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } + "md.LoginResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" } } }, - "/api/institutionalManagement/eggEnergy/getBasic": { - "get": { - "description": "基础设置(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-基础设置(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetEggEnergyBasicResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } + "md.RegisterReq": { + "type": "object", + "required": [ + "mobile" + ], + "properties": { + "avatar": { + "type": "string", + "example": "头像" + }, + "code": { + "type": "string", + "example": "验证码" + }, + "invite_code": { + "type": "string", + "example": "邀请码" + }, + "mobile": { + "type": "string" + }, + "nickname": { + "type": "string", + "example": "昵称" + }, + "open_id": { + "type": "string", + "example": "微信openId" + }, + "sex": { + "description": "性别(0:未知 1:男 2:女)", + "type": "integer" + }, + "type": { + "type": "string", + "example": "app:APP注册、h5:H5注册" + }, + "union_id": { + "type": "string", + "example": "微信UnionId" } } }, - "/api/institutionalManagement/eggEnergy/getVirtualCoinList": { - "get": { - "description": "查询所有币种(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-查询所有币种(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/md.VirtualCoin" - } - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/coreDataList": { - "get": { - "description": "数据概览(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-数据概览(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetEggCoreDataListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/fundDataAdd": { - "post": { - "description": "价值明细数据(新增)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-价值明细数据(新增)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "数据种类、金额、时长(最长24h)、执行次数必填,备注选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AddFundDataReq" - } - } - ], - "responses": { - "200": { - "description": "插入数据 id", - "schema": { - "type": "int" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/fundDataList": { - "post": { - "description": "新增数据列表(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-新增数据列表(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "分页信息必填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.GetFundDataListReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetFundDataListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/fundDataRecordList": { - "post": { - "description": "新增数据列表详情(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-新增数据列表详情(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "获取到的 system_id 以及分页信息", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.GetFundDataRecordListReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetFundDataRecordListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/platformRevenueList": { - "post": { - "description": "平台营收数据(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-平台营收数据(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "分页信息必填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.ListPlatformRevenueReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.ListPlatformRevenueResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve": { - "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": "1:按天 2:按小时 3:按周", - "name": "kind", - "in": "query" - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetPriceCurveResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/platformRevenue/PlatformRevenueAdd": { - "post": { - "description": "平台营收数据(新增)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-平台营收数据(新增)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "数据种类、金额、时长(最长24h)、执行次数必填,备注选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AddPlatformRevenueReq" - } - } - ], - "responses": { - "200": { - "description": "插入数据 id", - "schema": { - "type": "int" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/platformRevenue/SetVideoReward": { - "post": { - "description": "激励视频(设置)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-激励视频(设置)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "落地页不填页大小默认20条数据", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.SetVideoRewardReq" - } - } - ], - "responses": { - "200": { - "description": "success", - "schema": { - "type": "string" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/updateBasic": { - "post": { - "description": "基础设置(更新)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "蛋蛋能量" - ], - "summary": "制度中心-蛋蛋能量-基础设置(更新)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "system_id 必填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UpdateEggEnergyBasicReq" - } - } - ], - "responses": { - "200": { - "description": "修改数据条数", - "schema": { - "type": "int" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/userCoin/activePointsUserCoinFlowList": { - "post": { - "description": "活跃积分持有流水(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-活跃积分持有者明细-活跃积分持有流水(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "至少传入 货币类型 ID 用户 UID 页数 每页大小", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.GetActivePointsUserCoinFlowListReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.GetActivePointsUserCoinFlowListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/userCoin/activePointsUserCoinList": { - "post": { - "description": "活跃积分持有(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-活跃积分持有者明细-活跃积分持有(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "落地页不填页大小默认20条数据", - "name": "req", - "in": "body", - "schema": { - "$ref": "#/definitions/md.GetActivePointsUserCoinListReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.GetActivePointsUserCoinListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/userCoin/greenEnergyUserCoinFlowList": { - "post": { - "description": "绿色能量持有流水(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-绿色能量持有者明细-绿色能量持有流水(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "至少传入 货币类型 ID 用户 UID 页数 每页大小", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.GetGreenEnergyUserCoinFlowListReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.GetGreenEnergyUserCoinFlowListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/eggEnergy/userCoin/greenEnergyUserCoinList": { - "post": { - "description": "绿色能量(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-绿色能量持有者明细-绿色能量(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "落地页不填页大小默认20条数据", - "name": "req", - "in": "body", - "schema": { - "$ref": "#/definitions/md.GetGreenEnergyUserCoinListReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.GetGreenEnergyUserCoinListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsAdd": { - "post": { - "description": "社区分红(新增)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-社区分红(新增)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "分红名称、分红总量", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AddCommunityDividendsReq" - } - } - ], - "responses": { - "200": { - "description": "成功", - "schema": { - "type": "success" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsList": { - "post": { - "description": "社区分红(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-社区分红(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "页数、每页大小必填 起止时间、起止数量选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.ListCommunityDividendsReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.ListCommunityDividendsResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserAdd": { - "post": { - "description": "社区长列表(新增)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-社区长列表(新增)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "新增社区长 ID、备注", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AddCommunityDividendsWithUserReq" - } - } - ], - "responses": { - "200": { - "description": "插入数据 ID", - "schema": { - "type": "int" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserList": { - "post": { - "description": "社区长列表(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-社区长列表(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "页数、每页大小必填 手机号、用户ID选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.ListCommunityDividendsWithUserReq" - } - } - ], - "responses": { - "200": { - "description": "社区长列表", - "schema": { - "$ref": "#/definitions/md.ListCommunityDividendsWithUserResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/exchangeUserPosition": { - "post": { - "description": "关系分布图(位置转换)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-关系分布图(位置转换)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "需要交换的两个位置", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.ExchangeUserPositionReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "type": "" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/findSubUserRelationshipMap": { - "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": "uid", - "in": "query", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.FindSubUserRelationshipMapResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/findUserRelationshipMap": { - "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": "uid", - "in": "query", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.TreeNode" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/getBasic": { - "get": { - "description": "公排基础设置(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-公排基础设置(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.GetPublicPlatoonBasicResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/index": { - "post": { - "description": "免罚用户(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-免罚用户(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "页数和行数必填,uid选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.GetFreePublishUserReq" - } - } - ], - "responses": { - "200": { - "description": "成功返回", - "schema": { - "$ref": "#/definitions/md.GetFreePublishUserResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/save": { - "post": { - "description": "免罚用户(新增)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-免罚用户(新增)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "页数和行数必填,uid选填", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.AddFreePublishUserReq" - } - } - ], - "responses": { - "200": { - "description": "插入数据 ID", - "schema": { - "type": "int" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/relationshipMap": { - "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": "phone", - "name": "phone", - "in": "query", - "required": true - }, - { - "type": "string", - "description": "uid", - "name": "uid", - "in": "query", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.TreeNode" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/updateBasic": { - "put": { - "description": "公排基础设置(修改)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-公排基础设置(修改)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "公排设置表单内容", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UpdatePublicPlatoonBasicReq" - } - } - ], - "responses": { - "200": { - "description": "success", - "schema": { - "type": "string" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/institutionalManagement/publicPlatoon/userDailyActivityAnalysis/index": { - "post": { - "description": "日活分析", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "公排管理" - ], - "summary": "制度中心-公排管理-日活分析", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "用户 ID、查询开始时间、结束时间(查询时间不超过30天)、页数、每页大小", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UserDailyActivityAnalysisReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.UserDailyActivityAnalysisResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/login": { - "post": { - "description": "登入", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "登录" - ], - "summary": "登陆", - "parameters": [ - { - "description": "用户名密码", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.LoginReq" - } - } - ], - "responses": { - "200": { - "description": "token", - "schema": { - "$ref": "#/definitions/md.LoginResponse" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/marketingApplications/newUserRedPackage/getBasic": { - "get": { - "description": "新人红包设置(获取)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "营销应用" - ], - "summary": "制度中心-营销应用-新人红包设置(获取)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageGetBasicResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/marketingApplications/newUserRedPackage/recordFlowList": { - "post": { - "description": "新人红包列表明细(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "营销应用" - ], - "summary": "制度中心-营销应用-新人红包列表明细(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "新人红包列表明细查询条件(分页信息、用户 ID必填)", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/marketingApplications/newUserRedPackage/recordList": { - "post": { - "description": "新人红包列表(查询)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "营销应用" - ], - "summary": "制度中心-营销应用-新人红包列表(查询)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "新人红包列表查询条件(分页信息必填)", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordListReq" - } - } - ], - "responses": { - "200": { - "description": "具体数据", - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordListResp" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - }, - "/api/marketingApplications/newUserRedPackage/updateBasic": { - "put": { - "description": "新人红包设置(修改)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "营销应用" - ], - "summary": "制度中心-营销应用-新人红包设置(修改)", - "parameters": [ - { - "type": "string", - "description": "验证参数Bearer和token空格拼接", - "name": "Authorization", - "in": "header", - "required": true - }, - { - "description": "新人红包设置表单", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageUpdateBasicReq" - } - } - ], - "responses": { - "200": { - "description": "success", - "schema": { - "type": "string" - } - }, - "400": { - "description": "具体错误", - "schema": { - "$ref": "#/definitions/md.Response" - } - } - } - } - } - }, - "definitions": { - "applet_app_md_institutional_management_egg_energy.BasicSetting": { - "type": "object", - "properties": { - "direct_push_reward": { - "description": "直推奖励", - "allOf": [ - { - "$ref": "#/definitions/md.TeamRewardSettingStruct" - } - ] - }, - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "person_egg_energy_coin_id": { - "description": "个人蛋蛋能量对应虚拟币 id", - "type": "integer" - }, - "person_egg_points_coin_id": { - "description": "个人蛋蛋积分对应虚拟币 id", - "type": "integer" - }, - "team_egg_energy_coin_id": { - "description": "团队蛋蛋能量对应虚拟币 id", - "type": "integer" - }, - "team_egg_points_coin_id": { - "description": "团队蛋蛋积分对应虚拟币 id", - "type": "integer" - } - } - }, - "applet_app_md_institutional_management_egg_energy.Paginate": { - "type": "object", - "properties": { - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "total": { - "description": "总数据量", - "type": "integer" - } - } - }, - "applet_app_md_institutional_management_new_user_red_package.Paginate": { - "type": "object", - "properties": { - "limit": { - "type": "integer" - }, - "page": { - "type": "integer" - }, - "total": { - "type": "integer" - } - } - }, - "applet_app_md_institutional_management_public_platoon.BasicSetting": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "is_self_active_get_team_revenue": { - "description": "会员本人没有日活,没有圈层奖励(1:开启 0:关闭)", - "type": "integer" - }, - "originator_uid": { - "description": "创始人uid", - "type": "integer" - }, - "several_rows": { - "description": "几排", - "type": "integer" - }, - "several_times": { - "description": "几乘", - "type": "integer" - }, - "system_punish_replace": { - "description": "是否位置滑落 被新用户替换 0否 1是", - "type": "integer" - }, - "system_punish_replace_value": { - "description": "xx天未活跃,处罚滑落", - "type": "integer" - } - } - }, - "applet_app_md_institutional_management_public_platoon.Paginate": { - "type": "object", - "properties": { - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "total": { - "description": "总数据量", - "type": "integer" - } - } - }, - "md.ActivePointsWalletNode": { - "type": "object", - "properties": { - "amount": { - "type": "string", - "example": "账户余额" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - }, - "user_name": { - "type": "string", - "example": "用户名" - }, - "user_phone": { - "type": "string", - "example": "手机号" - } - } - }, - "md.AddCommunityDividendsReq": { - "type": "object", - "properties": { - "amount": { - "description": "社区分红数量", - "type": "string" - }, - "name": { - "type": "string", - "example": "社区分红名称" - } - } - }, - "md.AddCommunityDividendsWithUserReq": { - "type": "object", - "properties": { - "memo": { - "type": "string", - "example": "备注" - }, - "uid": { - "description": "新增社区长用户 ID", - "type": "integer" - } - } - }, - "md.AddFreePublishUserReq": { - "type": "object", - "properties": { - "uid": { - "type": "integer" - } - } - }, - "md.AddFundDataReq": { - "type": "object", - "properties": { - "frequency": { - "description": "频率(分钟)", - "type": "integer" - }, - "hours": { - "description": "时长(小时)", - "type": "integer" - }, - "kind": { - "description": "种类(1:公司补贴 2:资方投资 3:市场期望)", - "type": "integer" - }, - "memo": { - "type": "string", - "example": "备注" - }, - "total_amount": { - "description": "金额", - "type": "string" - } - } - }, - "md.AddPlatformRevenueReq": { - "type": "object", - "properties": { - "frequency": { - "description": "频率(分钟)", - "type": "integer" - }, - "hours": { - "description": "时长(小时)", - "type": "integer" - }, - "kind": { - "description": "种类(1:开屏广告 2:banner 广告 3:信息流广告 4:插屏广告)", - "type": "integer" - }, - "memo": { - "type": "string", - "example": "备注" - }, - "total_amount": { - "description": "金额", - "type": "string" - } - } - }, - "md.DailyActivityAnalysisTopData": { - "type": "object", - "properties": { - "activity_count": { - "description": "子节点活跃天数", - "type": "integer" - }, - "team_activity_user_count": { - "description": "子节点活跃人数", - "type": "integer" - }, - "team_user_count": { - "description": "团队人数", - "type": "integer" - } - } - }, - "md.DataSetting": { - "type": "object", - "properties": { - "total_angel_investor": { - "description": "天使投资人", - "type": "string", - "example": "天使投资人" - }, - "total_ecological_development": { - "description": "生态建设", - "type": "string", - "example": "当前价格" - }, - "total_issuance_amount": { - "description": "总发行量", - "type": "string", - "example": "总发行量" - }, - "total_operate_fund": { - "description": "运营资金", - "type": "string", - "example": "运营资金" - }, - "total_technology_team": { - "description": "技术团队", - "type": "string", - "example": "技术团队" - }, - "total_user_for_person": { - "description": "TotalTeamDividends string`json:\"total_team_dividends\" example:\"团队分红\"` // 团队分红", - "type": "string", - "example": "个人区域" - }, - "total_user_for_team": { - "description": "团队区域", - "type": "string", - "example": "团队区域" - } - } - }, - "md.DestructionSettingStruct": { - "type": "object", - "properties": { - "community_dividends": { - "description": "社区分红百分比", - "type": "string" - }, - "destruction_quantity": { - "description": "销毁百分比", - "type": "string" - }, - "development_committee": { - "description": "发展委员会百分比", - "type": "string" - }, - "marketplace_merchant": { - "description": "市商数量百分比", - "type": "string" - }, - "public_welfare_and_charity": { - "description": "公益慈善百分比", - "type": "string" - }, - "star_level_dividends": { - "description": "星级分红百分比", - "type": "string" - } - } - }, - "md.DynamicDataFlowListReq": { - "type": "object", - "properties": { - "end_at": { - "description": "结束时间", - "type": "string", - "example": "结束时间" - }, - "kind": { - "description": "持有类型", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string", - "example": "开始时间" - } - } - }, - "md.DynamicDataFlowListResp": { - "type": "object", - "properties": { - "kind_list": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.EggEnergyAvailableEnergyFlow" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - } - }, - "md.EggEnergyAvailableEnergyFlow": { - "type": "object", - "properties": { - "after_community_dividends": { - "type": "string" - }, - "after_destruction_quantity_values": { - "type": "string" - }, - "after_development_committee_values": { - "type": "string" - }, - "after_marketplace_merchant_fund_values": { - "type": "string" - }, - "after_marketplace_merchant_values": { - "type": "string" - }, - "after_now_energy_total_nums": { - "type": "string" - }, - "after_planet_total_value": { - "type": "string" - }, - "after_price": { - "type": "string" - }, - "after_public_welfare_and_charity_values": { - "type": "string" - }, - "after_star_level_dividends_values": { - "type": "string" - }, - "amount": { - "type": "string" - }, - "before_community_dividends": { - "type": "string" - }, - "before_destruction_quantity_values": { - "type": "string" - }, - "before_development_committee_values": { - "type": "string" - }, - "before_marketplace_merchant_fund_values": { - "type": "string" - }, - "before_marketplace_merchant_values": { - "type": "string" - }, - "before_now_energy_total_nums": { - "type": "string" - }, - "before_planet_total_value": { - "type": "string" - }, - "before_price": { - "type": "string" - }, - "before_public_welfare_and_charity_values": { - "type": "string" - }, - "before_star_level_dividends_values": { - "type": "string" - }, - "create_time": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "kind": { - "type": "integer" - }, - "title": { - "type": "string" - } - } - }, - "md.EggEnergyCommunityDividends": { - "type": "object", - "properties": { - "amount": { - "description": "分红数量", - "type": "string" - }, - "coin_id": { - "description": "虚拟币 id", - "type": "integer" - }, - "create_at": { - "description": "分红时间", - "type": "string" - }, - "id": { - "type": "integer" - }, - "is_over": { - "description": "是否分红完毕", - "type": "integer" - }, - "name": { - "type": "string", - "example": "名称" - }, - "persons_num": { - "description": "分红人数", - "type": "integer" - }, - "update_at": { - "type": "string" - } - } - }, - "md.EggEnergyCommunityDividendsWithUser": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "memo": { - "type": "string", - "example": "备注" - }, - "nickname": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "uid": { - "type": "integer" - } - } - }, - "md.ExchangeRulesStruct": { - "type": "object", - "properties": { - "auto_exchange_nums_by_person": { - "description": "个人数量X个,自动兑换可用蛋蛋能量", - "type": "string" - }, - "auto_exchange_nums_by_team": { - "description": "团队数量X个,自动兑换团队蛋蛋能量", - "type": "string" - }, - "auto_exchange_rate_by_person": { - "description": "个人数量百分比,自动兑换可用蛋蛋能量", - "type": "string" - }, - "auto_exchange_rate_by_team": { - "description": "团队数量百分比,自动兑换团队蛋蛋能量", - "type": "string" - } - } - }, - "md.ExchangeUserPositionReq": { - "type": "object", - "properties": { - "position_1": { - "description": "位置1,具体值取返回数据中的 system_id", - "type": "integer" - }, - "position_2": { - "description": "位置2,具体值取返回数据中的 system_id", - "type": "integer" - } - } - }, - "md.FindSubUserRelationshipMapResp": { - "type": "object", - "properties": { - "basic_setting": { - "description": "公排设置", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.BasicSetting" - } - ] - }, - "search_uid": { - "description": "查找的用户 ID", - "type": "string" - }, - "sub_user": { - "description": "上级用户信息", - "allOf": [ - { - "$ref": "#/definitions/md.SubUser" - } - ] - } - } - }, - "md.FreePublishUserNode": { - "type": "object", - "properties": { - "nickname": { - "type": "string", - "example": "昵称" - }, - "phone": { - "type": "string", - "example": "手机号" - }, - "uid": { - "type": "integer" - } - } - }, - "md.FundDataNode": { - "type": "object", - "properties": { - "balance_amount": { - "description": "余额", - "type": "string" - }, - "balance_times": { - "description": "剩余执行次数", - "type": "integer" - }, - "create_at": { - "description": "创建时间", - "type": "string" - }, - "hours": { - "description": "时长", - "type": "integer" - }, - "kind": { - "description": "种类(1:公司补贴 2:资方投资 3:市场期望)", - "type": "integer" - }, - "memo": { - "description": "备注", - "type": "string" - }, - "system_id": { - "type": "integer" - }, - "total_amount": { - "description": "金额", - "type": "string" - } - } - }, - "md.FundDataRecordNode": { - "type": "object", - "properties": { - "after_planet_total_value": { - "description": "执行后-星球价值", - "type": "string" - }, - "after_price": { - "description": "执行后-价格", - "type": "string" - }, - "balance_amount": { - "description": "余额", - "type": "string" - }, - "balance_times": { - "description": "剩余执行次数", - "type": "integer" - }, - "before_planet_total_value": { - "description": "执行前-星球价值", - "type": "string" - }, - "before_price": { - "description": "执行前-价格", - "type": "string" - }, - "create_at": { - "type": "string" - }, - "total_amount": { - "description": "金额", - "type": "string" - } - } - }, - "md.GetActivePointsUserCoinFlowListReq": { - "type": "object", - "properties": { - "coin_id": { - "description": "货币类型 ID", - "type": "integer" - }, - "direction": { - "description": "流水方向:1收入 2支出", - "type": "integer" - }, - "end_at": { - "description": "结束时间", - "type": "string" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - } - } - }, - "md.GetActivePointsUserCoinFlowListResp": { - "type": "object", - "properties": { - "list": { - "description": "流水信息", - "type": "array", - "items": { - "$ref": "#/definitions/md.UserVirtualCoinFlow" - } - }, - "paginate": { - "description": "分页信息", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - ] - }, - "select_data": { - "description": "流水类型", - "allOf": [ - { - "$ref": "#/definitions/md.SelectData" - } - ] - } - } - }, - "md.GetActivePointsUserCoinListReq": { - "type": "object", - "properties": { - "end_coin": { - "type": "string", - "example": "最大金额" - }, - "kind": { - "description": "虚拟币种类编号", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "单页大小", - "type": "integer" - }, - "start_coin": { - "type": "string", - "example": "最小金额" - }, - "uid": { - "description": "指定查询用户 ID", - "type": "integer" - }, - "user_name": { - "type": "string", - "example": "用户名称" - }, - "user_phone": { - "type": "string", - "example": "手机号" - } - } - }, - "md.GetActivePointsUserCoinListResp": { - "type": "object", - "properties": { - "kind_list": { - "description": "货币类型集合", - "type": "array", - "items": { - "$ref": "#/definitions/md.VirtualCoinListNode" - } - }, - "list": { - "description": "余额集合", - "type": "array", - "items": { - "$ref": "#/definitions/md.ActivePointsWalletNode" - } - }, - "sum_user_amount": { - "description": "用户持有总数", - "type": "number" - }, - "total": { - "description": "持有该类型用户数", - "type": "integer" - } - } - }, - "md.GetBasicResp": { - "type": "object", - "properties": { - "oss_access_key_id": { - "type": "string", - "example": "oss访问秘钥id" - }, - "oss_access_key_secret": { - "type": "string", - "example": "oss访问秘钥" - }, - "oss_bucket_name": { - "type": "string", - "example": "oss存储桶名称" - }, - "oss_bucket_scheme": { - "type": "string", - "example": "oss上传方式" - }, - "oss_endpoint": { - "type": "string", - "example": "oss地域节点" - }, - "oss_object_domain": { - "type": "string", - "example": "oss域名" - } - } - }, - "md.GetEggCoreDataListResp": { - "type": "object", - "properties": { - "now_energy_total_nums": { - "description": "现行总量", - "type": "string", - "example": "现行总量" - }, - "now_price": { - "description": "当前价格", - "type": "string", - "example": "当前价格" - }, - "planet_total_value": { - "description": "星球价值", - "type": "string", - "example": "星球价值" - }, - "user_hold_total_nums": { - "description": "用户持有总量", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "md.GetEggEnergyBasicResp": { - "type": "object", - "properties": { - "basic_setting": { - "description": "基础设置", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting" - } - ] - }, - "data_setting": { - "description": "数据设置", - "allOf": [ - { - "$ref": "#/definitions/md.DataSetting" - } - ] - }, - "destruction_setting": { - "description": "销毁设置", - "allOf": [ - { - "$ref": "#/definitions/md.DestructionSettingStruct" - } - ] - }, - "exchange_rules": { - "description": "兑换规则", - "allOf": [ - { - "$ref": "#/definitions/md.ExchangeRulesStruct" - } - ] - }, - "new_user_incentive_rules": { - "description": "新用户奖励规则", - "allOf": [ - { - "$ref": "#/definitions/md.NewUserRewardRules" - } - ] - }, - "price_setting": { - "description": "价格设置", - "allOf": [ - { - "$ref": "#/definitions/md.PriceSettingStruct" - } - ] - }, - "reward_system": { - "description": "圈层奖励", - "allOf": [ - { - "$ref": "#/definitions/md.RewardSystemStruct" - } - ] - }, - "system_id": { - "description": "该设置系统 ID", - "type": "integer" - }, - "video_reward_setting": { - "description": "视频奖励", - "allOf": [ - { - "$ref": "#/definitions/md.VideoRewardSetting" - } - ] - } - } - }, - "md.GetFreePublishUserReq": { - "type": "object", - "properties": { - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "当前页数", - "type": "integer" - }, - "uid": { - "description": "筛选的用户 ID", - "type": "integer" - } - } - }, - "md.GetFreePublishUserResp": { - "type": "object", - "properties": { - "list": { - "description": "免罚用户列表", - "type": "array", - "items": { - "$ref": "#/definitions/md.FreePublishUserNode" - } - }, - "paginate": { - "description": "分页信息", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.Paginate" - } - ] - } - } - }, - "md.GetFundDataListReq": { - "type": "object", - "properties": { - "end_at": { - "type": "string", - "example": "结束时间" - }, - "kind": { - "description": "数据类型", - "type": "integer" - }, - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "start_at": { - "type": "string", - "example": "开始时间" - } - } - }, - "md.GetFundDataListResp": { - "type": "object", - "properties": { - "kind_list": { - "description": "类型列表", - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "list": { - "description": "数据列表", - "type": "array", - "items": { - "$ref": "#/definitions/md.FundDataNode" - } - }, - "paginate": { - "description": "分页数据", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - ] - } - } - }, - "md.GetFundDataRecordListReq": { - "type": "object", - "properties": { - "limit": { - "description": "页面大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "system_id": { - "description": "数据在系统中的 ID", - "type": "integer" - } - } - }, - "md.GetFundDataRecordListResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.FundDataRecordNode" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - } - }, - "md.GetGreenEnergyUserCoinFlowListReq": { - "type": "object", - "properties": { - "coin_id": { - "description": "货币类型 ID", - "type": "integer" - }, - "direction": { - "description": "流水方向:1收入 2支出", - "type": "integer" - }, - "end_at": { - "description": "结束时间", - "type": "string" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - } - } - }, - "md.GetGreenEnergyUserCoinFlowListResp": { - "type": "object", - "properties": { - "list": { - "description": "流水信息", - "type": "array", - "items": { - "$ref": "#/definitions/md.UserVirtualCoinFlow" - } - }, - "paginate": { - "description": "分页信息", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - ] - }, - "select_data": { - "description": "流水类型", - "allOf": [ - { - "$ref": "#/definitions/md.SelectData" - } - ] - } - } - }, - "md.GetGreenEnergyUserCoinListReq": { - "type": "object", - "properties": { - "end_coin": { - "type": "string", - "example": "最大金额" - }, - "kind": { - "description": "虚拟币种类编号", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "单页大小", - "type": "integer" - }, - "start_coin": { - "type": "string", - "example": "最小金额" - }, - "uid": { - "description": "指定查询用户 ID", - "type": "integer" - }, - "user_name": { - "type": "string", - "example": "用户名称" - }, - "user_phone": { - "type": "string", - "example": "手机号" - } - } - }, - "md.GetGreenEnergyUserCoinListResp": { - "type": "object", - "properties": { - "kind_list": { - "description": "货币类型集合", - "type": "array", - "items": { - "$ref": "#/definitions/md.VirtualCoinListNode" - } - }, - "list": { - "description": "余额集合", - "type": "array", - "items": { - "$ref": "#/definitions/md.ActivePointsWalletNode" - } - }, - "sum_user_amount": { - "description": "用户持有总数", - "type": "number" - }, - "total": { - "description": "持有该类型用户数", - "type": "integer" - } - } - }, - "md.GetPriceCurveResp": { - "type": "object", - "properties": { - "x_data": { - "type": "array", - "items": {} - }, - "y_data": { - "type": "array", - "items": {} - } - } - }, - "md.GetPublicPlatoonBasicResp": { - "type": "object", - "properties": { - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "is_self_active_get_team_revenue": { - "description": "会员本人没有日活,没有圈层奖励(1:开启 0:关闭)", - "type": "integer" - }, - "originator_uid": { - "description": "创始人uid", - "type": "integer" - }, - "several_rows": { - "description": "几排", - "type": "integer" - }, - "several_times": { - "description": "几乘", - "type": "integer" - }, - "system_punish_replace": { - "description": "是否位置滑落 被新用户替换 0否 1是", - "type": "integer" - }, - "system_punish_replace_value": { - "description": "xx天未活跃,处罚滑落", - "type": "integer" - } - } - }, - "md.ListCommunityDividendsReq": { - "type": "object", - "properties": { - "end_at": { - "description": "结束时间", - "type": "string" - }, - "end_nums": { - "description": "分红总量上限", - "type": "integer" - }, - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string" - }, - "start_nums": { - "description": "分红总量下限", - "type": "integer" - } - } - }, - "md.ListCommunityDividendsResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.EggEnergyCommunityDividends" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.Paginate" - } - } - }, - "md.ListCommunityDividendsWithUserReq": { - "type": "object", - "properties": { - "limit": { - "type": "integer" - }, - "page": { - "type": "integer" - }, - "phone": { - "type": "string" - }, - "uid": { - "type": "integer" - } - } - }, - "md.ListCommunityDividendsWithUserResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.EggEnergyCommunityDividendsWithUser" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.Paginate" - } - } - }, - "md.ListPlatformRevenueReq": { - "type": "object", - "properties": { - "end_at": { - "type": "string", - "example": "结束时间" - }, - "kind": { - "description": "数据类型", - "type": "integer" - }, - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "start_at": { - "type": "string", - "example": "开始时间" - } - } - }, - "md.ListPlatformRevenueResp": { - "type": "object", - "properties": { - "kind_list": { - "description": "类型列表", - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "list": { - "description": "数据列表", - "type": "array", - "items": { - "$ref": "#/definitions/md.PlatformRevenueDataNode" - } - }, - "paginate": { - "description": "分页数据", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate" - } - ] - } - } - }, - "md.LoginReq": { - "type": "object", - "required": [ - "password", - "username" - ], - "properties": { - "code": { - "type": "string", - "example": "验证码" - }, - "password": { - "type": "string", - "example": "登录密码" - }, - "username": { - "type": "string", - "example": "登录账号" - } - } - }, - "md.LoginResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - } - } - }, - "md.ManualScoreReq": { - "type": "object", - "properties": { - "index_id": { - "description": "文档id", - "type": "string" - }, - "score": { - "type": "string", - "example": "分数" - } - } - }, - "md.NewUserRedPackageGetBasicResp": { - "type": "object", - "properties": { - "create_at": { - "type": "string" - }, - "days": { - "description": "天数", - "type": "integer" - }, - "is_double": { - "description": "是否翻倍", - "type": "integer" - }, - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "total_amount": { - "type": "string", - "example": "总金额" - }, - "update_at": { - "type": "string" - } - } - }, - "md.NewUserRedPackageRecordFlowListReq": { - "type": "object", - "properties": { - "end_at": { - "description": "结束时间", - "type": "string" - }, - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - } - } - }, - "md.NewUserRedPackageRecordFlowListResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.NewUserRedPackageRecordFlowNode" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_new_user_red_package.Paginate" - } - } - }, - "md.NewUserRedPackageRecordFlowNode": { - "type": "object", - "properties": { - "balance_amount": { - "description": "剩余金额", - "type": "string" - }, - "balance_days": { - "description": "剩余天数", - "type": "integer" - }, - "basic_amount": { - "description": "基础金额", - "type": "string" - }, - "create_at": { - "description": "创建时间", - "type": "string" - }, - "day_num": { - "description": "第x天", - "type": "integer" - }, - "double_rate": { - "description": "倍率", - "type": "string" - }, - "id": { - "description": "流水 ID", - "type": "integer" - }, - "is_double": { - "description": "是否翻倍", - "type": "integer" - }, - "receive_days": { - "description": "领取天数", - "type": "integer" - }, - "total_amount": { - "description": "实际金额", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - } - } - }, - "md.NewUserRedPackageRecordListReq": { - "type": "object", - "properties": { - "end_at": { - "description": "结束时间", - "type": "string" - }, - "limit": { - "description": "每页大小", - "type": "integer" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "start_at": { - "description": "开始时间", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - } - } - }, - "md.NewUserRedPackageRecordListResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.NewUserRedPackageRecordNode" - } - }, - "paginate": { - "$ref": "#/definitions/applet_app_md_institutional_management_new_user_red_package.Paginate" - } - } - }, - "md.NewUserRedPackageRecordNode": { - "type": "object", - "properties": { - "balance_amount": { - "description": "剩余金额", - "type": "string" - }, - "balance_days": { - "description": "剩余天数", - "type": "integer" - }, - "create_at": { - "description": "创建时间", - "type": "string" - }, - "days": { - "description": "天数", - "type": "integer" - }, - "receive_days": { - "description": "领取天数", - "type": "integer" - }, - "state": { - "description": "状态(0:待领取 1:领取中 2:已领取 3:已冻结)", - "type": "integer" - }, - "system_id": { - "description": "系统中记录的 ID", - "type": "integer" - }, - "total_amount": { - "description": "金额", - "type": "string" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - }, - "update_at": { - "description": "修改时间", - "type": "string" - } - } - }, - "md.NewUserRedPackageUpdateBasicReq": { - "type": "object", - "properties": { - "days": { - "description": "天数", - "type": "integer" - }, - "is_double": { - "description": "是否翻倍", - "type": "integer" - }, - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "total_amount": { - "type": "string", - "example": "总金额" - } - } - }, - "md.NewUserRewardRules": { - "type": "object", - "properties": { - "continue_days": { - "description": "连续x天", - "type": "integer" - }, - "invite_user_reward_value": { - "description": "拉新用户奖励x个活跃积分", - "type": "integer" - }, - "reward_coefficient": { - "description": "奖励系数", - "type": "number" - } - } - }, - "md.PlatformRevenueDataNode": { - "type": "object", - "properties": { - "balance_amount": { - "description": "余额", - "type": "string" - }, - "balance_times": { - "description": "剩余执行次数", - "type": "integer" - }, - "create_at": { - "description": "创建时间", - "type": "string" - }, - "hours": { - "description": "时长", - "type": "integer" - }, - "kind": { - "description": "种类(1:开屏广告 2:banner 广告 3:信息流广告 4:插屏广告)", - "type": "integer" - }, - "memo": { - "description": "备注", - "type": "string" - }, - "system_id": { - "type": "integer" - }, - "total_amount": { - "description": "金额", - "type": "string" - } - } - }, - "md.PriceSettingStruct": { - "type": "object", - "properties": { - "marketplace_merchants_fund_exchange_marketplace_merchants_nums_value": { - "description": "市商资金单笔x元自动兑换", - "type": "string" - }, - "marketplace_merchants_nums_exchange_marketplace_merchants_fund_value": { - "description": "市商数量单笔x数量自动兑换", - "type": "string" - }, - "price_below_value": { - "description": "低于x元", - "type": "string" - }, - "price_higher_than_value": { - "description": "高于x元", - "type": "string" - } - } - }, - "md.Response": { - "type": "object", - "properties": { - "code": { - "type": "string", - "example": "响应码" - }, - "data": { - "description": "内容" - }, - "msg": { - "type": "string", - "example": "具体错误原因" - } - } - }, - "md.RewardSystemStruct": { - "type": "object", - "properties": { - "level": { - "description": "圈层", - "type": "integer" - }, - "reward_condition": { - "description": "奖励条件", - "type": "string" - }, - "reward_value": { - "description": "奖励值", - "type": "string" - } - } - }, - "md.SelectData": { - "type": "object", - "properties": { - "direction": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "md.SetBasicReq": { - "type": "object", - "properties": { - "oss_access_key_id": { - "type": "string", - "example": "oss访问秘钥id" - }, - "oss_access_key_secret": { - "type": "string", - "example": "oss访问秘钥" - }, - "oss_bucket_name": { - "type": "string", - "example": "oss存储桶名称" - }, - "oss_bucket_scheme": { - "type": "string", - "example": "oss上传方式" - }, - "oss_endpoint": { - "type": "string", - "example": "oss地域节点" - }, - "oss_object_domain": { - "type": "string", - "example": "oss域名" - } - } - }, - "md.SetVideoRewardReq": { - "type": "object", - "properties": { - "ecmp": { - "description": "当前 Ecmp 值", - "type": "string" - }, - "unit_price": { - "description": "单价", - "type": "string" - } - } - }, - "md.SonUserDailyActivityAnalysisNode": { - "type": "object", - "properties": { - "activity_day_nums": { - "description": "活跃子节点活跃天数", - "type": "integer" - }, - "nickname": { - "type": "string", - "example": "昵称" - }, - "phone": { - "type": "string", - "example": "手机号" - }, - "uid": { - "description": "查询用户活跃子节点 ID", - "type": "integer" - } - } - }, - "md.StatisticsEggPointReq": { - "type": "object", - "properties": { - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - } - } - }, - "md.StatisticsEggPointResp": { - "type": "object", - "properties": { - "statistics_user_egg_account_balance_exchange_egg_energy_nums_range": { - "description": "统计用户\"余额兑换蛋蛋能量数量\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_browse_interface_nums_range": { - "description": "统计用户\"浏览界面次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_college_learning_nums_range": { - "description": "统计用户\"学院学习次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_ecpm_range": { - "description": "统计用户\"ecpm\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_egg_energy_exchange_account_balance_range": { - "description": "统计用户\"蛋蛋能量兑换余额数量\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_forum_comments_nums_range": { - "description": "统计用户\"论坛评论次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_invite_user_nums_range": { - "description": "统计用户\"拉新人数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_kind_proportion": { - "description": "统计用户蛋蛋分\"评比类型\"占比", - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "statistics_user_egg_person_add_activity_value_range": { - "description": "统计用户\"个人活跃积分增量值\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_score_value_range": { - "description": "统计用户蛋蛋分范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_send_circle_of_friend_nums_range": { - "description": "统计用户\"发朋友圈次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_send_red_package_nums_range": { - "description": "统计用户\"发红包次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_sign_in_nums_range": { - "description": "统计用户\"签到次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_team_activity_nums_range": { - "description": "统计用户\"团队活跃次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "statistics_user_egg_violate_nums_range": { - "description": "统计用户\"违规次数\"范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - }, - "year_list": { - "description": "年份\u0026\u0026周份列表", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "md.SubUser": { - "type": "object", - "properties": { - "avatar_url": { - "type": "string", - "example": "头像" - }, - "level": { - "description": "整个系统中的等级", - "type": "integer" - }, - "nickname": { - "type": "string", - "example": "昵称" - }, - "phone": { - "type": "string", - "example": "手机号" - }, - "pid": { - "type": "integer" - }, - "position": { - "description": "以pid1为创始人中网的位置", - "type": "integer" - }, - "uid": { - "type": "integer" - } - } - }, - "md.TeamRewardSettingStruct": { - "type": "object", - "properties": { - "member_self_is_open_get_team_reward": { - "description": "会员是否活跃得到团队奖励", - "type": "string" - }, - "one_round_duration": { - "description": "一轮持续时间", - "type": "string" - }, - "reward_decrement_value": { - "description": "递减百分比", - "type": "string" - }, - "reward_end_value": { - "description": "奖励结束值", - "type": "string" - } - } - }, - "md.TreeNode": { - "type": "object", - "properties": { - "avatar_url": { - "type": "string", - "example": "头像" - }, - "level": { - "type": "integer" - }, - "nickname": { - "type": "string", - "example": "昵称" - }, - "phone": { - "type": "string", - "example": "手机号" - }, - "pid": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "son": { - "type": "array", - "items": { - "$ref": "#/definitions/md.TreeNode" - } - }, - "system_id": { - "description": "公排网中id", - "type": "integer" - }, - "uid": { - "type": "integer" - } - } - }, - "md.UpdateEggEnergyBasicReq": { - "type": "object", - "properties": { - "basic_setting": { - "description": "基础设置", - "allOf": [ - { - "$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting" - } - ] - }, - "data_setting": { - "description": "数据设置", - "allOf": [ - { - "$ref": "#/definitions/md.DataSetting" - } - ] - }, - "destruction_setting": { - "description": "销毁设置", - "allOf": [ - { - "$ref": "#/definitions/md.DestructionSettingStruct" - } - ] - }, - "exchange_rules": { - "description": "兑换规则", - "allOf": [ - { - "$ref": "#/definitions/md.ExchangeRulesStruct" - } - ] - }, - "new_user_incentive_rules": { - "description": "新用户奖励规则\t\t\t\t\t\t\t\t\t\t\t // 新用户奖励规则", - "allOf": [ - { - "$ref": "#/definitions/md.NewUserRewardRules" - } - ] - }, - "price_setting": { - "description": "价格设置", - "allOf": [ - { - "$ref": "#/definitions/md.PriceSettingStruct" - } - ] - }, - "reward_system": { - "description": "圈层奖励", - "allOf": [ - { - "$ref": "#/definitions/md.RewardSystemStruct" - } - ] - }, - "system_id": { - "description": "该设置系统 ID", - "type": "integer" - }, - "video_reward_setting": { - "description": "视频奖励", - "allOf": [ - { - "$ref": "#/definitions/md.VideoRewardSetting" - } - ] - } - } - }, - "md.UpdatePublicPlatoonBasicReq": { - "type": "object", - "properties": { - "is_open": { - "description": "是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "is_self_active_get_team_revenue": { - "description": "会员本人没有日活,没有圈层奖励(1:开启 0:关闭)", - "type": "integer" - }, - "originator_uid": { - "description": "创始人uid", - "type": "integer" - }, - "several_rows": { - "description": "几排", - "type": "integer" - }, - "several_times": { - "description": "几乘", - "type": "integer" - }, - "system_punish_replace": { - "description": "是否位置滑落 被新用户替换 0否 1是", - "type": "integer" - }, - "system_punish_replace_value": { - "description": "xx天未活跃,处罚滑落", - "type": "integer" - } - } - }, - "md.UserDailyActivityAnalysisReq": { - "type": "object", - "properties": { - "end_date": { - "type": "string", - "example": "结束日期" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "start_date": { - "type": "string", - "example": "开始日期" - }, - "uid": { - "description": "查询用户 ID", - "type": "integer" - } - } - }, - "md.UserDailyActivityAnalysisResp": { - "type": "object", - "properties": { - "son_user_data": { - "description": "被查询用户子节点信息", - "type": "array", - "items": { - "$ref": "#/definitions/md.SonUserDailyActivityAnalysisNode" - } - }, - "top_data": { - "description": "统计信息", - "allOf": [ - { - "$ref": "#/definitions/md.DailyActivityAnalysisTopData" - } - ] - } - } - }, - "md.UserEggFlowReq": { - "type": "object", - "properties": { - "account_balance_exchange_egg_energy_nums_end": { - "type": "string", - "example": "余额兑换蛋蛋能量数量-结束值" - }, - "account_balance_exchange_egg_energy_nums_start": { - "type": "string", - "example": "余额兑换蛋蛋能量数量-起始值" - }, - "browse_interface_nums_end": { - "type": "string", - "example": "浏览界面次数-结束值" - }, - "browse_interface_nums_start": { - "type": "string", - "example": "浏览界面次数-起始值" - }, - "college_learning_nums_end": { - "type": "string", - "example": "学院学习次数-结束值" - }, - "college_learning_nums_start": { - "type": "string", - "example": "学院学习次数-起始值" - }, - "ecpm_end": { - "type": "string", - "example": "ecpm-结束值" - }, - "ecpm_start": { - "type": "string", - "example": "ecpm-起始值" - }, - "egg_energy_exchange_account_balance_end": { - "type": "string", - "example": "蛋蛋能量兑换余额数量-结束值" - }, - "egg_energy_exchange_account_balance_start": { - "type": "string", - "example": "蛋蛋能量兑换余额数量-起始值" - }, - "forum_comments_nums_end": { - "type": "string", - "example": "论坛评论次数-结束值" - }, - "forum_comments_nums_start": { - "type": "string", - "example": "论坛评论次数-起始值" - }, - "im_activity_nums_end": { - "type": "string", - "example": "im活跃次数-结束值" - }, - "im_activity_nums_start": { - "type": "string", - "example": "im活跃次数-起始值" - }, - "invite_user_nums_end": { - "type": "string", - "example": "拉新人数-结束值" - }, - "invite_user_nums_start": { - "type": "string", - "example": "拉新人数-起始值" - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "person_add_activity_value_end": { - "type": "string", - "example": "个人活跃积分-结束值" - }, - "person_add_activity_value_start": { - "type": "string", - "example": "个人活跃积分-起始值" - }, - "score_value_end": { - "type": "string", - "example": "蛋蛋分-结束值" - }, - "score_value_kind": { - "description": "评分类型(0:未知 1:人工 2:系统)", - "type": "integer" - }, - "score_value_start": { - "type": "string", - "example": "蛋蛋分-起始值" - }, - "send_circle_of_friend_nums_end": { - "type": "string", - "example": "发朋友圈次数-结束值" - }, - "send_circle_of_friend_nums_start": { - "type": "string", - "example": "发朋友圈次数-起始值" - }, - "send_red_package_nums_end": { - "type": "string", - "example": "发红包次数-结束值" - }, - "send_red_package_nums_start": { - "type": "string", - "example": "发红包次数-起始值" - }, - "sign_in_nums_end": { - "type": "string", - "example": "签到次数-结束值" - }, - "sign_in_nums_start": { - "type": "string", - "example": "签到次数-起始值" - }, - "team-activity-nums-end": { - "type": "string", - "example": "团队活跃次数-结束值" - }, - "team_activity_nums_start": { - "type": "string", - "example": "团队活跃次数-起始值" - }, - "violate_nums_end": { - "type": "string", - "example": "违规次数-结束值" - }, - "violate_nums_start": { - "type": "string", - "example": "违规次数-起始值" - }, - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - } - } - }, - "md.UserEggFlowReqResp": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/md.UserEggFlowReqRespList" - } - }, - "page": { - "description": "页数", - "type": "integer" - }, - "page_size": { - "description": "每页大小", - "type": "integer" - }, - "total": { - "description": "总数量", - "type": "integer" - }, - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - } - } - }, - "md.UserEggFlowReqRespList": { - "type": "object", - "properties": { - "account_balance_exchange_egg_energy_nums": { - "description": "余额兑换蛋蛋能量数量", - "type": "integer" - }, - "browse_interface_nums": { - "description": "浏览界面次数", - "type": "integer" - }, - "college_learning_nums": { - "description": "学院学习次数", - "type": "integer" - }, - "ecpm": { - "description": "ecpm", - "type": "number" - }, - "egg_energy_exchange_account_balance": { - "description": "蛋蛋能量兑换余额数量", - "type": "integer" - }, - "forum_comments_nums": { - "description": "论坛评论次数", - "type": "integer" - }, - "im_activity_nums": { - "description": "im活跃次数", - "type": "integer" - }, - "index_id": { - "description": "文档id", - "type": "string" - }, - "invite_user_nums": { - "description": "拉新人数", - "type": "integer" - }, - "person_add_activity_value": { - "description": "个人活跃积分", - "type": "integer" - }, - "score_value": { - "description": "蛋蛋分-起始值", - "type": "number" - }, - "score_value_kind": { - "description": "评分类型(0:未知 1:人工 2:系统)", - "type": "integer" - }, - "send_circle_of_friend_nums": { - "description": "发朋友圈次数", - "type": "integer" - }, - "send_red_package_nums": { - "description": "发红包次数", - "type": "integer" - }, - "sign_in_nums": { - "description": "签到次数", - "type": "integer" - }, - "team_activity_nums": { - "description": "团队活跃次数", - "type": "integer" - }, - "violate_nums": { - "description": "违规次数", - "type": "integer" - } - } - }, - "md.UserEggIndexReq": { - "type": "object", - "properties": { - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - } - } - }, - "md.UserEggIndexResp": { - "type": "object", - "properties": { - "egg_energy_user_egg_index_weight": { - "description": "蛋蛋分系数权重", - "allOf": [ - { - "$ref": "#/definitions/model.EggEnergyUserEggIndexWeight" - } - ] - }, - "statistics_user_egg_kind_proportion": { - "description": "统计用户蛋蛋分\"评比类型\"占比", - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "statistics_user_egg_score_value_range": { - "description": "统计用户蛋蛋分范围", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "week": { - "type": "string", - "example": "周份" - }, - "year": { - "type": "string", - "example": "年份" - }, - "year_list": { - "description": "年份\u0026\u0026周份列表", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "md.UserVirtualCoinFlow": { - "type": "object", - "properties": { - "after_amount": { - "type": "string", - "example": "变更后数量" - }, - "amount": { - "type": "string", - "example": "变更数量" - }, - "before_amount": { - "type": "string", - "example": "变更前数量" - }, - "coin_id": { - "description": "虚拟币 ID", - "type": "integer" - }, - "create_at": { - "type": "string", - "example": "创建时间" - }, - "direction": { - "description": "方向:1收入 2支出", - "type": "integer" - }, - "id": { - "type": "integer" - }, - "sys_fee": { - "type": "string", - "example": "手续费" - }, - "title": { - "type": "string", - "example": "标题" - }, - "transfer_type": { - "description": "转账类型", - "type": "integer" - }, - "uid": { - "description": "用户 ID", - "type": "integer" - }, - "update_at": { - "type": "string", - "example": "更新时间" - } - } - }, - "md.VideoRewardSetting": { - "type": "object", - "properties": { - "video_reward_is_open": { - "description": "视频奖励是否开启(1:开启 0:关闭)", - "type": "integer" - }, - "video_reward_system": { - "description": "视频奖励机制", - "allOf": [ - { - "$ref": "#/definitions/md.VideoRewardSystemStruct" - } - ] - } - } - }, - "md.VideoRewardSystemStruct": { - "type": "object", - "properties": { - "each_round_hour": { - "description": "每一轮X个小时", - "type": "string" - }, - "interval_minutes": { - "description": "间隔X秒", - "type": "string" - }, - "reward_total_num": { - "description": "一共X个奖励视屏", - "type": "string" - }, - "reward_value": { - "description": "奖励X个活跃积分", - "type": "string" - } - } - }, - "md.VirtualCoin": { + "md.Response": { "type": "object", "properties": { - "create_at": { - "type": "string" - }, - "exchange_ratio": { - "description": "兑换比例(与金额)", + "code": { "type": "string", - "example": "兑换比例(与金额)" - }, - "id": { - "type": "integer" - }, - "is_use": { - "description": "是否开启: 0否 1是", - "type": "integer" - }, - "name": { - "description": "名称", - "type": "string" - }, - "update_at": { - "type": "string" - } - } - }, - "md.VirtualCoinListNode": { - "type": "object", - "properties": { - "coin_id": { - "description": "货币类型 ID", - "type": "integer" + "example": "响应码" }, - "kind": { - "description": "货币序号", - "type": "integer" + "data": { + "description": "内容" }, - "name": { + "msg": { "type": "string", - "example": "货币类型名称" - } - } - }, - "model.EggEnergyUserEggIndexWeight": { - "type": "object", - "properties": { - "account_balance_exchange_egg_energy_nums": { - "type": "string" - }, - "browse_interface_nums": { - "type": "string" - }, - "college_learning_nums": { - "type": "string" - }, - "create_at": { - "type": "string" - }, - "ecpm": { - "type": "string" - }, - "egg_energy_exchange_account_balance": { - "type": "string" - }, - "forum_comments_nums": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "im_activity_nums": { - "type": "string" - }, - "invite_user_nums": { - "type": "string" - }, - "person_add_activity_value": { - "type": "string" - }, - "send_circle_of_friend_nums": { - "type": "string" - }, - "send_red_package_nums": { - "type": "string" - }, - "sign_in_nums": { - "type": "string" - }, - "team_activity_nums": { - "type": "string" - }, - "update_at": { - "type": "string" - }, - "violate_nums": { - "type": "string" + "example": "具体错误原因" } } } - }, - "securityDefinitions": { - "MasterID": { - "type": "apiKey", - "name": "MasterID", - "in": "header" - } } } \ No newline at end of file diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 8f5d0be..3edc2da 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1,2950 +1,133 @@ +basePath: /api definitions: - applet_app_md_institutional_management_egg_energy.BasicSetting: - properties: - direct_push_reward: - allOf: - - $ref: '#/definitions/md.TeamRewardSettingStruct' - description: 直推奖励 - is_open: - description: 是否开启(1:开启 0:关闭) - type: integer - person_egg_energy_coin_id: - description: 个人蛋蛋能量对应虚拟币 id - type: integer - person_egg_points_coin_id: - description: 个人蛋蛋积分对应虚拟币 id - type: integer - team_egg_energy_coin_id: - description: 团队蛋蛋能量对应虚拟币 id - type: integer - team_egg_points_coin_id: - description: 团队蛋蛋积分对应虚拟币 id - type: integer - type: object - applet_app_md_institutional_management_egg_energy.Paginate: - properties: - limit: - description: 每页大小 - type: integer - page: - description: 页数 - type: integer - total: - description: 总数据量 - type: integer - type: object - applet_app_md_institutional_management_new_user_red_package.Paginate: - properties: - limit: - type: integer - page: - type: integer - total: - type: integer - type: object - applet_app_md_institutional_management_public_platoon.BasicSetting: - properties: - id: - type: integer - is_open: - description: 是否开启(1:开启 0:关闭) - type: integer - is_self_active_get_team_revenue: - description: 会员本人没有日活,没有圈层奖励(1:开启 0:关闭) - type: integer - originator_uid: - description: 创始人uid - type: integer - several_rows: - description: 几排 - type: integer - several_times: - description: 几乘 - type: integer - system_punish_replace: - description: 是否位置滑落 被新用户替换 0否 1是 - type: integer - system_punish_replace_value: - description: xx天未活跃,处罚滑落 - type: integer - type: object - applet_app_md_institutional_management_public_platoon.Paginate: - properties: - limit: - description: 每页大小 - type: integer - page: - description: 页数 - type: integer - total: - description: 总数据量 - type: integer - type: object - md.ActivePointsWalletNode: - properties: - amount: - example: 账户余额 - type: string - uid: - description: 用户 ID - type: integer - user_name: - example: 用户名 - type: string - user_phone: - example: 手机号 - type: string - type: object - md.AddCommunityDividendsReq: - properties: - amount: - description: 社区分红数量 - type: string - name: - example: 社区分红名称 - type: string - type: object - md.AddCommunityDividendsWithUserReq: - properties: - memo: - example: 备注 - type: string - uid: - description: 新增社区长用户 ID - type: integer - type: object - md.AddFreePublishUserReq: - properties: - uid: - type: integer - type: object - md.AddFundDataReq: - properties: - frequency: - description: 频率(分钟) - type: integer - hours: - description: 时长(小时) - type: integer - kind: - description: 种类(1:公司补贴 2:资方投资 3:市场期望) - type: integer - memo: - example: 备注 - type: string - total_amount: - description: 金额 - type: string - type: object - md.AddPlatformRevenueReq: - properties: - frequency: - description: 频率(分钟) - type: integer - hours: - description: 时长(小时) - type: integer - kind: - description: 种类(1:开屏广告 2:banner 广告 3:信息流广告 4:插屏广告) - type: integer - memo: - example: 备注 - type: string - total_amount: - description: 金额 - type: string - type: object - md.DailyActivityAnalysisTopData: - properties: - activity_count: - description: 子节点活跃天数 - type: integer - team_activity_user_count: - description: 子节点活跃人数 - type: integer - team_user_count: - description: 团队人数 - type: integer - type: object - md.DataSetting: - properties: - total_angel_investor: - description: 天使投资人 - example: 天使投资人 - type: string - total_ecological_development: - description: 生态建设 - example: 当前价格 - type: string - total_issuance_amount: - description: 总发行量 - example: 总发行量 - type: string - total_operate_fund: - description: 运营资金 - example: 运营资金 - type: string - total_technology_team: - description: 技术团队 - example: 技术团队 - type: string - total_user_for_person: - description: TotalTeamDividends string`json:"total_team_dividends" example:"团队分红"` - // 团队分红 - example: 个人区域 - type: string - total_user_for_team: - description: 团队区域 - example: 团队区域 - type: string - type: object - md.DestructionSettingStruct: - properties: - community_dividends: - description: 社区分红百分比 - type: string - destruction_quantity: - description: 销毁百分比 - type: string - development_committee: - description: 发展委员会百分比 - type: string - marketplace_merchant: - description: 市商数量百分比 - type: string - public_welfare_and_charity: - description: 公益慈善百分比 - type: string - star_level_dividends: - description: 星级分红百分比 - type: string - type: object - md.DynamicDataFlowListReq: - properties: - end_at: - description: 结束时间 - example: 结束时间 - type: string - kind: - description: 持有类型 - type: integer - page: - description: 页数 - type: integer - page_size: - description: 每页大小 - type: integer - start_at: - description: 开始时间 - example: 开始时间 - type: string - type: object - md.DynamicDataFlowListResp: - properties: - kind_list: - items: - additionalProperties: true - type: object - type: array - list: - items: - $ref: '#/definitions/md.EggEnergyAvailableEnergyFlow' - type: array - paginate: - $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.Paginate' - type: object - md.EggEnergyAvailableEnergyFlow: - properties: - after_community_dividends: - type: string - after_destruction_quantity_values: - type: string - after_development_committee_values: - type: string - after_marketplace_merchant_fund_values: - type: string - after_marketplace_merchant_values: - type: string - after_now_energy_total_nums: - type: string - after_planet_total_value: - type: string - after_price: - type: string - after_public_welfare_and_charity_values: - type: string - after_star_level_dividends_values: - type: string - amount: - type: string - before_community_dividends: - type: string - before_destruction_quantity_values: - type: string - before_development_committee_values: - type: string - before_marketplace_merchant_fund_values: - type: string - before_marketplace_merchant_values: - type: string - before_now_energy_total_nums: - type: string - before_planet_total_value: - type: string - before_price: - type: string - before_public_welfare_and_charity_values: - type: string - before_star_level_dividends_values: - type: string - create_time: - type: string - id: - type: integer - kind: - type: integer - title: - type: string - type: object - md.EggEnergyCommunityDividends: - properties: - amount: - description: 分红数量 - type: string - coin_id: - description: 虚拟币 id - type: integer - create_at: - description: 分红时间 - type: string - id: - type: integer - is_over: - description: 是否分红完毕 - type: integer - name: - example: 名称 - type: string - persons_num: - description: 分红人数 - type: integer - update_at: - type: string - type: object - md.EggEnergyCommunityDividendsWithUser: - properties: - id: - type: integer - memo: - example: 备注 - type: string - nickname: - type: string - phone: - type: string - uid: - type: integer - type: object - md.ExchangeRulesStruct: - properties: - auto_exchange_nums_by_person: - description: 个人数量X个,自动兑换可用蛋蛋能量 - type: string - auto_exchange_nums_by_team: - description: 团队数量X个,自动兑换团队蛋蛋能量 - type: string - auto_exchange_rate_by_person: - description: 个人数量百分比,自动兑换可用蛋蛋能量 - type: string - auto_exchange_rate_by_team: - description: 团队数量百分比,自动兑换团队蛋蛋能量 - type: string - type: object - md.ExchangeUserPositionReq: - properties: - position_1: - description: 位置1,具体值取返回数据中的 system_id - type: integer - position_2: - description: 位置2,具体值取返回数据中的 system_id - type: integer - type: object - md.FindSubUserRelationshipMapResp: - properties: - basic_setting: - allOf: - - $ref: '#/definitions/applet_app_md_institutional_management_public_platoon.BasicSetting' - description: 公排设置 - search_uid: - description: 查找的用户 ID - type: string - sub_user: - allOf: - - $ref: '#/definitions/md.SubUser' - description: 上级用户信息 - type: object - md.FreePublishUserNode: - properties: - nickname: - example: 昵称 - type: string - phone: - example: 手机号 - type: string - uid: - type: integer - type: object - md.FundDataNode: - properties: - balance_amount: - description: 余额 - type: string - balance_times: - description: 剩余执行次数 - type: integer - create_at: - description: 创建时间 - type: string - hours: - description: 时长 - type: integer - kind: - description: 种类(1:公司补贴 2:资方投资 3:市场期望) - type: integer - memo: - description: 备注 - type: string - system_id: - type: integer - total_amount: - description: 金额 - type: string - type: object - md.FundDataRecordNode: - properties: - after_planet_total_value: - description: 执行后-星球价值 - type: string - after_price: - description: 执行后-价格 - type: string - balance_amount: - description: 余额 - type: string - balance_times: - description: 剩余执行次数 - type: integer - before_planet_total_value: - description: 执行前-星球价值 - type: string - before_price: - description: 执行前-价格 - type: string - create_at: - type: string - total_amount: - description: 金额 - type: string - type: object - md.GetActivePointsUserCoinFlowListReq: - properties: - coin_id: - description: 货币类型 ID - type: integer - direction: - description: 流水方向:1收入 2支出 - type: integer - end_at: - description: 结束时间 - type: string - page: - description: 页数 - type: integer - page_size: - description: 每页大小 - type: integer - start_at: - description: 开始时间 - type: string - uid: - description: 用户 ID - type: integer - type: object - md.GetActivePointsUserCoinFlowListResp: - properties: - list: - description: 流水信息 - items: - $ref: '#/definitions/md.UserVirtualCoinFlow' - type: array - paginate: - allOf: - - $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.Paginate' - description: 分页信息 - select_data: - allOf: - - $ref: '#/definitions/md.SelectData' - description: 流水类型 - type: object - md.GetActivePointsUserCoinListReq: - properties: - end_coin: - example: 最大金额 - type: string - kind: - description: 虚拟币种类编号 - type: integer - page: - description: 页数 - type: integer - page_size: - description: 单页大小 - type: integer - start_coin: - example: 最小金额 - type: string - uid: - description: 指定查询用户 ID - type: integer - user_name: - example: 用户名称 - type: string - user_phone: - example: 手机号 - type: string - type: object - md.GetActivePointsUserCoinListResp: - properties: - kind_list: - description: 货币类型集合 - items: - $ref: '#/definitions/md.VirtualCoinListNode' - type: array - list: - description: 余额集合 - items: - $ref: '#/definitions/md.ActivePointsWalletNode' - type: array - sum_user_amount: - description: 用户持有总数 - type: number - total: - description: 持有该类型用户数 - type: integer - type: object - md.GetBasicResp: - properties: - oss_access_key_id: - example: oss访问秘钥id - type: string - oss_access_key_secret: - example: oss访问秘钥 - type: string - oss_bucket_name: - example: oss存储桶名称 - type: string - oss_bucket_scheme: - example: oss上传方式 - type: string - oss_endpoint: - example: oss地域节点 - type: string - oss_object_domain: - example: oss域名 - type: string - type: object - md.GetEggCoreDataListResp: - properties: - now_energy_total_nums: - description: 现行总量 - example: 现行总量 - type: string - now_price: - description: 当前价格 - example: 当前价格 - type: string - planet_total_value: - description: 星球价值 - example: 星球价值 - type: string - user_hold_total_nums: - additionalProperties: - type: string - description: 用户持有总量 - type: object - type: object - md.GetEggEnergyBasicResp: - properties: - basic_setting: - allOf: - - $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting' - description: 基础设置 - data_setting: - allOf: - - $ref: '#/definitions/md.DataSetting' - description: 数据设置 - destruction_setting: - allOf: - - $ref: '#/definitions/md.DestructionSettingStruct' - description: 销毁设置 - exchange_rules: - allOf: - - $ref: '#/definitions/md.ExchangeRulesStruct' - description: 兑换规则 - new_user_incentive_rules: - allOf: - - $ref: '#/definitions/md.NewUserRewardRules' - description: 新用户奖励规则 - price_setting: - allOf: - - $ref: '#/definitions/md.PriceSettingStruct' - description: 价格设置 - reward_system: - allOf: - - $ref: '#/definitions/md.RewardSystemStruct' - description: 圈层奖励 - system_id: - description: 该设置系统 ID - type: integer - video_reward_setting: - allOf: - - $ref: '#/definitions/md.VideoRewardSetting' - description: 视频奖励 - type: object - md.GetFreePublishUserReq: - properties: - limit: - description: 每页大小 - type: integer - page: - description: 当前页数 - type: integer - uid: - description: 筛选的用户 ID - type: integer - type: object - md.GetFreePublishUserResp: - properties: - list: - description: 免罚用户列表 - items: - $ref: '#/definitions/md.FreePublishUserNode' - type: array - paginate: - allOf: - - $ref: '#/definitions/applet_app_md_institutional_management_public_platoon.Paginate' - description: 分页信息 - type: object - md.GetFundDataListReq: - properties: - end_at: - example: 结束时间 - type: string - kind: - description: 数据类型 - type: integer - limit: - description: 每页大小 - type: integer - page: - description: 页数 - type: integer - start_at: - example: 开始时间 - type: string - type: object - md.GetFundDataListResp: - properties: - kind_list: - description: 类型列表 - items: - additionalProperties: true - type: object - type: array - list: - description: 数据列表 - items: - $ref: '#/definitions/md.FundDataNode' - type: array - paginate: - allOf: - - $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.Paginate' - description: 分页数据 - type: object - md.GetFundDataRecordListReq: - properties: - limit: - description: 页面大小 - type: integer - page: - description: 页数 - type: integer - system_id: - description: 数据在系统中的 ID - type: integer - type: object - md.GetFundDataRecordListResp: - properties: - list: - items: - $ref: '#/definitions/md.FundDataRecordNode' - type: array - paginate: - $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.Paginate' - type: object - md.GetGreenEnergyUserCoinFlowListReq: - properties: - coin_id: - description: 货币类型 ID - type: integer - direction: - description: 流水方向:1收入 2支出 - type: integer - end_at: - description: 结束时间 - type: string - page: - description: 页数 - type: integer - page_size: - description: 每页大小 - type: integer - start_at: - description: 开始时间 - type: string - uid: - description: 用户 ID - type: integer - type: object - md.GetGreenEnergyUserCoinFlowListResp: - properties: - list: - description: 流水信息 - items: - $ref: '#/definitions/md.UserVirtualCoinFlow' - type: array - paginate: - allOf: - - $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.Paginate' - description: 分页信息 - select_data: - allOf: - - $ref: '#/definitions/md.SelectData' - description: 流水类型 - type: object - md.GetGreenEnergyUserCoinListReq: - properties: - end_coin: - example: 最大金额 - type: string - kind: - description: 虚拟币种类编号 - type: integer - page: - description: 页数 - type: integer - page_size: - description: 单页大小 - type: integer - start_coin: - example: 最小金额 - type: string - uid: - description: 指定查询用户 ID - type: integer - user_name: - example: 用户名称 - type: string - user_phone: - example: 手机号 - type: string - type: object - md.GetGreenEnergyUserCoinListResp: - properties: - kind_list: - description: 货币类型集合 - items: - $ref: '#/definitions/md.VirtualCoinListNode' - type: array - list: - description: 余额集合 - items: - $ref: '#/definitions/md.ActivePointsWalletNode' - type: array - sum_user_amount: - description: 用户持有总数 - type: number - total: - description: 持有该类型用户数 - type: integer - type: object - md.GetPriceCurveResp: - properties: - x_data: - items: {} - type: array - y_data: - items: {} - type: array - type: object - md.GetPublicPlatoonBasicResp: - properties: - is_open: - description: 是否开启(1:开启 0:关闭) - type: integer - is_self_active_get_team_revenue: - description: 会员本人没有日活,没有圈层奖励(1:开启 0:关闭) - type: integer - originator_uid: - description: 创始人uid - type: integer - several_rows: - description: 几排 - type: integer - several_times: - description: 几乘 - type: integer - system_punish_replace: - description: 是否位置滑落 被新用户替换 0否 1是 - type: integer - system_punish_replace_value: - description: xx天未活跃,处罚滑落 - type: integer - type: object - md.ListCommunityDividendsReq: - properties: - end_at: - description: 结束时间 - type: string - end_nums: - description: 分红总量上限 - type: integer - limit: - description: 每页大小 - type: integer - page: - description: 页数 - type: integer - start_at: - description: 开始时间 - type: string - start_nums: - description: 分红总量下限 - type: integer - type: object - md.ListCommunityDividendsResp: - properties: - list: - items: - $ref: '#/definitions/md.EggEnergyCommunityDividends' - type: array - paginate: - $ref: '#/definitions/applet_app_md_institutional_management_public_platoon.Paginate' - type: object - md.ListCommunityDividendsWithUserReq: - properties: - limit: - type: integer - page: - type: integer - phone: - type: string - uid: - type: integer - type: object - md.ListCommunityDividendsWithUserResp: - properties: - list: - items: - $ref: '#/definitions/md.EggEnergyCommunityDividendsWithUser' - type: array - paginate: - $ref: '#/definitions/applet_app_md_institutional_management_public_platoon.Paginate' - type: object - md.ListPlatformRevenueReq: - properties: - end_at: - example: 结束时间 - type: string - kind: - description: 数据类型 - type: integer - limit: - description: 每页大小 - type: integer - page: - description: 页数 - type: integer - start_at: - example: 开始时间 - type: string - type: object - md.ListPlatformRevenueResp: - properties: - kind_list: - description: 类型列表 - items: - additionalProperties: true - type: object - type: array - list: - description: 数据列表 - items: - $ref: '#/definitions/md.PlatformRevenueDataNode' - type: array - paginate: - allOf: - - $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.Paginate' - description: 分页数据 - 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.ManualScoreReq: - properties: - index_id: - description: 文档id - type: string - score: - example: 分数 - type: string - type: object - md.NewUserRedPackageGetBasicResp: - properties: - create_at: - type: string - days: - description: 天数 - type: integer - is_double: - description: 是否翻倍 - type: integer - is_open: - description: 是否开启(1:开启 0:关闭) - type: integer - total_amount: - example: 总金额 - type: string - update_at: - type: string - type: object - md.NewUserRedPackageRecordFlowListReq: - properties: - end_at: - description: 结束时间 - type: string - limit: - description: 每页大小 - type: integer - page: - description: 页数 - type: integer - start_at: - description: 开始时间 - type: string - uid: - description: 用户 ID - type: integer - type: object - md.NewUserRedPackageRecordFlowListResp: - properties: - list: - items: - $ref: '#/definitions/md.NewUserRedPackageRecordFlowNode' - type: array - paginate: - $ref: '#/definitions/applet_app_md_institutional_management_new_user_red_package.Paginate' - type: object - md.NewUserRedPackageRecordFlowNode: - properties: - balance_amount: - description: 剩余金额 - type: string - balance_days: - description: 剩余天数 - type: integer - basic_amount: - description: 基础金额 - type: string - create_at: - description: 创建时间 - type: string - day_num: - description: 第x天 - type: integer - double_rate: - description: 倍率 - type: string - id: - description: 流水 ID - type: integer - is_double: - description: 是否翻倍 - type: integer - receive_days: - description: 领取天数 - type: integer - total_amount: - description: 实际金额 - type: string - uid: - description: 用户 ID - type: integer - type: object - md.NewUserRedPackageRecordListReq: - properties: - end_at: - description: 结束时间 - type: string - limit: - description: 每页大小 - type: integer - page: - description: 页数 - type: integer - start_at: - description: 开始时间 - type: string - uid: - description: 用户 ID - type: integer - type: object - md.NewUserRedPackageRecordListResp: - properties: - list: - items: - $ref: '#/definitions/md.NewUserRedPackageRecordNode' - type: array - paginate: - $ref: '#/definitions/applet_app_md_institutional_management_new_user_red_package.Paginate' - type: object - md.NewUserRedPackageRecordNode: - properties: - balance_amount: - description: 剩余金额 - type: string - balance_days: - description: 剩余天数 - type: integer - create_at: - description: 创建时间 - type: string - days: - description: 天数 - type: integer - receive_days: - description: 领取天数 - type: integer - state: - description: 状态(0:待领取 1:领取中 2:已领取 3:已冻结) - type: integer - system_id: - description: 系统中记录的 ID - type: integer - total_amount: - description: 金额 - type: string - uid: - description: 用户 ID - type: integer - update_at: - description: 修改时间 - type: string - type: object - md.NewUserRedPackageUpdateBasicReq: - properties: - days: - description: 天数 - type: integer - is_double: - description: 是否翻倍 - type: integer - is_open: - description: 是否开启(1:开启 0:关闭) - type: integer - total_amount: - example: 总金额 - type: string - type: object - md.NewUserRewardRules: - properties: - continue_days: - description: 连续x天 - type: integer - invite_user_reward_value: - description: 拉新用户奖励x个活跃积分 - type: integer - reward_coefficient: - description: 奖励系数 - type: number - type: object - md.PlatformRevenueDataNode: - properties: - balance_amount: - description: 余额 - type: string - balance_times: - description: 剩余执行次数 - type: integer - create_at: - description: 创建时间 - type: string - hours: - description: 时长 - type: integer - kind: - description: 种类(1:开屏广告 2:banner 广告 3:信息流广告 4:插屏广告) - type: integer - memo: - description: 备注 - type: string - system_id: - type: integer - total_amount: - description: 金额 - type: string - type: object - md.PriceSettingStruct: - properties: - marketplace_merchants_fund_exchange_marketplace_merchants_nums_value: - description: 市商资金单笔x元自动兑换 - type: string - marketplace_merchants_nums_exchange_marketplace_merchants_fund_value: - description: 市商数量单笔x数量自动兑换 - type: string - price_below_value: - description: 低于x元 - type: string - price_higher_than_value: - description: 高于x元 - type: string - type: object - md.Response: - properties: - code: - example: 响应码 - type: string - data: - description: 内容 - msg: - example: 具体错误原因 - type: string - type: object - md.RewardSystemStruct: - properties: - level: - description: 圈层 - type: integer - reward_condition: - description: 奖励条件 - type: string - reward_value: - description: 奖励值 - type: string - type: object - md.SelectData: - properties: - direction: - items: - additionalProperties: - type: string - type: object - type: array - type: object - md.SetBasicReq: - properties: - oss_access_key_id: - example: oss访问秘钥id - type: string - oss_access_key_secret: - example: oss访问秘钥 - type: string - oss_bucket_name: - example: oss存储桶名称 - type: string - oss_bucket_scheme: - example: oss上传方式 - type: string - oss_endpoint: - example: oss地域节点 - type: string - oss_object_domain: - example: oss域名 - type: string - type: object - md.SetVideoRewardReq: - properties: - ecmp: - description: 当前 Ecmp 值 - type: string - unit_price: - description: 单价 - type: string - type: object - md.SonUserDailyActivityAnalysisNode: - properties: - activity_day_nums: - description: 活跃子节点活跃天数 - type: integer - nickname: - example: 昵称 - type: string - phone: - example: 手机号 - type: string - uid: - description: 查询用户活跃子节点 ID - type: integer - type: object - md.StatisticsEggPointReq: - properties: - week: - example: 周份 - type: string - year: - example: 年份 - type: string - type: object - md.StatisticsEggPointResp: - properties: - statistics_user_egg_account_balance_exchange_egg_energy_nums_range: - description: 统计用户"余额兑换蛋蛋能量数量"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_browse_interface_nums_range: - description: 统计用户"浏览界面次数"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_college_learning_nums_range: - description: 统计用户"学院学习次数"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_ecpm_range: - description: 统计用户"ecpm"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_egg_energy_exchange_account_balance_range: - description: 统计用户"蛋蛋能量兑换余额数量"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_forum_comments_nums_range: - description: 统计用户"论坛评论次数"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_invite_user_nums_range: - description: 统计用户"拉新人数"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_kind_proportion: - description: 统计用户蛋蛋分"评比类型"占比 - items: - additionalProperties: true - type: object - type: array - statistics_user_egg_person_add_activity_value_range: - description: 统计用户"个人活跃积分增量值"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_score_value_range: - description: 统计用户蛋蛋分范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_send_circle_of_friend_nums_range: - description: 统计用户"发朋友圈次数"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_send_red_package_nums_range: - description: 统计用户"发红包次数"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_sign_in_nums_range: - description: 统计用户"签到次数"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_team_activity_nums_range: - description: 统计用户"团队活跃次数"范围 - items: - additionalProperties: - type: string - type: object - type: array - statistics_user_egg_violate_nums_range: - description: 统计用户"违规次数"范围 - items: - additionalProperties: - type: string - type: object - type: array - week: - example: 周份 - type: string - year: - example: 年份 - type: string - year_list: - additionalProperties: - items: - type: string - type: array - description: 年份&&周份列表 - type: object - type: object - md.SubUser: - properties: - avatar_url: - example: 头像 - type: string - level: - description: 整个系统中的等级 - type: integer - nickname: - example: 昵称 - type: string - phone: - example: 手机号 - type: string - pid: - type: integer - position: - description: 以pid1为创始人中网的位置 - type: integer - uid: - type: integer - type: object - md.TeamRewardSettingStruct: - properties: - member_self_is_open_get_team_reward: - description: 会员是否活跃得到团队奖励 - type: string - one_round_duration: - description: 一轮持续时间 - type: string - reward_decrement_value: - description: 递减百分比 - type: string - reward_end_value: - description: 奖励结束值 - type: string - type: object - md.TreeNode: - properties: - avatar_url: - example: 头像 - type: string - level: - type: integer - nickname: - example: 昵称 - type: string - phone: - example: 手机号 - type: string - pid: - type: integer - position: - type: integer - son: - items: - $ref: '#/definitions/md.TreeNode' - type: array - system_id: - description: 公排网中id - type: integer - uid: - type: integer - type: object - md.UpdateEggEnergyBasicReq: - properties: - basic_setting: - allOf: - - $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting' - description: 基础设置 - data_setting: - allOf: - - $ref: '#/definitions/md.DataSetting' - description: 数据设置 - destruction_setting: - allOf: - - $ref: '#/definitions/md.DestructionSettingStruct' - description: 销毁设置 - exchange_rules: - allOf: - - $ref: '#/definitions/md.ExchangeRulesStruct' - description: 兑换规则 - new_user_incentive_rules: - allOf: - - $ref: '#/definitions/md.NewUserRewardRules' - description: "新用户奖励规则\t\t\t\t\t\t\t\t\t\t\t // 新用户奖励规则" - price_setting: - allOf: - - $ref: '#/definitions/md.PriceSettingStruct' - description: 价格设置 - reward_system: - allOf: - - $ref: '#/definitions/md.RewardSystemStruct' - description: 圈层奖励 - system_id: - description: 该设置系统 ID - type: integer - video_reward_setting: - allOf: - - $ref: '#/definitions/md.VideoRewardSetting' - description: 视频奖励 - type: object - md.UpdatePublicPlatoonBasicReq: - properties: - is_open: - description: 是否开启(1:开启 0:关闭) - type: integer - is_self_active_get_team_revenue: - description: 会员本人没有日活,没有圈层奖励(1:开启 0:关闭) - type: integer - originator_uid: - description: 创始人uid - type: integer - several_rows: - description: 几排 - type: integer - several_times: - description: 几乘 - type: integer - system_punish_replace: - description: 是否位置滑落 被新用户替换 0否 1是 - type: integer - system_punish_replace_value: - description: xx天未活跃,处罚滑落 - type: integer - type: object - md.UserDailyActivityAnalysisReq: - properties: - end_date: - example: 结束日期 - type: string - page: - description: 页数 - type: integer - page_size: - description: 每页大小 - type: integer - start_date: - example: 开始日期 - type: string - uid: - description: 查询用户 ID - type: integer - type: object - md.UserDailyActivityAnalysisResp: - properties: - son_user_data: - description: 被查询用户子节点信息 - items: - $ref: '#/definitions/md.SonUserDailyActivityAnalysisNode' - type: array - top_data: - allOf: - - $ref: '#/definitions/md.DailyActivityAnalysisTopData' - description: 统计信息 - type: object - md.UserEggFlowReq: - properties: - account_balance_exchange_egg_energy_nums_end: - example: 余额兑换蛋蛋能量数量-结束值 - type: string - account_balance_exchange_egg_energy_nums_start: - example: 余额兑换蛋蛋能量数量-起始值 - type: string - browse_interface_nums_end: - example: 浏览界面次数-结束值 - type: string - browse_interface_nums_start: - example: 浏览界面次数-起始值 - type: string - college_learning_nums_end: - example: 学院学习次数-结束值 - type: string - college_learning_nums_start: - example: 学院学习次数-起始值 - type: string - ecpm_end: - example: ecpm-结束值 - type: string - ecpm_start: - example: ecpm-起始值 - type: string - egg_energy_exchange_account_balance_end: - example: 蛋蛋能量兑换余额数量-结束值 - type: string - egg_energy_exchange_account_balance_start: - example: 蛋蛋能量兑换余额数量-起始值 - type: string - forum_comments_nums_end: - example: 论坛评论次数-结束值 - type: string - forum_comments_nums_start: - example: 论坛评论次数-起始值 - type: string - im_activity_nums_end: - example: im活跃次数-结束值 - type: string - im_activity_nums_start: - example: im活跃次数-起始值 - type: string - invite_user_nums_end: - example: 拉新人数-结束值 - type: string - invite_user_nums_start: - example: 拉新人数-起始值 - type: string - page: - description: 页数 - type: integer - page_size: - description: 每页大小 - type: integer - person_add_activity_value_end: - example: 个人活跃积分-结束值 - type: string - person_add_activity_value_start: - example: 个人活跃积分-起始值 - type: string - score_value_end: - example: 蛋蛋分-结束值 - type: string - score_value_kind: - description: 评分类型(0:未知 1:人工 2:系统) - type: integer - score_value_start: - example: 蛋蛋分-起始值 - type: string - send_circle_of_friend_nums_end: - example: 发朋友圈次数-结束值 - type: string - send_circle_of_friend_nums_start: - example: 发朋友圈次数-起始值 - type: string - send_red_package_nums_end: - example: 发红包次数-结束值 - type: string - send_red_package_nums_start: - example: 发红包次数-起始值 - type: string - sign_in_nums_end: - example: 签到次数-结束值 - type: string - sign_in_nums_start: - example: 签到次数-起始值 - type: string - team-activity-nums-end: - example: 团队活跃次数-结束值 - type: string - team_activity_nums_start: - example: 团队活跃次数-起始值 - type: string - violate_nums_end: - example: 违规次数-结束值 - type: string - violate_nums_start: - example: 违规次数-起始值 - type: string - week: - example: 周份 - type: string - year: - example: 年份 - type: string - type: object - md.UserEggFlowReqResp: - properties: - list: - items: - $ref: '#/definitions/md.UserEggFlowReqRespList' - type: array - page: - description: 页数 - type: integer - page_size: - description: 每页大小 - type: integer - total: - description: 总数量 - type: integer - week: - example: 周份 - type: string - year: - example: 年份 - type: string - type: object - md.UserEggFlowReqRespList: - properties: - account_balance_exchange_egg_energy_nums: - description: 余额兑换蛋蛋能量数量 - type: integer - browse_interface_nums: - description: 浏览界面次数 - type: integer - college_learning_nums: - description: 学院学习次数 - type: integer - ecpm: - description: ecpm - type: number - egg_energy_exchange_account_balance: - description: 蛋蛋能量兑换余额数量 - type: integer - forum_comments_nums: - description: 论坛评论次数 - type: integer - im_activity_nums: - description: im活跃次数 - type: integer - index_id: - description: 文档id - type: string - invite_user_nums: - description: 拉新人数 - type: integer - person_add_activity_value: - description: 个人活跃积分 - type: integer - score_value: - description: 蛋蛋分-起始值 - type: number - score_value_kind: - description: 评分类型(0:未知 1:人工 2:系统) - type: integer - send_circle_of_friend_nums: - description: 发朋友圈次数 - type: integer - send_red_package_nums: - description: 发红包次数 - type: integer - sign_in_nums: - description: 签到次数 - type: integer - team_activity_nums: - description: 团队活跃次数 - type: integer - violate_nums: - description: 违规次数 - type: integer - type: object - md.UserEggIndexReq: - properties: - week: - example: 周份 - type: string - year: - example: 年份 - type: string - type: object - md.UserEggIndexResp: - properties: - egg_energy_user_egg_index_weight: - allOf: - - $ref: '#/definitions/model.EggEnergyUserEggIndexWeight' - description: 蛋蛋分系数权重 - statistics_user_egg_kind_proportion: - description: 统计用户蛋蛋分"评比类型"占比 - items: - additionalProperties: true - type: object - type: array - statistics_user_egg_score_value_range: - description: 统计用户蛋蛋分范围 - items: - additionalProperties: - type: string - type: object - type: array - week: - example: 周份 - type: string - year: - example: 年份 - type: string - year_list: - additionalProperties: - items: - type: string - type: array - description: 年份&&周份列表 - type: object - type: object - md.UserVirtualCoinFlow: - properties: - after_amount: - example: 变更后数量 - type: string - amount: - example: 变更数量 - type: string - before_amount: - example: 变更前数量 - type: string - coin_id: - description: 虚拟币 ID - type: integer - create_at: - example: 创建时间 - type: string - direction: - description: 方向:1收入 2支出 - type: integer - id: - type: integer - sys_fee: - example: 手续费 - type: string - title: - example: 标题 - type: string - transfer_type: - description: 转账类型 - type: integer - uid: - description: 用户 ID - type: integer - update_at: - example: 更新时间 - type: string - type: object - md.VideoRewardSetting: - properties: - video_reward_is_open: - description: 视频奖励是否开启(1:开启 0:关闭) - type: integer - video_reward_system: - allOf: - - $ref: '#/definitions/md.VideoRewardSystemStruct' - description: 视频奖励机制 - type: object - md.VideoRewardSystemStruct: - properties: - each_round_hour: - description: 每一轮X个小时 - type: string - interval_minutes: - description: 间隔X秒 - type: string - reward_total_num: - description: 一共X个奖励视屏 - type: string - reward_value: - description: 奖励X个活跃积分 - type: string - type: object - md.VirtualCoin: - properties: - create_at: - type: string - exchange_ratio: - description: 兑换比例(与金额) - example: 兑换比例(与金额) - type: string - id: - type: integer - is_use: - description: '是否开启: 0否 1是' - type: integer - name: - description: 名称 - type: string - update_at: - type: string - type: object - md.VirtualCoinListNode: - properties: - coin_id: - description: 货币类型 ID - type: integer - kind: - description: 货币序号 - type: integer - name: - example: 货币类型名称 - type: string - type: object - model.EggEnergyUserEggIndexWeight: - properties: - account_balance_exchange_egg_energy_nums: - type: string - browse_interface_nums: - type: string - college_learning_nums: - type: string - create_at: - type: string - ecpm: - type: string - egg_energy_exchange_account_balance: - type: string - forum_comments_nums: - type: string - id: - type: integer - im_activity_nums: - type: string - invite_user_nums: - type: string - person_add_activity_value: - type: string - send_circle_of_friend_nums: - type: string - send_red_package_nums: - type: string - sign_in_nums: - type: string - team_activity_nums: - type: string - update_at: - type: string - violate_nums: - type: string - type: object -host: localhost:4001 -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/getOssUrl: - 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/comm/oss/getBasic: - get: - consumes: - - application/json - description: 对象存储设置(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - produces: - - application/json - responses: - "200": - description: 设置列表 - schema: - $ref: '#/definitions/md.GetBasicResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 设置中心-对象存储-对象存储设置(获取) - tags: - - 对象存储 - /api/comm/oss/setBasic: - post: - consumes: - - application/json - description: 对象存储设置(更新) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 上传需要修改的信息 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.SetBasicReq' - produces: - - application/json - responses: - "200": - description: success - schema: - type: string - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 设置中心-对象存储-对象存储设置(更新) - tags: - - 对象存储 - /api/demo: - post: - consumes: - - application/json - description: Demo样例测试 - parameters: - - description: 用户名密码 - in: body - name: req - required: true - schema: {} - produces: - - application/json - responses: - "200": - description: token - schema: - additionalProperties: true - type: object - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: Demo测试 - tags: - - Demo - /api/institutionalManagement/eggEnergy/availableEnergy/list: - post: - consumes: - - application/json - description: 动态数据流水(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 页数、每页大小必传 起止时间、持有类型选传 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.DynamicDataFlowListReq' - produces: - - application/json - responses: - "200": - description: 成功返回 - schema: - $ref: '#/definitions/md.DynamicDataFlowListResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-动态数据-动态数据流水(获取) - tags: - - 公排管理 - /api/institutionalManagement/eggEnergy/eggPoint/manualScore: - post: - consumes: - - application/json - description: 蛋蛋分管理(人工打分) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 请求参数 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.ManualScoreReq' - produces: - - application/json - responses: - "200": - description: 成功返回 - schema: - type: string - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-蛋蛋分管理(人工打分) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/eggPoint/statisticsUserEggIndex: - post: - consumes: - - application/json - description: 蛋蛋分管理(着陆页数据分析) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 请求参数 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.StatisticsEggPointReq' - produces: - - application/json - responses: - "200": - description: 成功返回 - schema: - $ref: '#/definitions/md.StatisticsEggPointResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-蛋蛋分管理(着陆页数据分析) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/eggPoint/userEggFlow: - post: - consumes: - - application/json - description: 蛋蛋分管理(用户数据列表) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 请求参数 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.UserEggFlowReq' - produces: - - application/json - responses: - "200": - description: 成功返回 - schema: - $ref: '#/definitions/md.UserEggFlowReqResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-蛋蛋分管理(用户数据列表) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/getBasic: - get: - consumes: - - application/json - description: 基础设置(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.GetEggEnergyBasicResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-基础设置(获取) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/getVirtualCoinList: - get: - consumes: - - application/json - description: 查询所有币种(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - produces: - - application/json - responses: - "200": - description: 成功返回 - schema: - items: - $ref: '#/definitions/md.VirtualCoin' - type: array - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-查询所有币种(获取) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/globalData/coreDataList: - get: - consumes: - - application/json - description: 数据概览(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.GetEggCoreDataListResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-数据概览(获取) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/globalData/fundDataAdd: - post: - consumes: - - application/json - description: 价值明细数据(新增) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 数据种类、金额、时长(最长24h)、执行次数必填,备注选填 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.AddFundDataReq' - produces: - - application/json - responses: - "200": - description: 插入数据 id - schema: - type: int - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-价值明细数据(新增) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/globalData/fundDataList: - post: - consumes: - - application/json - description: 新增数据列表(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 分页信息必填 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.GetFundDataListReq' - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.GetFundDataListResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-新增数据列表(获取) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/globalData/fundDataRecordList: - post: - consumes: - - application/json - description: 新增数据列表详情(查询) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 获取到的 system_id 以及分页信息 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.GetFundDataRecordListReq' - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.GetFundDataRecordListResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-新增数据列表详情(查询) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/globalData/platformRevenueList: - post: - consumes: - - application/json - description: 平台营收数据(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 分页信息必填 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.ListPlatformRevenueReq' - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.ListPlatformRevenueResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-平台营收数据(获取) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/globalData/pointsCenterPriceCurve: - get: - consumes: - - application/json - description: 价格趋势(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 1:按天 2:按小时 3:按周 - in: query - name: kind - type: string - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.GetPriceCurveResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-价格趋势(获取) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/platformRevenue/PlatformRevenueAdd: - post: - consumes: - - application/json - description: 平台营收数据(新增) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 数据种类、金额、时长(最长24h)、执行次数必填,备注选填 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.AddPlatformRevenueReq' - produces: - - application/json - responses: - "200": - description: 插入数据 id - schema: - type: int - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-平台营收数据(新增) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/platformRevenue/SetVideoReward: - post: - consumes: - - application/json - description: 激励视频(设置) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 落地页不填页大小默认20条数据 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.SetVideoRewardReq' - produces: - - application/json - responses: - "200": - description: success - schema: - type: string - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-激励视频(设置) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/updateBasic: - post: - consumes: - - application/json - description: 基础设置(更新) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: system_id 必填 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.UpdateEggEnergyBasicReq' - produces: - - application/json - responses: - "200": - description: 修改数据条数 - schema: - type: int - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-蛋蛋能量-基础设置(更新) - tags: - - 蛋蛋能量 - /api/institutionalManagement/eggEnergy/userCoin/activePointsUserCoinFlowList: - post: - consumes: - - application/json - description: 活跃积分持有流水(查询) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 至少传入 货币类型 ID 用户 UID 页数 每页大小 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.GetActivePointsUserCoinFlowListReq' - produces: - - application/json - responses: - "200": - description: 成功返回 - schema: - $ref: '#/definitions/md.GetActivePointsUserCoinFlowListResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-活跃积分持有者明细-活跃积分持有流水(查询) - tags: - - 公排管理 - /api/institutionalManagement/eggEnergy/userCoin/activePointsUserCoinList: - post: - consumes: - - application/json - description: 活跃积分持有(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 落地页不填页大小默认20条数据 - in: body - name: req - schema: - $ref: '#/definitions/md.GetActivePointsUserCoinListReq' - produces: - - application/json - responses: - "200": - description: 成功返回 - schema: - $ref: '#/definitions/md.GetActivePointsUserCoinListResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-活跃积分持有者明细-活跃积分持有(获取) - tags: - - 公排管理 - /api/institutionalManagement/eggEnergy/userCoin/greenEnergyUserCoinFlowList: - post: - consumes: - - application/json - description: 绿色能量持有流水(查询) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 至少传入 货币类型 ID 用户 UID 页数 每页大小 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.GetGreenEnergyUserCoinFlowListReq' - produces: - - application/json - responses: - "200": - description: 成功返回 - schema: - $ref: '#/definitions/md.GetGreenEnergyUserCoinFlowListResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-绿色能量持有者明细-绿色能量持有流水(查询) - tags: - - 公排管理 - /api/institutionalManagement/eggEnergy/userCoin/greenEnergyUserCoinList: - post: - consumes: - - application/json - description: 绿色能量(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 落地页不填页大小默认20条数据 - in: body - name: req - schema: - $ref: '#/definitions/md.GetGreenEnergyUserCoinListReq' - produces: - - application/json - responses: - "200": - description: 成功返回 - schema: - $ref: '#/definitions/md.GetGreenEnergyUserCoinListResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-绿色能量持有者明细-绿色能量(获取) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsAdd: - post: - consumes: - - application/json - description: 社区分红(新增) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 分红名称、分红总量 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.AddCommunityDividendsReq' - produces: - - application/json - responses: - "200": - description: 成功 - schema: - type: success - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-社区分红(新增) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsList: - post: - consumes: - - application/json - description: 社区分红(查询) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 页数、每页大小必填 起止时间、起止数量选填 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.ListCommunityDividendsReq' - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.ListCommunityDividendsResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-社区分红(查询) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserAdd: - post: - consumes: - - application/json - description: 社区长列表(新增) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 新增社区长 ID、备注 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.AddCommunityDividendsWithUserReq' - produces: - - application/json - responses: - "200": - description: 插入数据 ID - schema: - type: int - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-社区长列表(新增) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserList: - post: - consumes: - - application/json - description: 社区长列表(查询) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 页数、每页大小必填 手机号、用户ID选填 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.ListCommunityDividendsWithUserReq' - produces: - - application/json - responses: - "200": - description: 社区长列表 - schema: - $ref: '#/definitions/md.ListCommunityDividendsWithUserResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-社区长列表(查询) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/exchangeUserPosition: - post: - consumes: - - application/json - description: 关系分布图(位置转换) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 需要交换的两个位置 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.ExchangeUserPositionReq' - produces: - - application/json - responses: - "200": - description: 成功返回 - schema: - type: "" - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-关系分布图(位置转换) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/findSubUserRelationshipMap: - get: - consumes: - - application/json - description: 关系分布图(获取指定用户上级) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true + md.LoginReq: + properties: + code: + example: 验证码 type: string - - description: 用户ID - in: query - name: uid - required: true + password: + example: 登录密码 type: string - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.FindSubUserRelationshipMapResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-关系分布图(获取指定用户上级) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/findUserRelationshipMap: - get: - consumes: - - application/json - description: 关系分布图(获取指定用户下级) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true + phone: + example: 手机号 type: string - - description: 用户ID - in: query - name: uid - required: true + required: + - password + - phone + type: object + md.LoginResponse: + properties: + token: type: string - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.TreeNode' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-关系分布图(获取指定用户下级) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/getBasic: - get: - consumes: - - application/json - description: 公排基础设置(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true + type: object + md.RegisterReq: + properties: + avatar: + example: 头像 type: string - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.GetPublicPlatoonBasicResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-公排基础设置(获取) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/index: - post: - consumes: - - application/json - description: 免罚用户(查询) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true + code: + example: 验证码 type: string - - description: 页数和行数必填,uid选填 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.GetFreePublishUserReq' - produces: - - application/json - responses: - "200": - description: 成功返回 - schema: - $ref: '#/definitions/md.GetFreePublishUserResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-免罚用户(查询) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/save: - post: - consumes: - - application/json - description: 免罚用户(新增) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true + invite_code: + example: 邀请码 type: string - - description: 页数和行数必填,uid选填 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.AddFreePublishUserReq' - produces: - - application/json - responses: - "200": - description: 插入数据 ID - schema: - type: int - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-免罚用户(新增) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/relationshipMap: - get: - consumes: - - application/json - description: 关系分布图(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true + mobile: type: string - - description: phone - in: query - name: phone - required: true + nickname: + example: 昵称 type: string - - description: uid - in: query - name: uid - required: true + open_id: + example: 微信openId type: string - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.TreeNode' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-关系分布图(获取) - tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/updateBasic: - put: + sex: + description: 性别(0:未知 1:男 2:女) + type: integer + type: + example: app:APP注册、h5:H5注册 + type: string + union_id: + example: 微信UnionId + type: string + required: + - mobile + type: object + md.Response: + properties: + code: + example: 响应码 + type: string + data: + description: 内容 + msg: + example: 具体错误原因 + type: string + type: object +host: mp.xbkai.com +info: + contact: + email: 1239118001@qq.com + name: dengbiao + url: http://www.swagger.io/support + description: APP客户端-Api接口 + license: + name: Apache 2.0 + url: http://www.apache.org/licenses/LICENSE-2.0.html + termsOfService: http://swagger.io/terms/ + title: 蛋蛋星球-APP客户端 + version: "1.0" +paths: + /api/comm/getOssUrl: + get: consumes: - application/json - description: 公排基础设置(修改) + description: 上传许可链接(获取) parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - - description: 公排设置表单内容 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.UpdatePublicPlatoonBasicReq' produces: - application/json responses: "200": - description: success + description: 许可链接 schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-公排基础设置(修改) + summary: 通用请求-对象存储-上传许可链接(获取) tags: - - 公排管理 - /api/institutionalManagement/publicPlatoon/userDailyActivityAnalysis/index: + - 对象存储 + /api/demo: post: consumes: - application/json - description: 日活分析 + description: Demo样例测试 parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 用户 ID、查询开始时间、结束时间(查询时间不超过30天)、页数、每页大小 + - description: 用户名密码 in: body name: req required: true - schema: - $ref: '#/definitions/md.UserDailyActivityAnalysisReq' + schema: {} produces: - application/json responses: "200": - description: 具体数据 + description: token schema: - $ref: '#/definitions/md.UserDailyActivityAnalysisResp' + additionalProperties: true + type: object "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-日活分析 + summary: Demo测试 tags: - - 公排管理 - /api/login: + - Demo + /v1/login: post: consumes: - application/json @@ -2970,127 +153,30 @@ paths: summary: 登陆 tags: - 登录 - /api/marketingApplications/newUserRedPackage/getBasic: - get: - consumes: - - application/json - description: 新人红包设置(获取) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.NewUserRedPackageGetBasicResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-营销应用-新人红包设置(获取) - tags: - - 营销应用 - /api/marketingApplications/newUserRedPackage/recordFlowList: - post: - consumes: - - application/json - description: 新人红包列表明细(查询) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 新人红包列表明细查询条件(分页信息、用户 ID必填) - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.NewUserRedPackageRecordFlowListReq' - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.NewUserRedPackageRecordFlowListResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-营销应用-新人红包列表明细(查询) - tags: - - 营销应用 - /api/marketingApplications/newUserRedPackage/recordList: + /v1/register: post: consumes: - application/json - description: 新人红包列表(查询) - parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 新人红包列表查询条件(分页信息必填) - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.NewUserRedPackageRecordListReq' - produces: - - application/json - responses: - "200": - description: 具体数据 - schema: - $ref: '#/definitions/md.NewUserRedPackageRecordListResp' - "400": - description: 具体错误 - schema: - $ref: '#/definitions/md.Response' - summary: 制度中心-营销应用-新人红包列表(查询) - tags: - - 营销应用 - /api/marketingApplications/newUserRedPackage/updateBasic: - put: - consumes: - - application/json - description: 新人红包设置(修改) + description: 注册 parameters: - - description: 验证参数Bearer和token空格拼接 - in: header - name: Authorization - required: true - type: string - - description: 新人红包设置表单 + - description: 注册参数 in: body name: req required: true schema: - $ref: '#/definitions/md.NewUserRedPackageUpdateBasicReq' + $ref: '#/definitions/md.RegisterReq' produces: - application/json responses: "200": - description: success + description: 登录成功返回 schema: - type: string + $ref: '#/definitions/md.LoginResponse' "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 制度中心-营销应用-新人红包设置(修改) + summary: 注册 tags: - - 营销应用 -securityDefinitions: - MasterID: - in: header - name: MasterID - type: apiKey + - 注册 swagger: "2.0" diff --git a/go.mod b/go.mod index a2f9845..e7f2316 100644 --- a/go.mod +++ b/go.mod @@ -2,17 +2,14 @@ module applet go 1.19 -replace code.fnuoos.com/EggPlanet/egg_models.git => E:/company/Egg/egg_models - -replace code.fnuoos.com/go_rely_warehouse/zyos_go_es.git => E:\company\go_rely_warehouse\zyos_go_es - -replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules +//replace code.fnuoos.com/EggPlanet/egg_models.git => E:/company/Egg/egg_models +// +//replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules require ( github.com/boombuler/barcode v1.0.1 github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5 github.com/dgrijalva/jwt-go v3.2.0+incompatible - github.com/forgoer/openssl v0.0.0-20201023062029-c3112b0c8700 github.com/gin-contrib/sessions v0.0.3 github.com/gin-gonic/gin v1.9.0 github.com/go-playground/locales v0.14.1 @@ -36,9 +33,9 @@ require ( ) require ( - code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241119093836-37be936b83fc - code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.3 - code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20230707081910-52e70aa52998 + code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241119114643-e5842e3aad32 + code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241119120223-896224742c0d + code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible github.com/go-sql-driver/mysql v1.8.1 diff --git a/k8s/container.yaml b/k8s/container.yaml index ea8c7b5..81e79a7 100644 --- a/k8s/container.yaml +++ b/k8s/container.yaml @@ -2,25 +2,25 @@ kind: Deployment apiVersion: apps/v1 # 元数据 metadata: - name: egg-admin + name: egg-app namespace: egg labels: - app: egg-admin + app: egg-app annotations: kubesphere.io/creator: dengbiao - kubesphere.io/description: egg-admin + kubesphere.io/description: egg-app # deployment主要部分 spec: replicas: 1 selector: matchLabels: # 名称与上面的labels对应 - app: egg-admin + app: egg-app template: metadata: labels: # 名称与上面的matchLabels对应 - app: egg-admin + app: egg-app spec: # 声明挂载卷(将外部已存在的pvc、config等挂载进来) volumes: @@ -30,61 +30,31 @@ spec: path: /etc/localtime type: '' # 将前面创建的configMap也挂载进来 - - name: egg-admin-cfg + - name: egg-app-cfg configMap: # 这里的名字就是前面创建的configMap的名字 - name: egg-admin-cfg + name: egg-app-cfg defaultMode: 420 - # pvc - - name: egg-admin # 在该部署中的名称,后面使用改名称挂载 - persistentVolumeClaim: - claimName: egg-admin # pvc的名称 - # Nginx配置 - - name: egg-admin-nginx - configMap: - name: egg-admin-nginx # 外部configMap的名称 - items: - - key: go.conf - path: default.conf containers: # 主容器 - - name: egg-admin-container + - name: egg-app-container # 镜像地址(提前打包好并推送的镜像仓库) - image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/egg-admin:0.0.1' + image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/egg-app:0.0.1' ports: - - name: egg-admin-4001 + - name: egg-app-4011 # 容器端口号(注意与golang web server启动的端口一致) - containerPort: 4001 + containerPort: 4011 protocol: TCP # 将前面volume声明的需要用到的pvc、config挂载上来 volumeMounts: - name: host-time readOnly: true mountPath: /etc/localtime - - name: egg-admin-cfg # 该名字对应前面volumes声明的名字 + - name: egg-app-cfg # 该名字对应前面volumes声明的名字 readOnly: true # 挂载到容器的哪个路径 mountPath: /var/egg imagePullPolicy: Always - # Nginx 容器 - - name: nginx - image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/nginx:latest' - ports: - - name: http-80 - containerPort: 80 - protocol: TCP - volumeMounts: - # 时区校正 - - name: host-time - readOnly: true - mountPath: /etc/localtime - # 存储卷 用于存放前端代码 - - name: egg-admin # 前面volumes声明的名称 - mountPath: /usr/share/nginx/html - - name: egg-admin-nginx # Nginx 配置 - readOnly: true - mountPath: /etc/nginx/conf.d/default.conf - subPath: default.conf restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst \ No newline at end of file