删除无用的服务
This commit is contained in:
@@ -1,123 +0,0 @@
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
title: "云仓服务"// TODO: add title
|
||||
desc: // TODO: add description
|
||||
author: "daming"
|
||||
email: ""
|
||||
)
|
||||
import "basic.api"
|
||||
|
||||
service inventory {
|
||||
//提取云仓货物
|
||||
@handler TakeHandler
|
||||
post /api/inventory/take(TakeReq) returns (response);
|
||||
//获取云仓库存列表
|
||||
@handler GetCloudListHandler
|
||||
post /api/inventory/list(GetCloudListReq) returns (response);
|
||||
//云仓补货
|
||||
@handler SupplementHandler
|
||||
post /api/inventory/supplement(SupplementReq) returns (response);
|
||||
//提货列表
|
||||
@handler GetPickupListHandler
|
||||
get /api/inventory/pick-up-list(GetPickupListReq) returns (response);
|
||||
}
|
||||
|
||||
//提取云仓货物
|
||||
type TakeReq {
|
||||
Form []TakeForm `json:"form"`
|
||||
AddressId int64 `json:"address_id"`
|
||||
}
|
||||
type TakeForm {
|
||||
Id int64 `json:"id"`
|
||||
Num int64 `json:"num"`
|
||||
}
|
||||
//获取云仓库存列表
|
||||
type GetCloudListReq {
|
||||
Page int `json:"page"`
|
||||
PageSize int `json:"page_size"`
|
||||
Size int64 `json:"size"`
|
||||
}
|
||||
type GetCloudListRsp {
|
||||
WarehouseBoxes int64 `json:"warehouse_boxes"`
|
||||
TransitBoxes int64 `json:"transit_boxes"`
|
||||
MinTakeNum int64 `json:"minTakeNum"`
|
||||
ListData []ListDataItem `json:"listData"`
|
||||
Meta Meta `json:"_meta"`
|
||||
}
|
||||
type ListDataItem {
|
||||
Id int64 `json:"id"`
|
||||
Sn string `json:"sn"`
|
||||
Cover string `json:"cover"`
|
||||
Name string `json:"name"`
|
||||
DesignSn string `json:"design_sn"`
|
||||
Fitting string `json:"fitting"`
|
||||
Production int64 `json:"production"`
|
||||
ProductionBox int64 `json:"production_box"`
|
||||
EachBoxNum int64 `json:"each_box_num"`
|
||||
Stick int64 `json:"stick"`
|
||||
StickBox int64 `json:"stick_box"`
|
||||
Type int64 `json:"type"`
|
||||
TakeNum int64 `json:"takeNum"`
|
||||
Size string `json:"size"`
|
||||
IsStop int64 `json:"is_stop"`
|
||||
PriceList []PriceItem `json:"price"`
|
||||
}
|
||||
type PriceItem {
|
||||
Num int64 `json:"num"`
|
||||
TotalNum int64 `json:"total_num"`
|
||||
Price int64 `json:"price"`
|
||||
}
|
||||
|
||||
//云仓补货
|
||||
type SupplementReq {
|
||||
Id int64 `json:"id"`
|
||||
Num int64 `json:"num"`
|
||||
}
|
||||
type SupplementRsp {
|
||||
Sn string `json:"sn"`
|
||||
}
|
||||
|
||||
//提货列表
|
||||
type GetPickupListReq {
|
||||
Status int64 `form:"status,options=-1|1|2|3|4"`
|
||||
Page int `form:"page"`
|
||||
PageSize int `form:"page_size"`
|
||||
Size int `form:"size"`
|
||||
}
|
||||
type GetPickupListRsp {
|
||||
PickupList []PickupItem `json:"items"`
|
||||
Meta Meta `json:"_meta"`
|
||||
}
|
||||
type PickupItem {
|
||||
Id int64 `json:"id"`
|
||||
UserId int64 `json:"user_id"`
|
||||
TrackNum string `json:"track_num"`
|
||||
Ctime string `json:"ctime"`
|
||||
Status int64 `json:"status"`
|
||||
UpsSn string `json:"ups_sn"`
|
||||
Address string `json:"address"`
|
||||
ProductList []Product `json:"productList"`
|
||||
Pcs int64 `json:"pcs"`
|
||||
PcsBox int64 `json:"pcs_box"`
|
||||
LogisticsStatus int64 `json:"logistics_status"`
|
||||
StatusTimes []StatusTimesItem `json:"status_times"`
|
||||
}
|
||||
type Product {
|
||||
Id int64 `json:"id"`
|
||||
PickId int64 `json:"pick_id"`
|
||||
StockId int64 `json:"stock_id"`
|
||||
Num int64 `json:"num"`
|
||||
Boxes int64 `json:"boxes"`
|
||||
Ctime int64 `json:"ctime"`
|
||||
ProductName string `json:"product_name"`
|
||||
Pcs int64 `json:"pcs"`
|
||||
PcsBox int64 `json:"pcs_box"`
|
||||
Cover string `json:"cover"`
|
||||
Size string `json:"size"`
|
||||
Fitting string `json:"fitting"`
|
||||
}
|
||||
type StatusTimesItem {
|
||||
Key int64 `json:"key"`
|
||||
Time string `json:"time"`
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
title: "订单服务"// TODO: add title
|
||||
desc: // TODO: add description
|
||||
author: ""
|
||||
email: ""
|
||||
)
|
||||
|
||||
import "basic.api"
|
||||
|
||||
service orders {
|
||||
//获取订单发票
|
||||
@handler GetOrderInvoiceHandler
|
||||
get /api/order/invoice (GetOrderInvoiceReq) returns (response);
|
||||
//获取订单详情
|
||||
@handler GetOrderDetailHandler
|
||||
get /api/order/detail (GetOrderDetailReq) returns (response);
|
||||
}
|
||||
|
||||
//获取订单发票
|
||||
type GetOrderInvoiceReq {
|
||||
Sn string `form:"sn"`
|
||||
TimeZone int64 `form:"timeZone"`
|
||||
}
|
||||
type GetOrderInvoiceRsp {
|
||||
FileName string `json:"file_name"`
|
||||
Pdf string `json:"pdf"`
|
||||
}
|
||||
//获取订单详情
|
||||
type GetOrderDetailReq {
|
||||
Sn string `form:"sn"`
|
||||
Size int64 `form:"size, optional"`
|
||||
}
|
||||
type GetOrderDetailRsp {
|
||||
Id int64 `json:"id"`
|
||||
TotalAmount int64 `json:"total_amount"`
|
||||
Deposit int64 `json:"deposit"`
|
||||
Remaining int64 `json:"remaining"`
|
||||
IsPayCompleted int64 `json:"is_pay_completed"`
|
||||
DeliveryMethod int64 `json:"delivery_method"`
|
||||
Sn string `json:"sn"`
|
||||
Status int64 `json:"status"`
|
||||
Ctime string `json:"ctime"`
|
||||
PayInfo *PayInfo `json:"pay_info"`
|
||||
Address *Address `json:"address"`
|
||||
ProductList []*Product `json:"productList"`
|
||||
}
|
||||
type Product {
|
||||
Cover string `json:"cover"`
|
||||
Fitting string `json:"fitting"`
|
||||
OptionPrice int64 `json:"option_price"`
|
||||
OrderDetailTemplateId int64 `json:"order_detail_template_id"`
|
||||
OrderId int64 `json:"order_id"`
|
||||
Pcs int64 `json:"pcs"`
|
||||
PcsBox int64 `json:"pcs_box"`
|
||||
Price int64 `json:"price"`
|
||||
ProductId int64 `json:"product_id"`
|
||||
Size string `json:"size"`
|
||||
Title string `json:"title"`
|
||||
}
|
||||
type Address {
|
||||
Id int64 `json:"id"`
|
||||
UserId int64 `json:"user_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"`
|
||||
Country string `json:"country"`
|
||||
ZipCode string `json:"zip_code"`
|
||||
Status int64 `json:"status"`
|
||||
IsDefault int64 `json:"is_default"`
|
||||
}
|
||||
type PayInfo {
|
||||
Deposit Deposit `json:"Deposit"`
|
||||
Final Deposit `json:"Final"`
|
||||
}
|
||||
type Deposit {
|
||||
Method string `json:"method"`
|
||||
TransNo string `json:"trans_no"`
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
title: "渲染"// TODO: add title
|
||||
desc: // TODO: add description
|
||||
author: ""
|
||||
email: ""
|
||||
)
|
||||
|
||||
import "basic.api"
|
||||
service render {
|
||||
//获取面片信息
|
||||
@handler GetFaceSliceHandler
|
||||
post /api/render/get_face_slice(request) returns (response);
|
||||
}
|
||||
@@ -1,139 +0,0 @@
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
title: "购物车服务"
|
||||
desc: // TODO: add description
|
||||
author: "ldm"
|
||||
email: ""
|
||||
)
|
||||
|
||||
import "basic.api"
|
||||
|
||||
service shopping-cart-confirmation {
|
||||
//添加入购物车
|
||||
@handler CartAddHandler
|
||||
post /api/cart/add (CartAddReq) returns (response);
|
||||
//删除购物车
|
||||
@handler CartDeleteHandler
|
||||
post /api/cart/del (CartDeleteReq) returns (response);
|
||||
//获取用户购物车数量
|
||||
@handler CartNumberHandler
|
||||
get /api/cart/num (request) returns (response);
|
||||
//获取用户购物车列表
|
||||
@handler CartListHandler
|
||||
get /api/cart/list (CartListReq) returns (response);
|
||||
//获取用户购物车订单详情
|
||||
@handler CartOrderDetailHandler
|
||||
get /api/cart/order-detail (CartOrderDetailReq) returns (response);
|
||||
//变更发货方式和地址
|
||||
@handler ChangeOrderMethodHandler
|
||||
post /api/cart/chang-order-method (ChangeOrderMethodReq) returns (response);
|
||||
//创建购物车订单
|
||||
@handler CreateOrderHandler
|
||||
post /api/cart/create-order (CreateOrderReq) returns (response);
|
||||
}
|
||||
|
||||
//添加入购物车
|
||||
type CartAddReq {
|
||||
DesignId string `json:"design_id"` //设计sn
|
||||
BuyNum int64 `json:"buy_num"` //购买数量
|
||||
IsCheck int64 `json:"is_check,optional"`
|
||||
}
|
||||
//删除购物车
|
||||
type CartDeleteReq {
|
||||
Id int64 `json:"id"`
|
||||
}
|
||||
//获取用户购物车数量
|
||||
type CartNumberRsp {
|
||||
Num int64 `json:"num"`
|
||||
}
|
||||
//获取用户购物车列表
|
||||
type CartListReq {
|
||||
Size uint32 `form:"size"`
|
||||
}
|
||||
type CartListRsp {
|
||||
Id int64 `json:"id"`
|
||||
Cover string `json:"cover"`
|
||||
Name string `json:"name"`
|
||||
Capacity string `json:"capacity"`
|
||||
ETA string `json:"ETA"`
|
||||
Pcs int64 `json:"pcs"`
|
||||
ProductSn string `json:"product_sn"`
|
||||
DesignSn string `json:"designSn"`
|
||||
Option *CartOption `json:"option"`
|
||||
IsCheck int64 `json:"is_check"`
|
||||
TsTime string `json:"ts_time"`
|
||||
PcsList []*PcsItem `json:"pcs_list"`
|
||||
Size *CartSizeItem `json:"size"`
|
||||
}
|
||||
type CartOption {
|
||||
Id int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Price float64 `json:"price"`
|
||||
}
|
||||
type PcsItem {
|
||||
Num int64 `json:"num"`
|
||||
TotalNum int64 `json:"total_num"`
|
||||
Title string `json:"title"`
|
||||
Price float64 `json:"price"`
|
||||
}
|
||||
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 CreateOrderReq {
|
||||
Form []OrderFormItem `json:"form"`
|
||||
}
|
||||
type OrderFormItem {
|
||||
Id int64 `json:"id"`
|
||||
Num int64 `json:"num"`
|
||||
}
|
||||
type CreateOrderRsp {
|
||||
Sn string `json:"sn"`
|
||||
}
|
||||
Reference in New Issue
Block a user