Browse Source

update

tmp
shenjiachi 3 weeks ago
parent
commit
860fe6634b
4 changed files with 193 additions and 196 deletions
  1. +1
    -0
      app/hdl/comm/hdl_comm.go
  2. +73
    -74
      docs/docs.go
  3. +70
    -72
      docs/swagger.json
  4. +49
    -50
      docs/swagger.yaml

+ 1
- 0
app/hdl/comm/hdl_comm.go View File

@@ -97,6 +97,7 @@ func GetOssUrl(c *gin.Context) {
// @Success 200 {string} "success" // @Success 200 {string} "success"
// @Success 200 {string} "data exist" // @Success 200 {string} "data exist"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/v1/comm/getOssUrl [POST]
func AccessRecords(c *gin.Context) { func AccessRecords(c *gin.Context) {
var req *comm.AccessRecordsReq var req *comm.AccessRecordsReq
if err1 := c.ShouldBindJSON(&req); err1 != nil { if err1 := c.ShouldBindJSON(&req); err1 != nil {


+ 73
- 74
docs/docs.go View File

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

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs package docs


import "github.com/swaggo/swag" import "github.com/swaggo/swag"
@@ -1402,7 +1401,7 @@ const docTemplate = `{
}, },
"/api/v1/comm/getOssUrl": { "/api/v1/comm/getOssUrl": {
"post": { "post": {
"description": "上传许可链接(获取)",
"description": "页面记录",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@@ -1410,9 +1409,9 @@ const docTemplate = `{
"application/json" "application/json"
], ],
"tags": [ "tags": [
"对象存储"
"访问记录"
], ],
"summary": "通用请求-对象存储-上传许可链接(获取)",
"summary": "通用请求-访问记录-页面记录",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
@@ -1422,18 +1421,18 @@ const docTemplate = `{
"required": true "required": true
}, },
{ {
"description": "签名上传url",
"description": "页面标识",
"name": "req", "name": "req",
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/comm.ImgReqUploadReq"
"$ref": "#/definitions/comm.AccessRecordsReq"
} }
} }
], ],
"responses": { "responses": {
"200": { "200": {
"description": "许可链接",
"description": "data exist",
"schema": { "schema": {
"type": "string" "type": "string"
} }
@@ -3236,9 +3235,7 @@ const docTemplate = `{
"name": "req", "name": "req",
"in": "body", "in": "body",
"required": true, "required": true,
"schema": {
"type": "object"
}
"schema": {}
} }
], ],
"responses": { "responses": {
@@ -4029,68 +4026,6 @@ 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": { "comm.AccessRecordsReq": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -5760,7 +5695,7 @@ const docTemplate = `{
"description": "红包详情信息", "description": "红包详情信息",
"allOf": [ "allOf": [
{ {
"$ref": "#/definitions/code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd"
"$ref": "#/definitions/model.ImSendRedPackageOrd"
} }
] ]
}, },
@@ -6468,6 +6403,68 @@ 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": { "pb.SendRedPacketResp": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -6490,6 +6487,8 @@ var SwaggerInfo = &swag.Spec{
Description: "APP客户端-Api接口", Description: "APP客户端-Api接口",
InfoInstanceName: "swagger", InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate, SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
} }


func init() { func init() {


+ 70
- 72
docs/swagger.json View File

@@ -1395,7 +1395,7 @@
}, },
"/api/v1/comm/getOssUrl": { "/api/v1/comm/getOssUrl": {
"post": { "post": {
"description": "上传许可链接(获取)",
"description": "页面记录",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@@ -1403,9 +1403,9 @@
"application/json" "application/json"
], ],
"tags": [ "tags": [
"对象存储"
"访问记录"
], ],
"summary": "通用请求-对象存储-上传许可链接(获取)",
"summary": "通用请求-访问记录-页面记录",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
@@ -1415,18 +1415,18 @@
"required": true "required": true
}, },
{ {
"description": "签名上传url",
"description": "页面标识",
"name": "req", "name": "req",
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/comm.ImgReqUploadReq"
"$ref": "#/definitions/comm.AccessRecordsReq"
} }
} }
], ],
"responses": { "responses": {
"200": { "200": {
"description": "许可链接",
"description": "data exist",
"schema": { "schema": {
"type": "string" "type": "string"
} }
@@ -3229,9 +3229,7 @@
"name": "req", "name": "req",
"in": "body", "in": "body",
"required": true, "required": true,
"schema": {
"type": "object"
}
"schema": {}
} }
], ],
"responses": { "responses": {
@@ -4022,68 +4020,6 @@
} }
} }
}, },
"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": { "comm.AccessRecordsReq": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -5753,7 +5689,7 @@
"description": "红包详情信息", "description": "红包详情信息",
"allOf": [ "allOf": [
{ {
"$ref": "#/definitions/code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd"
"$ref": "#/definitions/model.ImSendRedPackageOrd"
} }
] ]
}, },
@@ -6461,6 +6397,68 @@
} }
} }
}, },
"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": { "pb.SendRedPacketResp": {
"type": "object", "type": "object",
"properties": { "properties": {


+ 49
- 50
docs/swagger.yaml View File

@@ -12,47 +12,6 @@ definitions:
description: 总数据量 description: 总数据量
type: integer type: integer
type: object 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: comm.AccessRecordsReq:
properties: properties:
index: index:
@@ -1216,7 +1175,7 @@ definitions:
properties: properties:
detail: detail:
allOf: allOf:
- $ref: '#/definitions/code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd'
- $ref: '#/definitions/model.ImSendRedPackageOrd'
description: 红包详情信息 description: 红包详情信息
list: list:
description: 领取红包用户列表 description: 领取红包用户列表
@@ -1703,6 +1662,47 @@ definitions:
description: 余额 description: 余额
type: string type: string
type: object 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: pb.SendRedPacketResp:
properties: properties:
seq: seq:
@@ -2635,33 +2635,33 @@ paths:
post: post:
consumes: consumes:
- application/json - application/json
description: 上传许可链接(获取)
description: 页面记录
parameters: parameters:
- description: 验证参数Bearer和token空格拼接 - description: 验证参数Bearer和token空格拼接
in: header in: header
name: Authorization name: Authorization
required: true required: true
type: string type: string
- description: 签名上传url
- description: 页面标识
in: body in: body
name: req name: req
required: true required: true
schema: schema:
$ref: '#/definitions/comm.ImgReqUploadReq'
$ref: '#/definitions/comm.AccessRecordsReq'
produces: produces:
- application/json - application/json
responses: responses:
"200": "200":
description: 许可链接
description: data exist
schema: schema:
type: string type: string
"400": "400":
description: 具体错误 description: 具体错误
schema: schema:
$ref: '#/definitions/md.Response' $ref: '#/definitions/md.Response'
summary: 通用请求-对象存储-上传许可链接(获取)
summary: 通用请求-访问记录-页面记录
tags: tags:
- 对象存储
- 访问记录
/api/v1/config: /api/v1/config:
get: get:
consumes: consumes:
@@ -3838,8 +3838,7 @@ paths:
in: body in: body
name: req name: req
required: true required: true
schema:
type: object
schema: {}
produces: produces:
- application/json - application/json
responses: responses:


Loading…
Cancel
Save