黄梓健
5 years ago
9 changed files with 73 additions and 1537 deletions
-
5controllers/base.go
-
596docs/docs.go
-
544docs/swagger.json
-
360docs/swagger.yaml
-
1go.mod
-
2go.sum
-
55logger/logger.go
-
28main.go
-
19models/customer.go
@ -1,596 +0,0 @@ |
|||
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|||
// This file was generated by swaggo/swag at
|
|||
// 2019-11-07 14:33:12.2505817 +0800 CST m=+0.073000101
|
|||
|
|||
package docs |
|||
|
|||
import ( |
|||
"bytes" |
|||
"encoding/json" |
|||
|
|||
"github.com/alecthomas/template" |
|||
"github.com/swaggo/swag" |
|||
) |
|||
|
|||
var doc = `{ |
|||
"schemes": {{ marshal .Schemes }}, |
|||
"swagger": "2.0", |
|||
"info": { |
|||
"description": "This is a sample server Petstore server.", |
|||
"title": "hudongzhuangjia api", |
|||
"termsOfService": "http://swagger.io/terms/", |
|||
"contact": { |
|||
"name": "API Support", |
|||
"url": "http://www.swagger.io/support", |
|||
"email": "support@swagger.io" |
|||
}, |
|||
"license": { |
|||
"name": "Apache 2.0", |
|||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" |
|||
}, |
|||
"version": "1.0" |
|||
}, |
|||
"host": "172.0.0.1:20181", |
|||
"basePath": "/PcClient", |
|||
"paths": { |
|||
"/Client/InviteEnvelopeCtl/invite": { |
|||
"post": { |
|||
"description": "填写要求信息", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"invite envelope" |
|||
], |
|||
"summary": "InviteEnvelope", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "邀请函内容", |
|||
"name": "activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"description": "success", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"404": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"405": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Client/InviteEnvelopeCtl/setting": { |
|||
"get": { |
|||
"description": "get invite envelope setting", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"invite envelope" |
|||
], |
|||
"summary": "InviteEnvelope", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "Activity ID", |
|||
"name": "activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/models.Invitation" |
|||
} |
|||
}, |
|||
"404": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"405": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Client/TugOfWarCtl/shake": { |
|||
"get": { |
|||
"description": "shake bahe activity", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"tug war" |
|||
], |
|||
"summary": "tug war", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "Bahe Activity ID", |
|||
"name": "bahe_activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/models.BaheTeam" |
|||
} |
|||
}, |
|||
"404": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"405": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Client/TugOfWarCtl/status": { |
|||
"get": { |
|||
"description": "get current status", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"client tug war" |
|||
], |
|||
"summary": "client tug war", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "Bahe Activity ID", |
|||
"name": "bahe_activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/models.TugOfWar" |
|||
} |
|||
}, |
|||
"503": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"504": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Pc/ActivityCtl/list": { |
|||
"get": { |
|||
"description": "get all area store", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"pc" |
|||
], |
|||
"summary": "activity", |
|||
"responses": { |
|||
"200": { |
|||
"description": "success", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Pc/AuctionCtl/startAuction": { |
|||
"get": { |
|||
"description": "开始竞拍", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"pc" |
|||
], |
|||
"summary": "auction", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "竞拍id", |
|||
"name": "auction_activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"200": { |
|||
"description": "success", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Pc/AuctionCtl/stopAuction": { |
|||
"get": { |
|||
"description": "结束竞拍", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"pc" |
|||
], |
|||
"summary": "auction", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "竞拍id", |
|||
"name": "auction_activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"200": { |
|||
"description": "success", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Pc/WsCtl/ops": { |
|||
"get": { |
|||
"description": "get current operation", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"ws" |
|||
], |
|||
"summary": "ws", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "Activity ID", |
|||
"name": "activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"schema": { |
|||
"type": "array", |
|||
"items": { |
|||
"$ref": "#/definitions/models.CustomerOperation" |
|||
} |
|||
} |
|||
}, |
|||
"503": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"504": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Pc/WsCtl/saveOp": { |
|||
"post": { |
|||
"description": "save operation", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"ws" |
|||
], |
|||
"summary": "ws", |
|||
"parameters": [ |
|||
{ |
|||
"type": "string", |
|||
"description": "操作内容", |
|||
"name": "operation", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"description": "success", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"503": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"504": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"definitions": { |
|||
"models.BaheTeam": { |
|||
"type": "object", |
|||
"properties": { |
|||
"activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"bahe_activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"bahe_team_name": { |
|||
"type": "string" |
|||
}, |
|||
"id": { |
|||
"type": "integer" |
|||
}, |
|||
"is_delete": { |
|||
"type": "boolean" |
|||
}, |
|||
"members": { |
|||
"type": "array", |
|||
"items": { |
|||
"$ref": "#/definitions/models.BaheTeamMember" |
|||
} |
|||
}, |
|||
"qrcode": { |
|||
"type": "string" |
|||
}, |
|||
"rank": { |
|||
"type": "integer" |
|||
}, |
|||
"total_score": { |
|||
"type": "integer" |
|||
} |
|||
} |
|||
}, |
|||
"models.BaheTeamMember": { |
|||
"type": "object", |
|||
"properties": { |
|||
"avatar": { |
|||
"type": "string" |
|||
}, |
|||
"bahe_activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"id": { |
|||
"type": "integer" |
|||
}, |
|||
"member_id": { |
|||
"type": "integer" |
|||
}, |
|||
"nick_name": { |
|||
"type": "string" |
|||
}, |
|||
"rehearsal_id": { |
|||
"type": "integer" |
|||
}, |
|||
"score": { |
|||
"type": "integer" |
|||
}, |
|||
"team_id": { |
|||
"type": "integer" |
|||
}, |
|||
"team_name": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
}, |
|||
"models.CustomerOperation": { |
|||
"type": "object", |
|||
"properties": { |
|||
"activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"area_id": { |
|||
"type": "integer" |
|||
}, |
|||
"created_at": { |
|||
"type": "string" |
|||
}, |
|||
"customer_id": { |
|||
"type": "integer" |
|||
}, |
|||
"id": { |
|||
"type": "integer" |
|||
}, |
|||
"is_delete": { |
|||
"type": "boolean" |
|||
}, |
|||
"module_activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"module_activity_type": { |
|||
"type": "string" |
|||
}, |
|||
"operation": { |
|||
"type": "string" |
|||
}, |
|||
"other_data": { |
|||
"type": "object" |
|||
}, |
|||
"updated_at": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
}, |
|||
"models.Invitation": { |
|||
"type": "object", |
|||
"properties": { |
|||
"activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"id": { |
|||
"type": "integer" |
|||
}, |
|||
"qr_dest_url": { |
|||
"type": "string" |
|||
}, |
|||
"qr_image_url": { |
|||
"type": "string" |
|||
}, |
|||
"self_box": { |
|||
"type": "string" |
|||
}, |
|||
"setting_box": { |
|||
"type": "string" |
|||
}, |
|||
"submit_time_limit": { |
|||
"type": "string" |
|||
}, |
|||
"time_limit_end": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
}, |
|||
"models.TugOfWar": { |
|||
"type": "object", |
|||
"properties": { |
|||
"activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"created_at": { |
|||
"type": "string" |
|||
}, |
|||
"id": { |
|||
"type": "integer" |
|||
}, |
|||
"is_delete": { |
|||
"type": "boolean" |
|||
}, |
|||
"model": { |
|||
"type": "string" |
|||
}, |
|||
"number": { |
|||
"type": "integer" |
|||
}, |
|||
"status": { |
|||
"type": "string" |
|||
}, |
|||
"updated_at": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}` |
|||
|
|||
type swaggerInfo struct { |
|||
Version string |
|||
Host string |
|||
BasePath string |
|||
Schemes []string |
|||
Title string |
|||
Description string |
|||
} |
|||
|
|||
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
|||
var SwaggerInfo = swaggerInfo{ Schemes: []string{}} |
|||
|
|||
type s struct{} |
|||
|
|||
func (s *s) ReadDoc() string { |
|||
t, err := template.New("swagger_info").Funcs(template.FuncMap{ |
|||
"marshal": func(v interface {}) string { |
|||
a, _ := json.Marshal(v) |
|||
return string(a) |
|||
}, |
|||
}).Parse(doc) |
|||
if err != nil { |
|||
return doc |
|||
} |
|||
|
|||
var tpl bytes.Buffer |
|||
if err := t.Execute(&tpl, SwaggerInfo); err != nil { |
|||
return doc |
|||
} |
|||
|
|||
return tpl.String() |
|||
} |
|||
|
|||
func init() { |
|||
swag.Register(swag.Name, &s{}) |
|||
} |
@ -1,544 +0,0 @@ |
|||
{ |
|||
"swagger": "2.0", |
|||
"info": { |
|||
"description": "This is a sample server Petstore server.", |
|||
"title": "hudongzhuangjia api", |
|||
"termsOfService": "http://swagger.io/terms/", |
|||
"contact": { |
|||
"name": "API Support", |
|||
"url": "http://www.swagger.io/support", |
|||
"email": "support@swagger.io" |
|||
}, |
|||
"license": { |
|||
"name": "Apache 2.0", |
|||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" |
|||
}, |
|||
"version": "1.0" |
|||
}, |
|||
"host": "172.0.0.1:20181", |
|||
"basePath": "/PcClient", |
|||
"paths": { |
|||
"/Client/InviteEnvelopeCtl/invite": { |
|||
"post": { |
|||
"description": "填写要求信息", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"invite envelope" |
|||
], |
|||
"summary": "InviteEnvelope", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "邀请函内容", |
|||
"name": "activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"description": "success", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"404": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"405": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Client/InviteEnvelopeCtl/setting": { |
|||
"get": { |
|||
"description": "get invite envelope setting", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"invite envelope" |
|||
], |
|||
"summary": "InviteEnvelope", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "Activity ID", |
|||
"name": "activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/models.Invitation" |
|||
} |
|||
}, |
|||
"404": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"405": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Client/TugOfWarCtl/shake": { |
|||
"get": { |
|||
"description": "shake bahe activity", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"tug war" |
|||
], |
|||
"summary": "tug war", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "Bahe Activity ID", |
|||
"name": "bahe_activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/models.BaheTeam" |
|||
} |
|||
}, |
|||
"404": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"405": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Client/TugOfWarCtl/status": { |
|||
"get": { |
|||
"description": "get current status", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"client tug war" |
|||
], |
|||
"summary": "client tug war", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "Bahe Activity ID", |
|||
"name": "bahe_activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/models.TugOfWar" |
|||
} |
|||
}, |
|||
"503": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"504": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Pc/ActivityCtl/list": { |
|||
"get": { |
|||
"description": "get all area store", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"pc" |
|||
], |
|||
"summary": "activity", |
|||
"responses": { |
|||
"200": { |
|||
"description": "success", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Pc/AuctionCtl/startAuction": { |
|||
"get": { |
|||
"description": "开始竞拍", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"pc" |
|||
], |
|||
"summary": "auction", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "竞拍id", |
|||
"name": "auction_activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"200": { |
|||
"description": "success", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Pc/AuctionCtl/stopAuction": { |
|||
"get": { |
|||
"description": "结束竞拍", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"pc" |
|||
], |
|||
"summary": "auction", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "竞拍id", |
|||
"name": "auction_activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"200": { |
|||
"description": "success", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Pc/WsCtl/ops": { |
|||
"get": { |
|||
"description": "get current operation", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"ws" |
|||
], |
|||
"summary": "ws", |
|||
"parameters": [ |
|||
{ |
|||
"type": "integer", |
|||
"description": "Activity ID", |
|||
"name": "activity_id", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"schema": { |
|||
"type": "array", |
|||
"items": { |
|||
"$ref": "#/definitions/models.CustomerOperation" |
|||
} |
|||
} |
|||
}, |
|||
"503": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"504": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"/Pc/WsCtl/saveOp": { |
|||
"post": { |
|||
"description": "save operation", |
|||
"consumes": [ |
|||
"application/json" |
|||
], |
|||
"produces": [ |
|||
"application/json" |
|||
], |
|||
"tags": [ |
|||
"ws" |
|||
], |
|||
"summary": "ws", |
|||
"parameters": [ |
|||
{ |
|||
"type": "string", |
|||
"description": "操作内容", |
|||
"name": "operation", |
|||
"in": "query", |
|||
"required": true |
|||
} |
|||
], |
|||
"responses": { |
|||
"0": { |
|||
"description": "success", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"503": { |
|||
"description": "参数不存在", |
|||
"schema": { |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"504": { |
|||
"description": "用户不存在", |
|||
"schema": { |
|||
"type": "object", |
|||
"$ref": "#/definitions/string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
"definitions": { |
|||
"models.BaheTeam": { |
|||
"type": "object", |
|||
"properties": { |
|||
"activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"bahe_activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"bahe_team_name": { |
|||
"type": "string" |
|||
}, |
|||
"id": { |
|||
"type": "integer" |
|||
}, |
|||
"is_delete": { |
|||
"type": "boolean" |
|||
}, |
|||
"members": { |
|||
"type": "array", |
|||
"items": { |
|||
"$ref": "#/definitions/models.BaheTeamMember" |
|||
} |
|||
}, |
|||
"qrcode": { |
|||
"type": "string" |
|||
}, |
|||
"rank": { |
|||
"type": "integer" |
|||
}, |
|||
"total_score": { |
|||
"type": "integer" |
|||
} |
|||
} |
|||
}, |
|||
"models.BaheTeamMember": { |
|||
"type": "object", |
|||
"properties": { |
|||
"avatar": { |
|||
"type": "string" |
|||
}, |
|||
"bahe_activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"id": { |
|||
"type": "integer" |
|||
}, |
|||
"member_id": { |
|||
"type": "integer" |
|||
}, |
|||
"nick_name": { |
|||
"type": "string" |
|||
}, |
|||
"rehearsal_id": { |
|||
"type": "integer" |
|||
}, |
|||
"score": { |
|||
"type": "integer" |
|||
}, |
|||
"team_id": { |
|||
"type": "integer" |
|||
}, |
|||
"team_name": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
}, |
|||
"models.CustomerOperation": { |
|||
"type": "object", |
|||
"properties": { |
|||
"activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"area_id": { |
|||
"type": "integer" |
|||
}, |
|||
"created_at": { |
|||
"type": "string" |
|||
}, |
|||
"customer_id": { |
|||
"type": "integer" |
|||
}, |
|||
"id": { |
|||
"type": "integer" |
|||
}, |
|||
"is_delete": { |
|||
"type": "boolean" |
|||
}, |
|||
"module_activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"module_activity_type": { |
|||
"type": "string" |
|||
}, |
|||
"operation": { |
|||
"type": "string" |
|||
}, |
|||
"other_data": { |
|||
"type": "object" |
|||
}, |
|||
"updated_at": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
}, |
|||
"models.Invitation": { |
|||
"type": "object", |
|||
"properties": { |
|||
"activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"id": { |
|||
"type": "integer" |
|||
}, |
|||
"qr_dest_url": { |
|||
"type": "string" |
|||
}, |
|||
"qr_image_url": { |
|||
"type": "string" |
|||
}, |
|||
"self_box": { |
|||
"type": "string" |
|||
}, |
|||
"setting_box": { |
|||
"type": "string" |
|||
}, |
|||
"submit_time_limit": { |
|||
"type": "string" |
|||
}, |
|||
"time_limit_end": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
}, |
|||
"models.TugOfWar": { |
|||
"type": "object", |
|||
"properties": { |
|||
"activity_id": { |
|||
"type": "integer" |
|||
}, |
|||
"created_at": { |
|||
"type": "string" |
|||
}, |
|||
"id": { |
|||
"type": "integer" |
|||
}, |
|||
"is_delete": { |
|||
"type": "boolean" |
|||
}, |
|||
"model": { |
|||
"type": "string" |
|||
}, |
|||
"number": { |
|||
"type": "integer" |
|||
}, |
|||
"status": { |
|||
"type": "string" |
|||
}, |
|||
"updated_at": { |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
@ -1,360 +0,0 @@ |
|||
basePath: /PcClient |
|||
definitions: |
|||
models.BaheTeam: |
|||
properties: |
|||
activity_id: |
|||
type: integer |
|||
bahe_activity_id: |
|||
type: integer |
|||
bahe_team_name: |
|||
type: string |
|||
id: |
|||
type: integer |
|||
is_delete: |
|||
type: boolean |
|||
members: |
|||
items: |
|||
$ref: '#/definitions/models.BaheTeamMember' |
|||
type: array |
|||
qrcode: |
|||
type: string |
|||
rank: |
|||
type: integer |
|||
total_score: |
|||
type: integer |
|||
type: object |
|||
models.BaheTeamMember: |
|||
properties: |
|||
avatar: |
|||
type: string |
|||
bahe_activity_id: |
|||
type: integer |
|||
id: |
|||
type: integer |
|||
member_id: |
|||
type: integer |
|||
nick_name: |
|||
type: string |
|||
rehearsal_id: |
|||
type: integer |
|||
score: |
|||
type: integer |
|||
team_id: |
|||
type: integer |
|||
team_name: |
|||
type: string |
|||
type: object |
|||
models.CustomerOperation: |
|||
properties: |
|||
activity_id: |
|||
type: integer |
|||
area_id: |
|||
type: integer |
|||
created_at: |
|||
type: string |
|||
customer_id: |
|||
type: integer |
|||
id: |
|||
type: integer |
|||
is_delete: |
|||
type: boolean |
|||
module_activity_id: |
|||
type: integer |
|||
module_activity_type: |
|||
type: string |
|||
operation: |
|||
type: string |
|||
other_data: |
|||
type: object |
|||
updated_at: |
|||
type: string |
|||
type: object |
|||
models.Invitation: |
|||
properties: |
|||
activity_id: |
|||
type: integer |
|||
id: |
|||
type: integer |
|||
qr_dest_url: |
|||
type: string |
|||
qr_image_url: |
|||
type: string |
|||
self_box: |
|||
type: string |
|||
setting_box: |
|||
type: string |
|||
submit_time_limit: |
|||
type: string |
|||
time_limit_end: |
|||
type: string |
|||
type: object |
|||
models.TugOfWar: |
|||
properties: |
|||
activity_id: |
|||
type: integer |
|||
created_at: |
|||
type: string |
|||
id: |
|||
type: integer |
|||
is_delete: |
|||
type: boolean |
|||
model: |
|||
type: string |
|||
number: |
|||
type: integer |
|||
status: |
|||
type: string |
|||
updated_at: |
|||
type: string |
|||
type: object |
|||
host: 172.0.0.1:20181 |
|||
info: |
|||
contact: |
|||
email: support@swagger.io |
|||
name: API Support |
|||
url: http://www.swagger.io/support |
|||
description: This is a sample server Petstore server. |
|||
license: |
|||
name: Apache 2.0 |
|||
url: http://www.apache.org/licenses/LICENSE-2.0.html |
|||
termsOfService: http://swagger.io/terms/ |
|||
title: hudongzhuangjia api |
|||
version: "1.0" |
|||
paths: |
|||
/Client/InviteEnvelopeCtl/invite: |
|||
post: |
|||
consumes: |
|||
- application/json |
|||
description: 填写要求信息 |
|||
parameters: |
|||
- description: 邀请函内容 |
|||
in: query |
|||
name: activity_id |
|||
required: true |
|||
type: integer |
|||
produces: |
|||
- application/json |
|||
responses: |
|||
"0": |
|||
description: success |
|||
schema: |
|||
type: string |
|||
"404": |
|||
description: 参数不存在 |
|||
schema: |
|||
type: string |
|||
"405": |
|||
description: 用户不存在 |
|||
schema: |
|||
type: string |
|||
summary: InviteEnvelope |
|||
tags: |
|||
- invite envelope |
|||
/Client/InviteEnvelopeCtl/setting: |
|||
get: |
|||
consumes: |
|||
- application/json |
|||
description: get invite envelope setting |
|||
parameters: |
|||
- description: Activity ID |
|||
in: query |
|||
name: activity_id |
|||
required: true |
|||
type: integer |
|||
produces: |
|||
- application/json |
|||
responses: |
|||
"0": |
|||
schema: |
|||
$ref: '#/definitions/models.Invitation' |
|||
type: object |
|||
"404": |
|||
description: 参数不存在 |
|||
schema: |
|||
type: string |
|||
"405": |
|||
description: 用户不存在 |
|||
schema: |
|||
type: string |
|||
summary: InviteEnvelope |
|||
tags: |
|||
- invite envelope |
|||
/Client/TugOfWarCtl/shake: |
|||
get: |
|||
consumes: |
|||
- application/json |
|||
description: shake bahe activity |
|||
parameters: |
|||
- description: Bahe Activity ID |
|||
in: query |
|||
name: bahe_activity_id |
|||
required: true |
|||
type: integer |
|||
produces: |
|||
- application/json |
|||
responses: |
|||
"0": |
|||
schema: |
|||
$ref: '#/definitions/models.BaheTeam' |
|||
type: object |
|||
"404": |
|||
description: 参数不存在 |
|||
schema: |
|||
type: string |
|||
"405": |
|||
description: 用户不存在 |
|||
schema: |
|||
$ref: '#/definitions/string' |
|||
type: object |
|||
summary: tug war |
|||
tags: |
|||
- tug war |
|||
/Client/TugOfWarCtl/status: |
|||
get: |
|||
consumes: |
|||
- application/json |
|||
description: get current status |
|||
parameters: |
|||
- description: Bahe Activity ID |
|||
in: query |
|||
name: bahe_activity_id |
|||
required: true |
|||
type: integer |
|||
produces: |
|||
- application/json |
|||
responses: |
|||
"0": |
|||
schema: |
|||
$ref: '#/definitions/models.TugOfWar' |
|||
type: object |
|||
"503": |
|||
description: 参数不存在 |
|||
schema: |
|||
type: string |
|||
"504": |
|||
description: 用户不存在 |
|||
schema: |
|||
$ref: '#/definitions/string' |
|||
type: object |
|||
summary: client tug war |
|||
tags: |
|||
- client tug war |
|||
/Pc/ActivityCtl/list: |
|||
get: |
|||
consumes: |
|||
- application/json |
|||
description: get all area store |
|||
produces: |
|||
- application/json |
|||
responses: |
|||
"200": |
|||
description: success |
|||
schema: |
|||
type: string |
|||
summary: activity |
|||
tags: |
|||
- pc |
|||
/Pc/AuctionCtl/startAuction: |
|||
get: |
|||
consumes: |
|||
- application/json |
|||
description: 开始竞拍 |
|||
parameters: |
|||
- description: 竞拍id |
|||
in: query |
|||
name: auction_activity_id |
|||
required: true |
|||
type: integer |
|||
produces: |
|||
- application/json |
|||
responses: |
|||
"200": |
|||
description: success |
|||
schema: |
|||
type: string |
|||
summary: auction |
|||
tags: |
|||
- pc |
|||
/Pc/AuctionCtl/stopAuction: |
|||
get: |
|||
consumes: |
|||
- application/json |
|||
description: 结束竞拍 |
|||
parameters: |
|||
- description: 竞拍id |
|||
in: query |
|||
name: auction_activity_id |
|||
required: true |
|||
type: integer |
|||
produces: |
|||
- application/json |
|||
responses: |
|||
"200": |
|||
description: success |
|||
schema: |
|||
type: string |
|||
summary: auction |
|||
tags: |
|||
- pc |
|||
/Pc/WsCtl/ops: |
|||
get: |
|||
consumes: |
|||
- application/json |
|||
description: get current operation |
|||
parameters: |
|||
- description: Activity ID |
|||
in: query |
|||
name: activity_id |
|||
required: true |
|||
type: integer |
|||
produces: |
|||
- application/json |
|||
responses: |
|||
"0": |
|||
schema: |
|||
items: |
|||
$ref: '#/definitions/models.CustomerOperation' |
|||
type: array |
|||
"503": |
|||
description: 参数不存在 |
|||
schema: |
|||
type: string |
|||
"504": |
|||
description: 用户不存在 |
|||
schema: |
|||
$ref: '#/definitions/string' |
|||
type: object |
|||
summary: ws |
|||
tags: |
|||
- ws |
|||
/Pc/WsCtl/saveOp: |
|||
post: |
|||
consumes: |
|||
- application/json |
|||
description: save operation |
|||
parameters: |
|||
- description: 操作内容 |
|||
in: query |
|||
name: operation |
|||
required: true |
|||
type: string |
|||
produces: |
|||
- application/json |
|||
responses: |
|||
"0": |
|||
description: success |
|||
schema: |
|||
type: string |
|||
"503": |
|||
description: 参数不存在 |
|||
schema: |
|||
type: string |
|||
"504": |
|||
description: 用户不存在 |
|||
schema: |
|||
$ref: '#/definitions/string' |
|||
type: object |
|||
summary: ws |
|||
tags: |
|||
- ws |
|||
swagger: "2.0" |
Write
Preview
Loading…
Cancel
Save
Reference in new issue