mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-25 04:10:55 +08:00
实现用户订单、在线支付接口(商业版可用)
This commit is contained in:
28
pkg/rpc/protos/models/model_user_order.proto
Normal file
28
pkg/rpc/protos/models/model_user_order.proto
Normal file
@@ -0,0 +1,28 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_user.proto";
|
||||
import "models/model_order_method.proto";
|
||||
|
||||
// 用户订单
|
||||
message UserOrder {
|
||||
int64 userId = 2;
|
||||
string code = 3;
|
||||
string type = 4;
|
||||
int64 orderMethodId = 5;
|
||||
string status = 6;
|
||||
float amount = 7;
|
||||
bytes paramsJSON = 8;
|
||||
int64 createdAt = 9;
|
||||
int64 cancelledAt = 10;
|
||||
int64 finishedAt = 11;
|
||||
bool isExpired = 12;
|
||||
|
||||
User user = 30;
|
||||
OrderMethod orderMethod = 31;
|
||||
|
||||
bool canPay = 32; // 是否可以支付
|
||||
string payURL = 33; // 构造后的支付URL
|
||||
}
|
||||
Reference in New Issue
Block a user