You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2721 lines
86 KiB

6 months ago
// Code generated by swaggo/swag. DO NOT EDIT
package docs
import "github.com/swaggo/swag"
const docTemplate = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"contact": {},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/base/authUrl": {
"get": {
"security": [
{
"Bearer": []
}
],
"tags": [
"auth"
],
"summary": "获取第三方登录信息[v1.0.0]",
"parameters": [
{
"type": "string",
"description": "应用id",
"name": "appid",
"in": "query"
},
{
"type": "string",
"description": "客户端 ios android web",
"name": "client",
"in": "query"
},
{
"type": "string",
"description": "平台 google facebook twitter tiktok",
"name": "platform",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/base/authorized": {
"post": {
"tags": [
"auth"
],
"summary": "授权登录[v1.0.0]",
"parameters": [
{
"description": "email,password...",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UserAuthorized"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/base/brochure": {
"get": {
"tags": [
"tools"
],
"summary": "隐私协议单页",
"parameters": [
{
"type": "string",
"name": "type",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/base/chain": {
"get": {
"tags": [
"Chain"
],
"summary": "获取区块链数据",
"parameters": [
{
"type": "string",
"description": "区块/合约hash",
"name": "hash",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/response.ChainResp"
}
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/base/login": {
"post": {
"security": [
{
"Bearer": []
}
],
"tags": [
"auth"
],
"summary": "普通登录[v1.0.0]",
"parameters": [
{
"description": "email,password...",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UserLogin"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/base/provider": {
"get": {
"security": [
{
"Bearer": []
}
],
"tags": [
"auth"
],
"summary": "获取第三方登录列表[v1.0.0]",
"parameters": [
{
"type": "string",
"description": "应用id",
"name": "appid",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/base/register": {
"post": {
"tags": [
"auth"
],
"summary": "注册[v1.0.0]",
"parameters": [
{
"description": "email,password...",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UserRegister"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/base/sendEmail": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"tools"
],
"summary": "发送邮件验证码[v1.0.0]",
"parameters": [
{
"description": "phone,type",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.SendEmail"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/base/sendMessage": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"tools"
],
"summary": "发送短信验证码[v1.0.0]",
"parameters": [
{
"description": "phone,type",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.SendMessage"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/global/address": {
"get": {
"security": [
{
"Bearer": []
}
],
"tags": [
"公用-收货地址"
],
"summary": "获取用户收货地址列表 [v1.0]",
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
},
"put": {
"security": [
{
"Bearer": []
}
],
"tags": [
"公用-收货地址"
],
"summary": "修改收货地址 [v1.0]",
"parameters": [
{
"description": "data...",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/model.Address"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
},
"post": {
"security": [
{
"Bearer": []
}
],
"tags": [
"公用-收货地址"
],
"summary": "添加收货地址 [v1.0]",
"parameters": [
{
"description": "data...",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/dto.CreateAddressRequest"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"tags": [
"公用-收货地址"
],
"summary": "删除收货地址 [v1.0]",
"parameters": [
{
"description": "data...",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/global.BASE_ID"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/global/payment-methods": {
"get": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "获取支付方式列表",
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/model.PaymentMethod"
}
}
}
}
}
},
"/global/usSelect": {
"get": {
"security": [
{
"Bearer": []
}
],
"tags": [
"公用-收货地址"
],
"summary": "美国地区选择器 [v1.0]",
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/goods/collect": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"tags": [
"goods"
],
"summary": "收藏/取消收藏商品 [v1.0]",
"parameters": [
{
"description": "params",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/request.SpuNo"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": {}}",
"schema": {
"type": "string"
}
}
}
}
},
"/goods/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"tags": [
"goods"
],
"summary": "获取商品详情",
"parameters": [
{
"type": "string",
"description": "领取任务id",
"name": "claim_no",
"in": "query"
},
{
"type": "integer",
"description": "商品id",
"name": "id",
"in": "query"
},
{
"type": "string",
"description": "spu_no",
"name": "spu_no",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": {}}",
"schema": {
"$ref": "#/definitions/model.TbGoodsDetail"
}
}
}
}
},
"/influencer/base/brochure": {
"get": {
"tags": [
"tools"
],
"summary": "隐私协议单页",
"parameters": [
{
"type": "string",
"name": "type",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/address": {
"put": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "修改订单收货信息",
"parameters": [
{
"description": "data...",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/request.UpdateOrderAddress"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"type": "string"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/checkOrder": {
"get": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "订单支付完成页确认订单",
"parameters": [
{
"type": "string",
"name": "token",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"type": "string"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/create": {
"post": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "下单-payment",
"parameters": [
{
"description": "data...",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/request.CreateOrderParams"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Order"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/data": {
"get": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "获取订单数据",
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.OrderData"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/detail": {
"get": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "获取订单详情",
"parameters": [
{
"type": "string",
"description": "订单号",
"name": "orderID",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/model.OrderDetail"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/goods/snapshot": {
"get": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "获取订单商品快照",
"parameters": [
{
"type": "string",
"description": "订单号",
"name": "orderID",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/model.OrderGoodsDetail"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/list": {
"get": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "获取订单列表",
"parameters": [
{
"type": "string",
"description": "网红码?",
"name": "code",
"in": "query"
},
{
"type": "string",
"description": "订单号",
"name": "orderID",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "每页大小",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "订单状态 1-待付款 2-待发货 3-已发货 4-已完成 5-已取消 10:退款",
"name": "status",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/model.OrderList"
}
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/order": {
"delete": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "删除订单",
"parameters": [
{
"description": "data...",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/request.DeleteUserORder"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"type": "string"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/orderPay": {
"post": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "再次调起支付-payment",
"parameters": [
{
"description": "data...",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/request.OrderPay"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Order"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/orderStatus": {
"put": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "修改订单状态(取消订单,确认收货订单)",
"parameters": [
{
"description": "data...",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/request.UpdateUserOrderStatus"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"type": "string"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/postSale": {
"get": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "获取订单申请退款/退货详情",
"parameters": [
{
"type": "integer",
"description": "id",
"name": "id",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/model.OrderPostSale"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
},
"post": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "订单申请退款/退货",
"parameters": [
{
"description": "data...",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/request.PostSaleParams"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"type": "string"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
},
"delete": {
"security": [
{
"Bearer": []
}
],
"tags": [
"客户端-订单"
],
"summary": "订单取消退款/退货",
"parameters": [
{
"description": "data...",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/request.IdReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 0, \"data\": [...]}",
"schema": {
"type": "string"
}
},
"201": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/user/appeal": {
"post": {
"security": [
{
"Bearer": []
}
],
"tags": [
"user"
],
"summary": "购买申诉[v1.0.0]",
"parameters": [
{
"description": "respon",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UserAppeal"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/user/email": {
"put": {
"security": [
{
"Bearer": []
}
],
"tags": [
"user"
],
"summary": "绑定邮箱[v1.0.0]",
"parameters": [
{
"description": "email",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UserEmail"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 1, \"message\": \"\"}",
"schema": {
"type": "string"
}
}
}
}
}
},
"definitions": {
"dto.CreateAddressRequest": {
"type": "object",
"properties": {
"bldg": {
"type": "string"
},
"city": {
"type": "string"
},
"default": {
"type": "integer"
},
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"phone": {
"type": "string"
},
"state": {
"type": "string"
},
"street": {
"type": "string"
},
"zipCode": {
"type": "string"
}
}
},
"global.BASE_ID": {
"type": "object",
"properties": {
"id": {
"description": "主键",
"type": "integer"
}
}
},
"model.Address": {
"type": "object",
"properties": {
"bldg": {
"description": "apt,ste,bldg",
"type": "string"
},
"city": {
"description": "city",
"type": "string"
},
"createdAt": {
"description": "创建时间",
"type": "string"
},
"default": {
"description": "是否默认地址 1-是 2-否",
"type": "integer"
},
"firstName": {
"description": "first name",
"type": "string"
},
"id": {
"description": "主键ID",
"type": "integer"
},
"lastName": {
"description": "last name",
"type": "string"
},
"phone": {
"description": "手机号",
"type": "string"
},
"platform": {
"description": "平台 saller(买家端) / customer(客户端) / influencer(网红端)",
"type": "string"
},
"state": {
"description": "state",
"type": "string"
},
"street": {
"description": "street",
"type": "string"
},
"updatedAt": {
"description": "更新时间",
"type": "string"
},
"userId": {
"type": "string"
},
"zipCode": {
"description": "zip code",
"type": "string"
}
}
},
"model.BillView": {
"type": "object",
"properties": {
"order_id": {
"description": "订单编号",
"type": "string"
},
"transaction_id": {
"description": "交易编号",
"type": "string"
}
}
},
"model.Breadcrumb": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"is_leaf": {
"description": "是否叶子分类",
"type": "boolean"
},
"name": {
"type": "string"
},
"pid": {
"description": "父id",
"type": "integer"
}
}
},
"model.Chain": {
"type": "object",
"properties": {
"address": {
"description": "合约地址",
"type": "string"
}
}
},
"model.OrderAddress": {
"type": "object",
"properties": {
"address_id": {
"description": "用户地址id",
"type": "integer"
},
"bldg": {
"description": "apt,ste,bldg",
"type": "string"
},
"city": {
"description": "city",
"type": "string"
},
"createdAt": {
"description": "创建时间",
"type": "string"
},
"default": {
"description": "是否默认地址 1-是 2-否",
"type": "integer"
},
"firstName": {
"description": "first name",
"type": "string"
},
"id": {
"description": "主键ID",
"type": "integer"
},
"lastName": {
"description": "last name",
"type": "string"
},
"orderID": {
"type": "string"
},
"phone": {
"description": "手机号",
"type": "string"
},
"platform": {
"description": "平台 saller(买家端) / customer(客户端) / influencer(网红端)",
"type": "string"
},
"state": {
"description": "state",
"type": "string"
},
"street": {
"description": "street",
"type": "string"
},
"updatedAt": {
"description": "更新时间",
"type": "string"
},
"userId": {
"type": "string"
},
"zipCode": {
"description": "zip code",
"type": "string"
}
}
},
"model.OrderDeliver": {
"type": "object",
"properties": {
"courier": {
"description": "快递公司",
"type": "string"
},
"courierLink": {
"description": "快递链接",
"type": "string"
},
"courierNumber": {
"description": "快递单号",
"type": "string"
},
"createdAt": {
"description": "创建时间",
"type": "string"
},
"id": {
"description": "主键ID",
"type": "integer"
},
"orderID": {
"description": "订单号",
"type": "string"
},
"track_id": {
"description": "track表id",
"type": "integer"
},
"updatedAt": {
"description": "更新时间",
"type": "string"
}
}
},
"model.OrderDetail": {
"type": "object",
"properties": {
"address": {
"description": "地址",
"allOf": [
{
"$ref": "#/definitions/model.OrderAddress"
}
]
},
"bill": {
"description": "交易信息",
"allOf": [
{
"$ref": "#/definitions/model.BillView"
}
]
},
"captureID": {
"description": "paypal收款确认id",
"type": "string"
},
"chain": {
"description": "区块链",
"allOf": [
{
"$ref": "#/definitions/model.Chain"
}
]
},
"code": {
"description": "网红领取任务码",
"type": "string"
},
"commodID": {
"description": "商品id",
"type": "integer"
},
"confirmTime": {
"description": "收货时间",
"type": "string"
},
"createdAt": {
"description": "创建时间",
"type": "string"
},
"deliver": {
"description": "发货信息",
"allOf": [
{
"$ref": "#/definitions/model.OrderDeliver"
}
]
},
"express_status": {
"description": "物流状态 1:已签收",
"type": "integer"
},
"express_time": {
"description": "已签收时间",
"type": "string"
},
"goods": {
"description": "商品信息",
"allOf": [
{
"$ref": "#/definitions/model.OrderGoodsDetail"
}
]
},
"id": {
"description": "主键ID",
"type": "integer"
},
"next_countdown": {
"description": "下阶段倒计时",
"type": "integer"
},
"number": {
"description": "数量",
"type": "integer"
},
"orderID": {
"description": "订单号",
"type": "string"
},
"paidPrice": {
"description": "实付价格",
"type": "number"
},
"payMode": {
"description": "支付方式 1-paypal",
"type": "integer"
},
"payTime": {
"description": "付款时间",
"type": "string"
},
"paypalID": {
"description": "paypal订单号",
"type": "string"
},
"platform": {
"description": "购买平台",
"type": "string"
},
"postSale": {
"description": "售后信息",
"allOf": [
{
"$ref": "#/definitions/model.PostSale"
}
]
},
"price": {
"description": "商品价格",
"type": "number"
},
"seller": {
"description": "卖家信息",
"allOf": [
{
"$ref": "#/definitions/model.SellerUserDesc"
}
]
},
"sendTime": {
"description": "发货时间",
"type": "string"
},
"sku_id": {
"description": "商品规格编号",
"type": "integer"
},
"sku_no": {
"description": "商品规格编号",
"type": "string"
},
"status": {
"description": "订单状态 1-待付款 2-待发货 3-已发货 4-已完成 5-已取消",
"type": "integer"
},
"store": {
"description": "店铺信息",
"allOf": [
{
"$ref": "#/definitions/model.SellerStoreInfo"
}
]
},
"store_no": {
"description": "店铺编号",
"type": "string"
},
"type": {
"description": "类型 1-普通订单 2-预售订单",
"type": "integer"
},
"updatedAt": {
"description": "更新时间",
"type": "string"
},
"userID": {
"description": "用户id",
"type": "string"
}
}
},
"model.OrderGoodsDetail": {
"type": "object",
"properties": {
"attributes": {
"description": "规格详情",
"type": "array",
"items": {
"$ref": "#/definitions/model.TbAttributeWithValues"
}
},
"content": {
"description": "详情",
"type": "string"
},
"content_text": {
"description": "详情-文字",
"type": "string"
},
"cover": {
"description": "封面图",
"type": "string"
},
"createdAt": {
"description": "创建时间",
"type": "string"
},
"goods_specs": {
"description": "规格",
"type": "array",
"items": {
"$ref": "#/definitions/model.TbOrderGoodsSpecsDetail"
}
},
"id": {
"description": "主键ID",
"type": "integer"
},
"images": {
"description": "图片",
"type": "string"
},
"orderID": {
"description": "订单id",
"type": "string"
},
"price_max": {
"description": "最高规格价格",
"type": "number"
},
"price_min": {
"description": "最低规格价格",
"type": "number"
},
"retail_price": {
"description": "吊牌价(零售指导价)",
"type": "number"
},
"sku_no": {
"description": "商品规格编号",
"type": "string"
},
"specs": {
"description": "规格",
"type": "string"
},
"spu_no": {
"description": "编号",
"type": "string"
},
"store_no": {
"description": "店铺编号",
"type": "string"
},
"title": {
"description": "名称",
"type": "string"
},
"title_eng": {
"description": "英文名称",
"type": "string"
},
"updatedAt": {
"description": "更新时间",
"type": "string"
}
}
},
"model.OrderList": {
"type": "object",
"properties": {
"captureID": {
"description": "paypal收款确认id",
"type": "string"
},
"code": {
"description": "网红领取任务码",
"type": "string"
},
"commodID": {
"description": "商品id",
"type": "integer"
},
"confirmTime": {
"description": "收货时间",
"type": "string"
},
"createdAt": {
"description": "创建时间",
"type": "string"
},
"express_status": {
"description": "物流状态 1:已签收",
"type": "integer"
},
"express_time": {
"description": "已签收时间",
"type": "string"
},
"goods": {
"description": "商品信息",
"allOf": [
{
"$ref": "#/definitions/model.OrderGoodsDetail"
}
]
},
"id": {
"description": "主键ID",
"type": "integer"
},
"next_countdown": {
"description": "下阶段倒计时",
"type": "integer"
},
"number": {
"description": "数量",
"type": "integer"
},
"orderID": {
"description": "订单号",
"type": "string"
},
"paidPrice": {
"description": "实付价格",
"type": "number"
},
"payMode": {
"description": "支付方式 1-paypal",
"type": "integer"
},
"payTime": {
"description": "付款时间",
"type": "string"
},
"paypalID": {
"description": "paypal订单号",
"type": "string"
},
"platform": {
"description": "购买平台",
"type": "string"
},
"postSale": {
"description": "售后信息",
"allOf": [
{
"$ref": "#/definitions/model.PostSale"
}
]
},
"price": {
"description": "商品价格",
"type": "number"
},
"sendTime": {
"description": "发货时间",
"type": "string"
},
"sku_id": {
"description": "商品规格编号",
"type": "integer"
},
"sku_no": {
"description": "商品规格编号",
"type": "string"
},
"status": {
"description": "订单状态 1-待付款 2-待发货 3-已发货 4-已完成 5-已取消",
"type": "integer"
},
"store_no": {
"description": "店铺编号",
"type": "string"
},
"type": {
"description": "类型 1-普通订单 2-预售订单",
"type": "integer"
},
"updatedAt": {
"description": "更新时间",
"type": "string"
},
"userID": {
"description": "用户id",
"type": "string"
}
}
},
"model.OrderPostSale": {
"type": "object",
"properties": {
"amount": {
"description": "退款金额",
"type": "number"
},
"createdAt": {
"description": "创建时间",
"type": "string"
},
"examine_time": {
"description": "审核时间",
"type": "string"
},
"id": {
"description": "主键ID",
"type": "integer"
},
"images": {
"description": "图片",
"type": "string"
},
"orderId": {
"description": "订单号",
"type": "string"
},
"reason": {
"description": "退款原因",
"type": "string"
},
"refundStatus": {
"description": "退款状态 1:退款中 2:退款成功 3:退款失败",
"type": "integer"
},
"refund_time": {
"description": "退款时间",
"type": "string"
},
"remark": {
"description": "原因",
"type": "string"
},
"status": {
"description": "处理状态 1:已提交 2:已处理 3:已拒绝 4:已撤回",
"type": "integer"
},
"store_no": {
"description": "店铺编号",
"type": "string"
},
"type": {
"description": "售后类型 1:仅退款",
"type": "integer"
},
"updatedAt": {
"description": "更新时间",
"type": "string"
},
"userId": {
"description": "用户id",
"type": "string"
},
"videos": {
"description": "视频",
"type": "string"
}
}
},
"model.PaymentMethod": {
"type": "object",
"properties": {
"logo": {
"description": "logo",
"type": "string"
},
"name": {
"description": "名称",
"type": "string"
},
"type": {
"description": "支付类型",
"type": "string"
},
"value": {
"description": "标识值",
"type": "string"
}
}
},
"model.PostSale": {
"type": "object",
"properties": {
"created_at": {
"description": "创建时间",
"type": "string"
},
"examine_time": {
"description": "审核时间",
"type": "string"
},
"id": {
"description": "id",
"type": "integer"
},
"orderId": {
"description": "订单id",
"type": "string"
},
"refundStatus": {
"description": "退款状态 1:退款中 2:退款成功 3:退款失败",
"type": "integer"
},
"refund_time": {
"description": "退款时间",
"type": "string"
},
"remark": {
"description": "审核原因",
"type": "string"
},
"status": {
"description": "处理状态 1:已提交 2:已处理 3:已拒绝 4:已撤回",
"type": "integer"
}
}
},
"model.ProviderSimple": {
"type": "object",
"properties": {
"code": {
"description": "提供者代码 google facebook twitter tiktok",
"type": "string"
},
"logo": {
"description": "提供者logo",
"type": "string"
},
"name": {
"description": "提供者名称",
"type": "string"
}
}
},
"model.SellerStoreInfo": {
"type": "object",
"properties": {
"email": {
"description": "店铺联系email(注册账号email)",
"type": "string"
},
"store_no": {
"description": "店铺编号",
"type": "string"
},
"type": {
"description": "1:个人店铺",
"type": "integer"
}
}
},
"model.SellerUserDesc": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
}
},
"model.TbAttributeDetail": {
"type": "object",
"properties": {
"attribute_id": {
"description": "规格属性id",
"type": "integer"
},
"value": {
"type": "string"
},
"value_id": {
"type": "integer"
}
}
},
"model.TbAttributeValueItem": {
"type": "object",
"properties": {
"id": {
"description": "id",
"type": "integer"
},
"image": {
"description": "图片",
"type": "string"
},
"name": {
"description": "规格属性值",
"type": "string"
}
}
},
"model.TbAttributeWithValues": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"$ref": "#/definitions/model.TbAttributeValueItem"
}
}
}
},
"model.TbGoodsDetail": {
"type": "object",
"properties": {
"attributes": {
"description": "规格详情",
"type": "array",
"items": {
"$ref": "#/definitions/model.TbAttributeWithValues"
}
},
"breadcrumb": {
"description": "分类面包屑",
"type": "array",
"items": {
"$ref": "#/definitions/model.Breadcrumb"
}
},
"category_id": {
"description": "分类id",
"type": "integer"
},
"collect_status": {
"description": "收藏状态 true:已收藏 false:未收藏",
"type": "boolean"
},
"content": {
"description": "商品详情",
"type": "string"
},
"content_text": {
"description": "详情-文字",
"type": "string"
},
"cover": {
"type": "string"
},
"createdAt": {
"description": "创建时间",
"type": "string"
},
"id": {
"description": "主键ID",
"type": "integer"
},
"images": {
"description": "图片",
"type": "string"
},
"list_price": {
"description": "列表价格",
"type": "number"
},
"online": {
"description": "上下架状态 on/off",
"type": "string"
},
"price_max": {
"description": "最高规格价格",
"type": "number"
},
"price_min": {
"description": "最低规格价格",
"type": "number"
},
"retail_price": {
"description": "吊牌价(零售指导价)",
"type": "number"
},
"specs": {
"description": "规格",
"type": "array",
"items": {
"$ref": "#/definitions/model.TbGoodsSpecsDetail"
}
},
"spu_no": {
"description": "编号",
"type": "string"
},
"tags": {
"description": "标签",
"type": "string"
},
"title": {
"description": "标题",
"type": "string"
},
"title_eng": {
"description": "英文标题",
"type": "string"
},
"updatedAt": {
"description": "更新时间",
"type": "string"
}
}
},
"model.TbGoodsSpecsDetail": {
"type": "object",
"properties": {
"attributes": {
"description": "规格详情",
"type": "array",
"items": {
"$ref": "#/definitions/model.TbAttributeDetail"
}
},
"createdAt": {
"description": "创建时间",
"type": "string"
},
"goods_id": {
"type": "integer"
},
"goods_no": {
"description": "商品编号",
"type": "string"
},
"id": {
"description": "主键ID",
"type": "integer"
},
"image": {
"description": "规格图片url",
"type": "string"
},
"price": {
"description": "价格",
"type": "number"
},
"sku_no": {
"description": "商品编码",
"type": "string"
},
"specs": {
"description": "规格",
"type": "string"
},
"stock": {
"description": "库存",
"type": "integer"
},
"updatedAt": {
"description": "更新时间",
"type": "string"
}
}
},
"model.TbOrderGoodsSpecsDetail": {
"type": "object",
"properties": {
"code": {
"description": "attribute定位标识",
"type": "string"
},
"goods_id": {
"type": "integer"
},
"goods_no": {
"description": "商品编号",
"type": "string"
},
"image": {
"description": "规格图片url",
"type": "string"
},
"orderGoodsId": {
"type": "integer"
},
"price": {
"description": "价格",
"type": "number"
},
"sku_no": {
"description": "商品编码",
"type": "string"
},
"specs": {
"description": "规格",
"type": "string"
}
}
},
"model.UsCitys": {
"type": "object",
"properties": {
"city": {
"type": "string"
},
"county": {
"type": "string"
},
"id": {
"type": "integer"
},
"idState": {
"type": "integer"
}
}
},
"model.UsSelect": {
"type": "object",
"properties": {
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/model.UsCitys"
}
},
"id": {
"type": "integer"
},
"stateCode": {
"type": "string"
},
"stateName": {
"type": "string"
}
}
},
"model.UserSimple": {
"type": "object",
"properties": {
"avatar": {
"description": "头像",
"type": "string"
},
"nick_name": {
"description": "昵称",
"type": "string"
},
"platform": {
"description": "平台",
"type": "array",
"items": {
"$ref": "#/definitions/request.Platform"
}
},
"tags": {
"description": "个人标签",
"type": "string"
},
"uuid": {
"description": "用户uuid编码",
"type": "string"
}
}
},
"request.CreateOrderParams": {
"type": "object",
"properties": {
"addressID": {
"description": "收货地址id",
"type": "integer"
},
"code": {
"description": "网红码?",
"type": "string"
},
"number": {
"description": "数量",
"type": "integer"
},
"payMode": {
"description": "支付平台 1-paypal",
"type": "integer"
},
"payment_method": {
"description": "支付平台 /global/payment-methods接口返回的value",
"type": "string"
},
"platform": {
"description": "下单平台 数据字典release_channel",
"type": "string"
},
"skuID": {
"description": "商品规格id",
"type": "integer"
}
}
},
"request.DeleteUserORder": {
"type": "object",
"properties": {
"orderID": {
"description": "订单号",
"type": "string"
}
}
},
"request.IdReq": {
"type": "object",
"properties": {
"id": {
"description": "id",
"type": "integer"
}
}
},
"request.OrderPay": {
"type": "object",
"properties": {
"orderID": {
"description": "订单号",
"type": "string"
},
"payMode": {
"description": "支付渠道 1:Alipay",
"type": "integer"
},
"pay_method": {
"description": "支付方式 /global/payment-methods接口返回的value",
"type": "string"
}
}
},
"request.Platform": {
"type": "object",
"properties": {
"created_at": {
"description": "创建时间",
"type": "string"
},
"image": {
"description": "图片",
"type": "string"
},
"is_auth": {
"description": "是否认证",
"type": "boolean"
},
"platform": {
"description": "平台",
"type": "string"
},
"url": {
"description": "主页地址",
"type": "string"
}
}
},
"request.PostSaleParams": {
"type": "object",
"properties": {
"amount": {
"description": "退款金额",
"type": "number"
},
"images": {
"description": "图片",
"type": "string"
},
"orderId": {
"description": "订单id",
"type": "string"
},
"reason": {
"description": "原因选项",
"type": "string"
},
"videos": {
"description": "视频",
"type": "string"
}
}
},
"request.SendEmail": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
}
},
"request.SendMessage": {
"type": "object",
"properties": {
"country_code": {
"description": "用户手机号国家代码 国际区号 86 中国 1美国",
"type": "string"
},
"phone": {
"type": "string"
},
"type": {
"description": "1:登录验证码 2-解绑 3-绑定 4-提现",
"type": "integer"
}
}
},
"request.SpuNo": {
"type": "object",
"properties": {
"spu_no": {
"description": "spu_no",
"type": "string"
}
}
},
"request.UpdateOrderAddress": {
"type": "object",
"properties": {
"bldg": {
"type": "string"
},
"city": {
"type": "string"
},
"firstName": {
"description": "first name",
"type": "string"
},
"lastName": {
"description": "last name",
"type": "string"
},
"orderID": {
"description": "订单号",
"type": "string"
},
"phone": {
"description": "手机号",
"type": "string"
},
"state": {
"type": "string"
},
"street": {
"description": "街道",
"type": "string"
},
"zipCode": {
"type": "string"
}
}
},
"request.UpdateUserOrderStatus": {
"type": "object",
"properties": {
"orderID": {
"description": "订单号",
"type": "string"
},
"status": {
"description": "订单状态 4-已完成 5-已取消",
"type": "integer"
}
}
},
"request.UserAppeal": {
"type": "object",
"properties": {
"contact": {
"description": "联系方式",
"type": "string"
},
"images": {
"description": "图片",
"type": "string"
},
"respon": {
"description": "申诉内容",
"type": "string"
}
}
},
"request.UserAuthorized": {
"type": "object",
"properties": {
"appid": {
"description": "应用id",
"type": "string"
},
"client": {
"description": "客户端 ios android web",
"type": "string"
},
"code": {
"description": "授权码",
"type": "string"
},
"platform": {
"description": "平台 google facebook twitter tiktok",
"type": "string"
},
"token": {
"description": "token",
"type": "string"
},
"uuid": {
"type": "string"
}
}
},
"request.UserEmail": {
"type": "object",
"properties": {
"code": {
"description": "验证码",
"type": "string"
},
"email": {
"description": "邮箱",
"type": "string"
}
}
},
"request.UserLogin": {
"type": "object",
"properties": {
"appid": {
"description": "应用id",
"type": "string"
},
"code": {
"description": "验证码",
"type": "string"
},
"country_code": {
"description": "用户手机号国家代码 国际区号 86 中国 1美国",
"type": "string"
},
"email": {
"description": "邮箱",
"type": "string"
},
"password": {
"description": "密码",
"type": "string"
},
"phone": {
"description": "手机号",
"type": "string"
},
"source": {
"description": "用户来源 facebook twitter tiktok youtube",
"type": "string"
},
"type": {
"description": "1-手机号 2-邮箱",
"type": "string"
}
}
},
"request.UserRegister": {
"type": "object",
"properties": {
"appid": {
"description": "应用id",
"type": "string"
},
"avatar": {
"description": "头像",
"type": "string"
},
"code": {
"description": "验证码",
"type": "string"
},
"email": {
"description": "邮箱",
"type": "string"
},
"nickname": {
"description": "昵称",
"type": "string"
},
"source": {
"description": "用户来源 facebook twitter tiktok youtube",
"type": "string"
}
}
},
"response.ChainResp": {
"type": "object",
"properties": {
"block_adress": {
"description": "所在区块",
"type": "string"
},
"block_height": {
"description": "块高度",
"type": "integer"
},
"hash": {
"description": "交易哈希",
"type": "string"
},
"time": {
"description": "上链时间",
"type": "string"
}
}
},
"response.Link": {
"type": "object",
"properties": {
"enctype": {
"type": "string"
},
"href": {
"type": "string"
},
"method": {
"type": "string"
},
"rel": {
"type": "string"
}
}
},
"response.LoginResponse": {
"type": "object",
"properties": {
"expiresAt": {
"type": "integer"
},
"token": {
"type": "string"
},
"user": {
"$ref": "#/definitions/model.UserSimple"
}
}
},
"response.Money": {
"type": "object",
"properties": {
"currency_code": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"response.Order": {
"type": "object",
"properties": {
"create_time": {
"type": "string"
},
"id": {
"type": "string"
},
"intent": {
"type": "string"
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/response.Link"
}
},
"purchase_units": {
"type": "array",
"items": {
"$ref": "#/definitions/response.PurchaseUnit"
}
},
"status": {
"type": "string"
},
"update_time": {
"type": "string"
}
}
},
"response.OrderData": {
"type": "object",
"properties": {
"all": {
"description": "全部",
"type": "integer"
},
"cancel": {
"description": "已取消",
"type": "integer"
},
"finished": {
"description": "已完成",
"type": "integer"
},
"post_sale": {
"description": "退货",
"type": "integer"
},
"shipped": {
"description": "已发货",
"type": "integer"
},
"unpaid": {
"description": "未支付",
"type": "integer"
},
"unship": {
"description": "待发货",
"type": "integer"
}
}
},
"response.PurchaseUnit": {
"type": "object",
"properties": {
"amount": {
"$ref": "#/definitions/response.PurchaseUnitAmount"
},
"reference_id": {
"type": "string"
}
}
},
"response.PurchaseUnitAmount": {
"type": "object",
"properties": {
"breakdown": {
"$ref": "#/definitions/response.PurchaseUnitAmountBreakdown"
},
"currency_code": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"response.PurchaseUnitAmountBreakdown": {
"type": "object",
"properties": {
"discount": {
"$ref": "#/definitions/response.Money"
},
"handling": {
"$ref": "#/definitions/response.Money"
},
"insurance": {
"$ref": "#/definitions/response.Money"
},
"item_total": {
"$ref": "#/definitions/response.Money"
},
"shipping": {
"$ref": "#/definitions/response.Money"
},
"shipping_discount": {
"$ref": "#/definitions/response.Money"
},
"tax_total": {
"$ref": "#/definitions/response.Money"
}
}
}
},
"securityDefinitions": {
"ApiKeyAuth": {
"type": "apiKey",
"name": "x-token",
"in": "header"
}
}
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "0.0.1",
Host: "",
BasePath: "",
Schemes: []string{},
Title: "Swagger Example API",
Description: "接口文档",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
}
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}