{ "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" } } } } }