Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop
This commit is contained in:
82
server_api/map_library.api
Normal file
82
server_api/map_library.api
Normal file
@@ -0,0 +1,82 @@
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
title: "贴图库服务"// TODO: add title
|
||||
desc: // TODO: add description
|
||||
author: ""
|
||||
email: ""
|
||||
)
|
||||
import "basic.api"
|
||||
|
||||
service map-library {
|
||||
//获取贴图库列表
|
||||
@handler GetMapLibraryListHandler
|
||||
get /map-library/list ( ) returns (response);
|
||||
}
|
||||
|
||||
//获取贴图库列表
|
||||
type GetMapLibraryListRsp {
|
||||
Mid int64 `json:"mid"`
|
||||
Ctime string `json:"ctime"`
|
||||
Tag MapLibraryListTag `json:"tag"`
|
||||
Info MapLibraryListInfo `json:"info"`
|
||||
}
|
||||
type MapLibraryListInfo {
|
||||
Id string `json:"id"`
|
||||
Tag string `json:"tag"`
|
||||
Title string `json:"title"`
|
||||
Type string `json:"type"`
|
||||
Text string `json:"text"`
|
||||
Fill string `json:"fill"`
|
||||
FontSize int64 `json:"fontSize"`
|
||||
FontFamily string `json:"fontFamily"`
|
||||
IfBr bool `json:"ifBr"`
|
||||
IfShow bool `json:"ifShow"`
|
||||
IfGroup bool `json:"ifGroup"`
|
||||
MaxNum int64 `json:"maxNum"`
|
||||
Rotation int64 `json:"rotation"`
|
||||
Align string `json:"align"`
|
||||
VerticalAlign string `json:"verticalAlign"`
|
||||
Material string `json:"material"`
|
||||
QRcodeType int64 `json:"QRcodeType"`
|
||||
Width float64 `json:"width"`
|
||||
Height float64 `json:"height"`
|
||||
X float64 `json:"x"`
|
||||
Y float64 `json:"y"`
|
||||
Opacity float64 `json:"opacity"`
|
||||
OptionalColor []MapLibraryListOptionalColorItem `json:"optionalColor"`
|
||||
ZIndex int64 `json:"zIndex"`
|
||||
SvgPath string `json:"svgPath"`
|
||||
Follow MapLibraryListFollow `json:"follow"`
|
||||
Group []MapLibraryListGroup `json:"group"`
|
||||
CameraStand MapLibraryListCameraStand `json:"cameraStand"`
|
||||
MaterialTime string `json:"materialTime"`
|
||||
MaterialName string `json:"materialName"`
|
||||
}
|
||||
type MapLibraryListCameraStand {
|
||||
X int64 `json:"x"`
|
||||
Y int64 `json:"y"`
|
||||
Z int64 `json:"z"`
|
||||
}
|
||||
type MapLibraryListGroup {
|
||||
Tag string `json:"tag"`
|
||||
Text string `json:"text"`
|
||||
Title string `json:"title"`
|
||||
IfBr bool `json:"ifBr"`
|
||||
IfShow bool `json:"ifShow"`
|
||||
MaxNum int64 `json:"maxNum"`
|
||||
}
|
||||
type MapLibraryListFollow {
|
||||
Fill string `json:"fill"`
|
||||
IfShow string `json:"ifShow"`
|
||||
Content string `json:"content"`
|
||||
}
|
||||
type MapLibraryListOptionalColorItem {
|
||||
Color string `json:"color"`
|
||||
Name string `json:"name"`
|
||||
Default bool `json:"default"`
|
||||
}
|
||||
type MapLibraryListTag {
|
||||
Id int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
}
|
||||
@@ -20,6 +20,15 @@ service shopping-cart-confirmation {
|
||||
//获取用户购物车列表
|
||||
@handler CartListHandler
|
||||
get /cart/list (CartListReq) returns (response);
|
||||
//获取用户购物车订单详情
|
||||
@handler CartOrderDetailHandler
|
||||
get /cart/order-detail (CartOrderDetailReq) returns (response);
|
||||
//变更发货方式和地址
|
||||
@handler ChangeOrderMethodHandler
|
||||
post /cart/chang-order-method (ChangeOrderMethodReq) returns (response);
|
||||
//创建订单
|
||||
@handler CartCreateOrderHandler
|
||||
post /cart/create-order (CartCreateOrderReq) returns (response);
|
||||
}
|
||||
|
||||
//添加入购物车
|
||||
@@ -69,4 +78,54 @@ type PcsItem {
|
||||
type CartSizeItem {
|
||||
Cm string `json:"cm"`
|
||||
Inch string `json:"inch"`
|
||||
}
|
||||
//获取用户购物车订单详情
|
||||
type CartOrderDetailReq {
|
||||
Sn string `form:"sn"`
|
||||
}
|
||||
type CartOrderDetailRsp {
|
||||
DeliveryMethod int64 `json:"delivery_method"`
|
||||
AddressId int64 `json:"address_id"`
|
||||
PayTime string `json:"pay_time"`
|
||||
PayMethod int64 `json:"pay_method"`
|
||||
PayStep int64 `json:"pay_step"`
|
||||
Subtotal string `json:"subtotal"`
|
||||
Total string `json:"total"`
|
||||
Remaining string `json:"remaining"`
|
||||
AddrList []CartAddr `json:"addr_list"`
|
||||
Items []CartDetailItem `json:"items"`
|
||||
}
|
||||
type CartDetailItem {
|
||||
Cover string `json:"cover"`
|
||||
Pcs int64 `json:"pcs"`
|
||||
Amount string `json:"amount"`
|
||||
Option string `json:"option"`
|
||||
Size string `json:"size"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
type CartAddr {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
FirstName string `json:"first_name"`
|
||||
LastName string `json:"last_name"`
|
||||
Mobile string `json:"mobile"`
|
||||
Street string `json:"street"`
|
||||
Suite string `json:"suite"`
|
||||
City string `json:"city"`
|
||||
State string `json:"state"`
|
||||
ZipCode string `json:"zip_code"`
|
||||
IsDefault int64 `json:"is_default"`
|
||||
}
|
||||
|
||||
//变更发货方式和地址
|
||||
type ChangeOrderMethodReq {
|
||||
Sn string `json:"sn"`
|
||||
DeliveryMethod int64 `json:"delivery_method , options=1|2"`
|
||||
AddressId int64 `json:"address_id"`
|
||||
PayMethod int64 `json:"pay_method"`
|
||||
}
|
||||
|
||||
//创建订单
|
||||
type CartCreateOrderReq{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user