feat(main): add mp-weixin
This commit is contained in:
@@ -13,7 +13,7 @@ type (
|
||||
PayMethod string `json:"pay_method"`
|
||||
}
|
||||
PaymentResp {
|
||||
prepayID string `json:"prepay_id"`
|
||||
prepayData interface{} `json:"prepay_data"`
|
||||
OrderID int64 `json:"order_id"`
|
||||
}
|
||||
)
|
||||
|
||||
@@ -23,3 +23,13 @@ service main {
|
||||
get /en/:product_en (GetProductByEnRequest) returns (ProductResponse)
|
||||
}
|
||||
|
||||
@server (
|
||||
prefix: api/v1/product
|
||||
group: product
|
||||
middleware: SourceInterceptor
|
||||
)
|
||||
service main {
|
||||
@handler GetProductRenderList
|
||||
get /render_list/:module (GetProductRenderListRequest) returns (GetProductRenderListResponse)
|
||||
}
|
||||
|
||||
|
||||
@@ -34,3 +34,10 @@ type ProductResponse {
|
||||
Product
|
||||
}
|
||||
|
||||
type GetProductRenderListRequest{
|
||||
module string `path:"module"`
|
||||
}
|
||||
|
||||
type GetProductRenderListResponse {
|
||||
Product []Product
|
||||
}
|
||||
@@ -44,9 +44,7 @@ type (
|
||||
Id string `path:"id"`
|
||||
}
|
||||
QueryProvisionalOrderResp {
|
||||
Name string `json:"name"`
|
||||
IdCard string `json:"id_card"`
|
||||
Mobile string `json:"mobile"`
|
||||
QueryParams map[string]interface{} `json:"query_params"`
|
||||
Product Product `json:"product"`
|
||||
}
|
||||
)
|
||||
|
||||
@@ -53,8 +53,6 @@ type (
|
||||
type (
|
||||
WXMiniAuthReq {
|
||||
Code string `json:"code"`
|
||||
IV string `json:"iv"`
|
||||
EncryptedData string `json:"encryptedData"`
|
||||
}
|
||||
WXMiniAuthResp {
|
||||
AccessToken string `json:"accessToken"`
|
||||
|
||||
Reference in New Issue
Block a user