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.
1780 lines
41 KiB
1780 lines
41 KiB
definitions:
|
|
dto.CreateAddressRequest:
|
|
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
|
|
type: object
|
|
global.BASE_ID:
|
|
properties:
|
|
id:
|
|
description: 主键
|
|
type: integer
|
|
type: object
|
|
model.Address:
|
|
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
|
|
type: object
|
|
model.BillView:
|
|
properties:
|
|
order_id:
|
|
description: 订单编号
|
|
type: string
|
|
transaction_id:
|
|
description: 交易编号
|
|
type: string
|
|
type: object
|
|
model.Breadcrumb:
|
|
properties:
|
|
id:
|
|
type: integer
|
|
is_leaf:
|
|
description: 是否叶子分类
|
|
type: boolean
|
|
name:
|
|
type: string
|
|
pid:
|
|
description: 父id
|
|
type: integer
|
|
type: object
|
|
model.Chain:
|
|
properties:
|
|
address:
|
|
description: 合约地址
|
|
type: string
|
|
type: object
|
|
model.OrderAddress:
|
|
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
|
|
type: object
|
|
model.OrderDeliver:
|
|
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
|
|
type: object
|
|
model.OrderDetail:
|
|
properties:
|
|
address:
|
|
allOf:
|
|
- $ref: '#/definitions/model.OrderAddress'
|
|
description: 地址
|
|
bill:
|
|
allOf:
|
|
- $ref: '#/definitions/model.BillView'
|
|
description: 交易信息
|
|
captureID:
|
|
description: paypal收款确认id
|
|
type: string
|
|
chain:
|
|
allOf:
|
|
- $ref: '#/definitions/model.Chain'
|
|
description: 区块链
|
|
code:
|
|
description: 网红领取任务码
|
|
type: string
|
|
commodID:
|
|
description: 商品id
|
|
type: integer
|
|
confirmTime:
|
|
description: 收货时间
|
|
type: string
|
|
createdAt:
|
|
description: 创建时间
|
|
type: string
|
|
deliver:
|
|
allOf:
|
|
- $ref: '#/definitions/model.OrderDeliver'
|
|
description: 发货信息
|
|
express_status:
|
|
description: 物流状态 1:已签收
|
|
type: integer
|
|
express_time:
|
|
description: 已签收时间
|
|
type: string
|
|
goods:
|
|
allOf:
|
|
- $ref: '#/definitions/model.OrderGoodsDetail'
|
|
description: 商品信息
|
|
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:
|
|
allOf:
|
|
- $ref: '#/definitions/model.PostSale'
|
|
description: 售后信息
|
|
price:
|
|
description: 商品价格
|
|
type: number
|
|
seller:
|
|
allOf:
|
|
- $ref: '#/definitions/model.SellerUserDesc'
|
|
description: 卖家信息
|
|
sendTime:
|
|
description: 发货时间
|
|
type: string
|
|
sku_id:
|
|
description: 商品规格编号
|
|
type: integer
|
|
sku_no:
|
|
description: 商品规格编号
|
|
type: string
|
|
status:
|
|
description: 订单状态 1-待付款 2-待发货 3-已发货 4-已完成 5-已取消
|
|
type: integer
|
|
store:
|
|
allOf:
|
|
- $ref: '#/definitions/model.SellerStoreInfo'
|
|
description: 店铺信息
|
|
store_no:
|
|
description: 店铺编号
|
|
type: string
|
|
type:
|
|
description: 类型 1-普通订单 2-预售订单
|
|
type: integer
|
|
updatedAt:
|
|
description: 更新时间
|
|
type: string
|
|
userID:
|
|
description: 用户id
|
|
type: string
|
|
type: object
|
|
model.OrderGoodsDetail:
|
|
properties:
|
|
attributes:
|
|
description: 规格详情
|
|
items:
|
|
$ref: '#/definitions/model.TbAttributeWithValues'
|
|
type: array
|
|
content:
|
|
description: 详情
|
|
type: string
|
|
content_text:
|
|
description: 详情-文字
|
|
type: string
|
|
cover:
|
|
description: 封面图
|
|
type: string
|
|
createdAt:
|
|
description: 创建时间
|
|
type: string
|
|
goods_specs:
|
|
description: 规格
|
|
items:
|
|
$ref: '#/definitions/model.TbOrderGoodsSpecsDetail'
|
|
type: array
|
|
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
|
|
type: object
|
|
model.OrderList:
|
|
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:
|
|
allOf:
|
|
- $ref: '#/definitions/model.OrderGoodsDetail'
|
|
description: 商品信息
|
|
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:
|
|
allOf:
|
|
- $ref: '#/definitions/model.PostSale'
|
|
description: 售后信息
|
|
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
|
|
type: object
|
|
model.OrderPostSale:
|
|
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
|
|
refund_time:
|
|
description: 退款时间
|
|
type: string
|
|
refundStatus:
|
|
description: 退款状态 1:退款中 2:退款成功 3:退款失败
|
|
type: integer
|
|
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
|
|
type: object
|
|
model.PaymentMethod:
|
|
properties:
|
|
logo:
|
|
description: logo
|
|
type: string
|
|
name:
|
|
description: 名称
|
|
type: string
|
|
type:
|
|
description: 支付类型
|
|
type: string
|
|
value:
|
|
description: 标识值
|
|
type: string
|
|
type: object
|
|
model.PostSale:
|
|
properties:
|
|
created_at:
|
|
description: 创建时间
|
|
type: string
|
|
examine_time:
|
|
description: 审核时间
|
|
type: string
|
|
id:
|
|
description: id
|
|
type: integer
|
|
orderId:
|
|
description: 订单id
|
|
type: string
|
|
refund_time:
|
|
description: 退款时间
|
|
type: string
|
|
refundStatus:
|
|
description: 退款状态 1:退款中 2:退款成功 3:退款失败
|
|
type: integer
|
|
remark:
|
|
description: 审核原因
|
|
type: string
|
|
status:
|
|
description: 处理状态 1:已提交 2:已处理 3:已拒绝 4:已撤回
|
|
type: integer
|
|
type: object
|
|
model.ProviderSimple:
|
|
properties:
|
|
code:
|
|
description: 提供者代码 google facebook twitter tiktok
|
|
type: string
|
|
logo:
|
|
description: 提供者logo
|
|
type: string
|
|
name:
|
|
description: 提供者名称
|
|
type: string
|
|
type: object
|
|
model.SellerStoreInfo:
|
|
properties:
|
|
email:
|
|
description: 店铺联系email(注册账号email)
|
|
type: string
|
|
store_no:
|
|
description: 店铺编号
|
|
type: string
|
|
type:
|
|
description: 1:个人店铺
|
|
type: integer
|
|
type: object
|
|
model.SellerUserDesc:
|
|
properties:
|
|
email:
|
|
type: string
|
|
type: object
|
|
model.TbAttributeDetail:
|
|
properties:
|
|
attribute_id:
|
|
description: 规格属性id
|
|
type: integer
|
|
value:
|
|
type: string
|
|
value_id:
|
|
type: integer
|
|
type: object
|
|
model.TbAttributeValueItem:
|
|
properties:
|
|
id:
|
|
description: id
|
|
type: integer
|
|
image:
|
|
description: 图片
|
|
type: string
|
|
name:
|
|
description: 规格属性值
|
|
type: string
|
|
type: object
|
|
model.TbAttributeWithValues:
|
|
properties:
|
|
id:
|
|
type: integer
|
|
name:
|
|
type: string
|
|
values:
|
|
items:
|
|
$ref: '#/definitions/model.TbAttributeValueItem'
|
|
type: array
|
|
type: object
|
|
model.TbGoodsDetail:
|
|
properties:
|
|
attributes:
|
|
description: 规格详情
|
|
items:
|
|
$ref: '#/definitions/model.TbAttributeWithValues'
|
|
type: array
|
|
breadcrumb:
|
|
description: 分类面包屑
|
|
items:
|
|
$ref: '#/definitions/model.Breadcrumb'
|
|
type: array
|
|
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: 规格
|
|
items:
|
|
$ref: '#/definitions/model.TbGoodsSpecsDetail'
|
|
type: array
|
|
spu_no:
|
|
description: 编号
|
|
type: string
|
|
tags:
|
|
description: 标签
|
|
type: string
|
|
title:
|
|
description: 标题
|
|
type: string
|
|
title_eng:
|
|
description: 英文标题
|
|
type: string
|
|
updatedAt:
|
|
description: 更新时间
|
|
type: string
|
|
type: object
|
|
model.TbGoodsSpecsDetail:
|
|
properties:
|
|
attributes:
|
|
description: 规格详情
|
|
items:
|
|
$ref: '#/definitions/model.TbAttributeDetail'
|
|
type: array
|
|
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
|
|
type: object
|
|
model.TbOrderGoodsSpecsDetail:
|
|
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
|
|
type: object
|
|
model.UsCitys:
|
|
properties:
|
|
city:
|
|
type: string
|
|
county:
|
|
type: string
|
|
id:
|
|
type: integer
|
|
idState:
|
|
type: integer
|
|
type: object
|
|
model.UsSelect:
|
|
properties:
|
|
children:
|
|
items:
|
|
$ref: '#/definitions/model.UsCitys'
|
|
type: array
|
|
id:
|
|
type: integer
|
|
stateCode:
|
|
type: string
|
|
stateName:
|
|
type: string
|
|
type: object
|
|
model.UserSimple:
|
|
properties:
|
|
avatar:
|
|
description: 头像
|
|
type: string
|
|
nick_name:
|
|
description: 昵称
|
|
type: string
|
|
platform:
|
|
description: 平台
|
|
items:
|
|
$ref: '#/definitions/request.Platform'
|
|
type: array
|
|
tags:
|
|
description: 个人标签
|
|
type: string
|
|
uuid:
|
|
description: 用户uuid编码
|
|
type: string
|
|
type: object
|
|
request.CreateOrderParams:
|
|
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
|
|
type: object
|
|
request.DeleteUserORder:
|
|
properties:
|
|
orderID:
|
|
description: 订单号
|
|
type: string
|
|
type: object
|
|
request.IdReq:
|
|
properties:
|
|
id:
|
|
description: id
|
|
type: integer
|
|
type: object
|
|
request.OrderPay:
|
|
properties:
|
|
orderID:
|
|
description: 订单号
|
|
type: string
|
|
pay_method:
|
|
description: 支付方式 /global/payment-methods接口返回的value
|
|
type: string
|
|
payMode:
|
|
description: 支付渠道 1:Alipay
|
|
type: integer
|
|
type: object
|
|
request.Platform:
|
|
properties:
|
|
created_at:
|
|
description: 创建时间
|
|
type: string
|
|
image:
|
|
description: 图片
|
|
type: string
|
|
is_auth:
|
|
description: 是否认证
|
|
type: boolean
|
|
platform:
|
|
description: 平台
|
|
type: string
|
|
url:
|
|
description: 主页地址
|
|
type: string
|
|
type: object
|
|
request.PostSaleParams:
|
|
properties:
|
|
amount:
|
|
description: 退款金额
|
|
type: number
|
|
images:
|
|
description: 图片
|
|
type: string
|
|
orderId:
|
|
description: 订单id
|
|
type: string
|
|
reason:
|
|
description: 原因选项
|
|
type: string
|
|
videos:
|
|
description: 视频
|
|
type: string
|
|
type: object
|
|
request.SendEmail:
|
|
properties:
|
|
email:
|
|
type: string
|
|
type: object
|
|
request.SendMessage:
|
|
properties:
|
|
country_code:
|
|
description: 用户手机号国家代码 国际区号 86 中国 1美国
|
|
type: string
|
|
phone:
|
|
type: string
|
|
type:
|
|
description: 1:登录验证码 2-解绑 3-绑定 4-提现
|
|
type: integer
|
|
type: object
|
|
request.SpuNo:
|
|
properties:
|
|
spu_no:
|
|
description: spu_no
|
|
type: string
|
|
type: object
|
|
request.UpdateOrderAddress:
|
|
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
|
|
type: object
|
|
request.UpdateUserOrderStatus:
|
|
properties:
|
|
orderID:
|
|
description: 订单号
|
|
type: string
|
|
status:
|
|
description: 订单状态 4-已完成 5-已取消
|
|
type: integer
|
|
type: object
|
|
request.UserAppeal:
|
|
properties:
|
|
contact:
|
|
description: 联系方式
|
|
type: string
|
|
images:
|
|
description: 图片
|
|
type: string
|
|
respon:
|
|
description: 申诉内容
|
|
type: string
|
|
type: object
|
|
request.UserAuthorized:
|
|
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
|
|
type: object
|
|
request.UserEmail:
|
|
properties:
|
|
code:
|
|
description: 验证码
|
|
type: string
|
|
email:
|
|
description: 邮箱
|
|
type: string
|
|
type: object
|
|
request.UserLogin:
|
|
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
|
|
type: object
|
|
request.UserRegister:
|
|
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
|
|
type: object
|
|
response.ChainResp:
|
|
properties:
|
|
block_adress:
|
|
description: 所在区块
|
|
type: string
|
|
block_height:
|
|
description: 块高度
|
|
type: integer
|
|
hash:
|
|
description: 交易哈希
|
|
type: string
|
|
time:
|
|
description: 上链时间
|
|
type: string
|
|
type: object
|
|
response.Link:
|
|
properties:
|
|
enctype:
|
|
type: string
|
|
href:
|
|
type: string
|
|
method:
|
|
type: string
|
|
rel:
|
|
type: string
|
|
type: object
|
|
response.LoginResponse:
|
|
properties:
|
|
expiresAt:
|
|
type: integer
|
|
token:
|
|
type: string
|
|
user:
|
|
$ref: '#/definitions/model.UserSimple'
|
|
type: object
|
|
response.Money:
|
|
properties:
|
|
currency_code:
|
|
type: string
|
|
value:
|
|
type: string
|
|
type: object
|
|
response.Order:
|
|
properties:
|
|
create_time:
|
|
type: string
|
|
id:
|
|
type: string
|
|
intent:
|
|
type: string
|
|
links:
|
|
items:
|
|
$ref: '#/definitions/response.Link'
|
|
type: array
|
|
purchase_units:
|
|
items:
|
|
$ref: '#/definitions/response.PurchaseUnit'
|
|
type: array
|
|
status:
|
|
type: string
|
|
update_time:
|
|
type: string
|
|
type: object
|
|
response.OrderData:
|
|
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
|
|
type: object
|
|
response.PurchaseUnit:
|
|
properties:
|
|
amount:
|
|
$ref: '#/definitions/response.PurchaseUnitAmount'
|
|
reference_id:
|
|
type: string
|
|
type: object
|
|
response.PurchaseUnitAmount:
|
|
properties:
|
|
breakdown:
|
|
$ref: '#/definitions/response.PurchaseUnitAmountBreakdown'
|
|
currency_code:
|
|
type: string
|
|
value:
|
|
type: string
|
|
type: object
|
|
response.PurchaseUnitAmountBreakdown:
|
|
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'
|
|
type: object
|
|
info:
|
|
contact: {}
|
|
description: 接口文档
|
|
title: Swagger Example API
|
|
version: 0.0.1
|
|
paths:
|
|
/base/authUrl:
|
|
get:
|
|
parameters:
|
|
- description: 应用id
|
|
in: query
|
|
name: appid
|
|
type: string
|
|
- description: 客户端 ios android web
|
|
in: query
|
|
name: client
|
|
type: string
|
|
- description: 平台 google facebook twitter tiktok
|
|
in: query
|
|
name: platform
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 获取第三方登录信息[v1.0.0]
|
|
tags:
|
|
- auth
|
|
/base/authorized:
|
|
post:
|
|
parameters:
|
|
- description: email,password...
|
|
in: body
|
|
name: data
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UserAuthorized'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
summary: 授权登录[v1.0.0]
|
|
tags:
|
|
- auth
|
|
/base/brochure:
|
|
get:
|
|
parameters:
|
|
- in: query
|
|
name: type
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: '{"success":true,"data":{},"msg":""}'
|
|
schema:
|
|
type: string
|
|
summary: 隐私协议单页
|
|
tags:
|
|
- tools
|
|
/base/chain:
|
|
get:
|
|
parameters:
|
|
- description: 区块/合约hash
|
|
in: query
|
|
name: hash
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
items:
|
|
$ref: '#/definitions/response.ChainResp'
|
|
type: array
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
summary: 获取区块链数据
|
|
tags:
|
|
- Chain
|
|
/base/login:
|
|
post:
|
|
parameters:
|
|
- description: email,password...
|
|
in: body
|
|
name: data
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UserLogin'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 普通登录[v1.0.0]
|
|
tags:
|
|
- auth
|
|
/base/provider:
|
|
get:
|
|
parameters:
|
|
- description: 应用id
|
|
in: query
|
|
name: appid
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 获取第三方登录列表[v1.0.0]
|
|
tags:
|
|
- auth
|
|
/base/register:
|
|
post:
|
|
parameters:
|
|
- description: email,password...
|
|
in: body
|
|
name: data
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UserRegister'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
summary: 注册[v1.0.0]
|
|
tags:
|
|
- auth
|
|
/base/sendEmail:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
parameters:
|
|
- description: phone,type
|
|
in: body
|
|
name: data
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.SendEmail'
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: '{"success":true,"data":{},"msg":"获取成功"}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- ApiKeyAuth: []
|
|
summary: 发送邮件验证码[v1.0.0]
|
|
tags:
|
|
- tools
|
|
/base/sendMessage:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
parameters:
|
|
- description: phone,type
|
|
in: body
|
|
name: data
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.SendMessage'
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: '{"success":true,"data":{},"msg":"获取成功"}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- ApiKeyAuth: []
|
|
summary: 发送短信验证码[v1.0.0]
|
|
tags:
|
|
- tools
|
|
/global/address:
|
|
delete:
|
|
parameters:
|
|
- description: data...
|
|
in: body
|
|
name: data
|
|
schema:
|
|
$ref: '#/definitions/global.BASE_ID'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 删除收货地址 [v1.0]
|
|
tags:
|
|
- 公用-收货地址
|
|
get:
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 获取用户收货地址列表 [v1.0]
|
|
tags:
|
|
- 公用-收货地址
|
|
post:
|
|
parameters:
|
|
- description: data...
|
|
in: body
|
|
name: data
|
|
schema:
|
|
$ref: '#/definitions/dto.CreateAddressRequest'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 添加收货地址 [v1.0]
|
|
tags:
|
|
- 公用-收货地址
|
|
put:
|
|
parameters:
|
|
- description: data...
|
|
in: body
|
|
name: data
|
|
schema:
|
|
$ref: '#/definitions/model.Address'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 修改收货地址 [v1.0]
|
|
tags:
|
|
- 公用-收货地址
|
|
/global/payment-methods:
|
|
get:
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
items:
|
|
$ref: '#/definitions/model.PaymentMethod'
|
|
type: array
|
|
security:
|
|
- Bearer: []
|
|
summary: 获取支付方式列表
|
|
tags:
|
|
- 客户端-订单
|
|
/global/usSelect:
|
|
get:
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 美国地区选择器 [v1.0]
|
|
tags:
|
|
- 公用-收货地址
|
|
/goods/collect:
|
|
post:
|
|
parameters:
|
|
- description: params
|
|
in: body
|
|
name: data
|
|
schema:
|
|
$ref: '#/definitions/request.SpuNo'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 200, "data": {}}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- ApiKeyAuth: []
|
|
summary: 收藏/取消收藏商品 [v1.0]
|
|
tags:
|
|
- goods
|
|
/goods/detail:
|
|
get:
|
|
parameters:
|
|
- description: 领取任务id
|
|
in: query
|
|
name: claim_no
|
|
type: string
|
|
- description: 商品id
|
|
in: query
|
|
name: id
|
|
type: integer
|
|
- description: spu_no
|
|
in: query
|
|
name: spu_no
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: '{"code": 200, "data": {}}'
|
|
schema:
|
|
$ref: '#/definitions/model.TbGoodsDetail'
|
|
security:
|
|
- ApiKeyAuth: []
|
|
summary: 获取商品详情
|
|
tags:
|
|
- goods
|
|
/influencer/base/brochure:
|
|
get:
|
|
parameters:
|
|
- in: query
|
|
name: type
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: '{"success":true,"data":{},"msg":""}'
|
|
schema:
|
|
type: string
|
|
summary: 隐私协议单页
|
|
tags:
|
|
- tools
|
|
/order/address:
|
|
put:
|
|
parameters:
|
|
- description: data...
|
|
in: body
|
|
name: data
|
|
schema:
|
|
$ref: '#/definitions/request.UpdateOrderAddress'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
type: string
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 修改订单收货信息
|
|
tags:
|
|
- 客户端-订单
|
|
/order/checkOrder:
|
|
get:
|
|
parameters:
|
|
- in: query
|
|
name: token
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
type: string
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 订单支付完成页确认订单
|
|
tags:
|
|
- 客户端-订单
|
|
/order/create:
|
|
post:
|
|
parameters:
|
|
- description: data...
|
|
in: body
|
|
name: data
|
|
schema:
|
|
$ref: '#/definitions/request.CreateOrderParams'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
$ref: '#/definitions/response.Order'
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 下单-payment
|
|
tags:
|
|
- 客户端-订单
|
|
/order/data:
|
|
get:
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
$ref: '#/definitions/response.OrderData'
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 获取订单数据
|
|
tags:
|
|
- 客户端-订单
|
|
/order/detail:
|
|
get:
|
|
parameters:
|
|
- description: 订单号
|
|
in: query
|
|
name: orderID
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
$ref: '#/definitions/model.OrderDetail'
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 获取订单详情
|
|
tags:
|
|
- 客户端-订单
|
|
/order/goods/snapshot:
|
|
get:
|
|
parameters:
|
|
- description: 订单号
|
|
in: query
|
|
name: orderID
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
$ref: '#/definitions/model.OrderGoodsDetail'
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 获取订单商品快照
|
|
tags:
|
|
- 客户端-订单
|
|
/order/list:
|
|
get:
|
|
parameters:
|
|
- description: 网红码?
|
|
in: query
|
|
name: code
|
|
type: string
|
|
- description: 订单号
|
|
in: query
|
|
name: orderID
|
|
type: string
|
|
- description: 页码
|
|
in: query
|
|
name: page
|
|
type: integer
|
|
- description: 每页大小
|
|
in: query
|
|
name: pageSize
|
|
type: integer
|
|
- description: 订单状态 1-待付款 2-待发货 3-已发货 4-已完成 5-已取消 10:退款
|
|
in: query
|
|
name: status
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
items:
|
|
$ref: '#/definitions/model.OrderList'
|
|
type: array
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 获取订单列表
|
|
tags:
|
|
- 客户端-订单
|
|
/order/order:
|
|
delete:
|
|
parameters:
|
|
- description: data...
|
|
in: body
|
|
name: data
|
|
schema:
|
|
$ref: '#/definitions/request.DeleteUserORder'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
type: string
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 删除订单
|
|
tags:
|
|
- 客户端-订单
|
|
/order/orderPay:
|
|
post:
|
|
parameters:
|
|
- description: data...
|
|
in: body
|
|
name: data
|
|
schema:
|
|
$ref: '#/definitions/request.OrderPay'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
$ref: '#/definitions/response.Order'
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 再次调起支付-payment
|
|
tags:
|
|
- 客户端-订单
|
|
/order/orderStatus:
|
|
put:
|
|
parameters:
|
|
- description: data...
|
|
in: body
|
|
name: data
|
|
schema:
|
|
$ref: '#/definitions/request.UpdateUserOrderStatus'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
type: string
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 修改订单状态(取消订单,确认收货订单)
|
|
tags:
|
|
- 客户端-订单
|
|
/order/postSale:
|
|
delete:
|
|
parameters:
|
|
- description: data...
|
|
in: body
|
|
name: data
|
|
schema:
|
|
$ref: '#/definitions/request.IdReq'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
type: string
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 订单取消退款/退货
|
|
tags:
|
|
- 客户端-订单
|
|
get:
|
|
parameters:
|
|
- description: id
|
|
in: query
|
|
name: id
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
$ref: '#/definitions/model.OrderPostSale'
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 获取订单申请退款/退货详情
|
|
tags:
|
|
- 客户端-订单
|
|
post:
|
|
parameters:
|
|
- description: data...
|
|
in: body
|
|
name: data
|
|
schema:
|
|
$ref: '#/definitions/request.PostSaleParams'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 0, "data": [...]}'
|
|
schema:
|
|
type: string
|
|
"201":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 订单申请退款/退货
|
|
tags:
|
|
- 客户端-订单
|
|
/user/appeal:
|
|
post:
|
|
parameters:
|
|
- description: respon
|
|
in: body
|
|
name: data
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UserAppeal'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 购买申诉[v1.0.0]
|
|
tags:
|
|
- user
|
|
/user/email:
|
|
put:
|
|
parameters:
|
|
- description: email
|
|
in: body
|
|
name: data
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/request.UserEmail'
|
|
responses:
|
|
"200":
|
|
description: '{"code": 1, "message": ""}'
|
|
schema:
|
|
type: string
|
|
security:
|
|
- Bearer: []
|
|
summary: 绑定邮箱[v1.0.0]
|
|
tags:
|
|
- user
|
|
securityDefinitions:
|
|
ApiKeyAuth:
|
|
in: header
|
|
name: x-token
|
|
type: apiKey
|
|
swagger: "2.0"
|
|
|