feat(main): add mp-weixin

This commit is contained in:
2025-01-18 22:34:27 +08:00
parent 9a31ec15a4
commit 9459d51501
28 changed files with 1580 additions and 71 deletions

View File

@@ -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"`
}
)

View File

@@ -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)
}

View File

@@ -34,3 +34,10 @@ type ProductResponse {
Product
}
type GetProductRenderListRequest{
module string `path:"module"`
}
type GetProductRenderListResponse {
Product []Product
}

View File

@@ -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"`
}
)

View File

@@ -53,8 +53,6 @@ type (
type (
WXMiniAuthReq {
Code string `json:"code"`
IV string `json:"iv"`
EncryptedData string `json:"encryptedData"`
}
WXMiniAuthResp {
AccessToken string `json:"accessToken"`