Browse Source

邀请链接

adv_callback
huangjiajun 1 month ago
parent
commit
5abd449ebf
3 changed files with 723 additions and 177 deletions
  1. +273
    -68
      docs/docs.go
  2. +271
    -65
      docs/swagger.json
  3. +179
    -44
      docs/swagger.yaml

+ 273
- 68
docs/docs.go View File

@@ -1,4 +1,5 @@
// Package docs Code generated by swaggo/swag. DO NOT EDIT
// Code generated by swaggo/swag. DO NOT EDIT.

package docs

import "github.com/swaggo/swag"
@@ -454,6 +455,53 @@ const docTemplate = `{
}
}
},
"/api/v1/advertising/state": {
"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.AdvertisingReq"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.AdvertisingState"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/college/cate": {
"get": {
"description": "蛋蛋学院-分类",
@@ -1471,6 +1519,115 @@ const docTemplate = `{
}
}
},
"/api/v1/memberCenter/inviteUrl": {
"get": {
"description": "邀请链接",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"邀请海报"
],
"summary": "邀请链接",
"responses": {
"200": {
"description": "登录成功返回",
"schema": {
"$ref": "#/definitions/md.InviteUrl"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/memberCenter/updatePasscode": {
"post": {
"description": "修改支付宝密码",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"账号与安全"
],
"summary": "修改支付宝密码",
"parameters": [
{
"description": "注册参数",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.UpdatePasscodeReq"
}
}
],
"responses": {
"200": {
"description": "登录成功返回",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/memberCenter/updatePassword": {
"post": {
"description": "修改密码",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"账号与安全"
],
"summary": "修改密码-不要原密码 换成验证码",
"parameters": [
{
"description": "注册参数",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.UpdatePasswordReq"
}
}
],
"responses": {
"200": {
"description": "登录成功返回",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/openApp/start": {
"get": {
"description": "打开app调用",
@@ -2063,7 +2220,9 @@ const docTemplate = `{
"name": "req",
"in": "body",
"required": true,
"schema": {}
"schema": {
"type": "object"
}
}
],
"responses": {
@@ -2552,6 +2711,68 @@ const docTemplate = `{
}
}
},
"code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd": {
"type": "object",
"properties": {
"amount": {
"type": "string"
},
"create_time": {
"type": "string"
},
"id": {
"type": "integer"
},
"im_data": {
"type": "string"
},
"im_uid": {
"type": "integer"
},
"ord_no": {
"type": "string"
},
"received_im_user_ids": {
"type": "string"
},
"received_times": {
"type": "string"
},
"received_user_amount": {
"type": "string"
},
"received_user_ids": {
"type": "string"
},
"red_packet_balance_amount": {
"type": "string"
},
"red_packet_balance_nums": {
"type": "integer"
},
"red_packet_nums": {
"type": "integer"
},
"red_packet_type": {
"type": "integer"
},
"state": {
"type": "integer"
},
"uid": {
"type": "integer"
},
"update_time": {
"type": "string"
},
"wait_draw_im_user_ids": {
"type": "string"
},
"wait_draw_user_ids": {
"type": "string"
}
}
},
"comm.AccessRecordsReq": {
"type": "object",
"properties": {
@@ -2709,6 +2930,14 @@ const docTemplate = `{
}
}
},
"md.AdvertisingState": {
"type": "object",
"properties": {
"is_success": {
"type": "string"
}
}
},
"md.BasalRateResp": {
"type": "object",
"properties": {
@@ -3501,6 +3730,20 @@ const docTemplate = `{
}
}
},
"md.InviteUrl": {
"type": "object",
"properties": {
"invite_code": {
"type": "string"
},
"link": {
"type": "string"
},
"qrcode": {
"type": "string"
}
}
},
"md.IsCanGetRedPackageResp": {
"type": "object",
"properties": {
@@ -3756,7 +3999,7 @@ const docTemplate = `{
"description": "红包详情信息",
"allOf": [
{
"$ref": "#/definitions/model.ImSendRedPackageOrd"
"$ref": "#/definitions/code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd"
}
]
},
@@ -3986,7 +4229,7 @@ const docTemplate = `{
},
"type": {
"type": "string",
"example": "h5Register:h5注册页、wechatBindPhone:微信绑定手机、login:登陆、findPwd:找回密码、changePwd:修改密码"
"example": "h5Register:h5注册页、wechatBindPhone:微信绑定手机、login:登陆、findPwd:找回密码、changePwd:修改密码、changePasscode:修改支付密码"
}
}
},
@@ -4064,6 +4307,32 @@ const docTemplate = `{
}
}
},
"md.UpdatePasscodeReq": {
"type": "object",
"properties": {
"code": {
"type": "string",
"example": "验证码"
},
"passcode": {
"type": "string",
"example": "密码 如 123"
}
}
},
"md.UpdatePasswordReq": {
"type": "object",
"properties": {
"code": {
"type": "string",
"example": "验证码"
},
"password": {
"type": "string",
"example": "密码 如 123"
}
}
},
"md.UserFeedbackListReq": {
"type": "object",
"properties": {
@@ -4339,68 +4608,6 @@ const docTemplate = `{
}
}
},
"model.ImSendRedPackageOrd": {
"type": "object",
"properties": {
"amount": {
"type": "string"
},
"create_time": {
"type": "string"
},
"id": {
"type": "integer"
},
"im_data": {
"type": "string"
},
"im_uid": {
"type": "integer"
},
"ord_no": {
"type": "string"
},
"received_im_user_ids": {
"type": "string"
},
"received_times": {
"type": "string"
},
"received_user_amount": {
"type": "string"
},
"received_user_ids": {
"type": "string"
},
"red_packet_balance_amount": {
"type": "string"
},
"red_packet_balance_nums": {
"type": "integer"
},
"red_packet_nums": {
"type": "integer"
},
"red_packet_type": {
"type": "integer"
},
"state": {
"type": "integer"
},
"uid": {
"type": "integer"
},
"update_time": {
"type": "string"
},
"wait_draw_im_user_ids": {
"type": "string"
},
"wait_draw_user_ids": {
"type": "string"
}
}
},
"pb.SendRedPacketResp": {
"type": "object",
"properties": {
@@ -4423,8 +4630,6 @@ var SwaggerInfo = &swag.Spec{
Description: "APP客户端-Api接口",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}

func init() {


+ 271
- 65
docs/swagger.json View File

@@ -448,6 +448,53 @@
}
}
},
"/api/v1/advertising/state": {
"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.AdvertisingReq"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.AdvertisingState"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/college/cate": {
"get": {
"description": "蛋蛋学院-分类",
@@ -1465,6 +1512,115 @@
}
}
},
"/api/v1/memberCenter/inviteUrl": {
"get": {
"description": "邀请链接",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"邀请海报"
],
"summary": "邀请链接",
"responses": {
"200": {
"description": "登录成功返回",
"schema": {
"$ref": "#/definitions/md.InviteUrl"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/memberCenter/updatePasscode": {
"post": {
"description": "修改支付宝密码",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"账号与安全"
],
"summary": "修改支付宝密码",
"parameters": [
{
"description": "注册参数",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.UpdatePasscodeReq"
}
}
],
"responses": {
"200": {
"description": "登录成功返回",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/memberCenter/updatePassword": {
"post": {
"description": "修改密码",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"账号与安全"
],
"summary": "修改密码-不要原密码 换成验证码",
"parameters": [
{
"description": "注册参数",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.UpdatePasswordReq"
}
}
],
"responses": {
"200": {
"description": "登录成功返回",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/openApp/start": {
"get": {
"description": "打开app调用",
@@ -2057,7 +2213,9 @@
"name": "req",
"in": "body",
"required": true,
"schema": {}
"schema": {
"type": "object"
}
}
],
"responses": {
@@ -2546,6 +2704,68 @@
}
}
},
"code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd": {
"type": "object",
"properties": {
"amount": {
"type": "string"
},
"create_time": {
"type": "string"
},
"id": {
"type": "integer"
},
"im_data": {
"type": "string"
},
"im_uid": {
"type": "integer"
},
"ord_no": {
"type": "string"
},
"received_im_user_ids": {
"type": "string"
},
"received_times": {
"type": "string"
},
"received_user_amount": {
"type": "string"
},
"received_user_ids": {
"type": "string"
},
"red_packet_balance_amount": {
"type": "string"
},
"red_packet_balance_nums": {
"type": "integer"
},
"red_packet_nums": {
"type": "integer"
},
"red_packet_type": {
"type": "integer"
},
"state": {
"type": "integer"
},
"uid": {
"type": "integer"
},
"update_time": {
"type": "string"
},
"wait_draw_im_user_ids": {
"type": "string"
},
"wait_draw_user_ids": {
"type": "string"
}
}
},
"comm.AccessRecordsReq": {
"type": "object",
"properties": {
@@ -2703,6 +2923,14 @@
}
}
},
"md.AdvertisingState": {
"type": "object",
"properties": {
"is_success": {
"type": "string"
}
}
},
"md.BasalRateResp": {
"type": "object",
"properties": {
@@ -3495,6 +3723,20 @@
}
}
},
"md.InviteUrl": {
"type": "object",
"properties": {
"invite_code": {
"type": "string"
},
"link": {
"type": "string"
},
"qrcode": {
"type": "string"
}
}
},
"md.IsCanGetRedPackageResp": {
"type": "object",
"properties": {
@@ -3750,7 +3992,7 @@
"description": "红包详情信息",
"allOf": [
{
"$ref": "#/definitions/model.ImSendRedPackageOrd"
"$ref": "#/definitions/code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd"
}
]
},
@@ -3980,7 +4222,7 @@
},
"type": {
"type": "string",
"example": "h5Register:h5注册页、wechatBindPhone:微信绑定手机、login:登陆、findPwd:找回密码、changePwd:修改密码"
"example": "h5Register:h5注册页、wechatBindPhone:微信绑定手机、login:登陆、findPwd:找回密码、changePwd:修改密码、changePasscode:修改支付密码"
}
}
},
@@ -4058,6 +4300,32 @@
}
}
},
"md.UpdatePasscodeReq": {
"type": "object",
"properties": {
"code": {
"type": "string",
"example": "验证码"
},
"passcode": {
"type": "string",
"example": "密码 如 123"
}
}
},
"md.UpdatePasswordReq": {
"type": "object",
"properties": {
"code": {
"type": "string",
"example": "验证码"
},
"password": {
"type": "string",
"example": "密码 如 123"
}
}
},
"md.UserFeedbackListReq": {
"type": "object",
"properties": {
@@ -4333,68 +4601,6 @@
}
}
},
"model.ImSendRedPackageOrd": {
"type": "object",
"properties": {
"amount": {
"type": "string"
},
"create_time": {
"type": "string"
},
"id": {
"type": "integer"
},
"im_data": {
"type": "string"
},
"im_uid": {
"type": "integer"
},
"ord_no": {
"type": "string"
},
"received_im_user_ids": {
"type": "string"
},
"received_times": {
"type": "string"
},
"received_user_amount": {
"type": "string"
},
"received_user_ids": {
"type": "string"
},
"red_packet_balance_amount": {
"type": "string"
},
"red_packet_balance_nums": {
"type": "integer"
},
"red_packet_nums": {
"type": "integer"
},
"red_packet_type": {
"type": "integer"
},
"state": {
"type": "integer"
},
"uid": {
"type": "integer"
},
"update_time": {
"type": "string"
},
"wait_draw_im_user_ids": {
"type": "string"
},
"wait_draw_user_ids": {
"type": "string"
}
}
},
"pb.SendRedPacketResp": {
"type": "object",
"properties": {


+ 179
- 44
docs/swagger.yaml View File

@@ -12,6 +12,47 @@ definitions:
description: 总数据量
type: integer
type: object
code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd:
properties:
amount:
type: string
create_time:
type: string
id:
type: integer
im_data:
type: string
im_uid:
type: integer
ord_no:
type: string
received_im_user_ids:
type: string
received_times:
type: string
received_user_amount:
type: string
received_user_ids:
type: string
red_packet_balance_amount:
type: string
red_packet_balance_nums:
type: integer
red_packet_nums:
type: integer
red_packet_type:
type: integer
state:
type: integer
uid:
type: integer
update_time:
type: string
wait_draw_im_user_ids:
type: string
wait_draw_user_ids:
type: string
type: object
comm.AccessRecordsReq:
properties:
index:
@@ -121,6 +162,11 @@ definitions:
example: 名称
type: string
type: object
md.AdvertisingState:
properties:
is_success:
type: string
type: object
md.BasalRateResp:
properties:
basal_rate:
@@ -670,6 +716,15 @@ definitions:
nickname:
type: string
type: object
md.InviteUrl:
properties:
invite_code:
type: string
link:
type: string
qrcode:
type: string
type: object
md.IsCanGetRedPackageResp:
properties:
is_can_get_red_package:
@@ -848,7 +903,7 @@ definitions:
properties:
detail:
allOf:
- $ref: '#/definitions/model.ImSendRedPackageOrd'
- $ref: '#/definitions/code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd'
description: 红包详情信息
list:
description: 领取红包用户列表
@@ -1008,7 +1063,7 @@ definitions:
example: 阿里云图形验证码对应参数
type: string
type:
example: h5Register:h5注册页、wechatBindPhone:微信绑定手机、login:登陆、findPwd:找回密码、changePwd:修改密码
example: h5Register:h5注册页、wechatBindPhone:微信绑定手机、login:登陆、findPwd:找回密码、changePwd:修改密码、changePasscode:修改支付密码
type: string
required:
- mobile
@@ -1061,6 +1116,24 @@ definitions:
value:
type: string
type: object
md.UpdatePasscodeReq:
properties:
code:
example: 验证码
type: string
passcode:
example: 密码 如 123
type: string
type: object
md.UpdatePasswordReq:
properties:
code:
example: 验证码
type: string
password:
example: 密码 如 123
type: string
type: object
md.UserFeedbackListReq:
properties:
limit:
@@ -1249,47 +1322,6 @@ definitions:
description: 余额
type: string
type: object
model.ImSendRedPackageOrd:
properties:
amount:
type: string
create_time:
type: string
id:
type: integer
im_data:
type: string
im_uid:
type: integer
ord_no:
type: string
received_im_user_ids:
type: string
received_times:
type: string
received_user_amount:
type: string
received_user_ids:
type: string
red_packet_balance_amount:
type: string
red_packet_balance_nums:
type: integer
red_packet_nums:
type: integer
red_packet_type:
type: integer
state:
type: integer
uid:
type: integer
update_time:
type: string
wait_draw_im_user_ids:
type: string
wait_draw_user_ids:
type: string
type: object
pb.SendRedPacketResp:
properties:
seq:
@@ -1594,6 +1626,37 @@ paths:
summary: 广告位详情
tags:
- 广告位
/api/v1/advertising/state:
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.AdvertisingReq'
produces:
- application/json
responses:
"200":
description: 具体数据
schema:
$ref: '#/definitions/md.AdvertisingState'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 广告状态 看完之后拿到广告唯一值
tags:
- 广告位
/api/v1/college/cate:
get:
consumes:
@@ -2264,6 +2327,77 @@ paths:
summary: 蛋蛋星球-会员中心-基础数据(获取)
tags:
- 会员中心
/api/v1/memberCenter/inviteUrl:
get:
consumes:
- application/json
description: 邀请链接
produces:
- application/json
responses:
"200":
description: 登录成功返回
schema:
$ref: '#/definitions/md.InviteUrl'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 邀请链接
tags:
- 邀请海报
/api/v1/memberCenter/updatePasscode:
post:
consumes:
- application/json
description: 修改支付宝密码
parameters:
- description: 注册参数
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.UpdatePasscodeReq'
produces:
- application/json
responses:
"200":
description: 登录成功返回
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 修改支付宝密码
tags:
- 账号与安全
/api/v1/memberCenter/updatePassword:
post:
consumes:
- application/json
description: 修改密码
parameters:
- description: 注册参数
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.UpdatePasswordReq'
produces:
- application/json
responses:
"200":
description: 登录成功返回
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 修改密码-不要原密码 换成验证码
tags:
- 账号与安全
/api/v1/openApp/start:
get:
consumes:
@@ -2653,7 +2787,8 @@ paths:
in: body
name: req
required: true
schema: {}
schema:
type: object
produces:
- application/json
responses:


Loading…
Cancel
Save