You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.5 KiB
73 lines
1.5 KiB
syntax = "proto3";
|
|
|
|
package api;
|
|
|
|
option go_package = "shop-api/dto";
|
|
|
|
message LoginRequest{
|
|
string phone = 1;
|
|
string code = 2;
|
|
}
|
|
|
|
message SmsRequest {
|
|
string phone = 1;
|
|
}
|
|
message WithdrawRequest {
|
|
string phone = 1;//账户绑定手机号
|
|
string code = 2; //验证码
|
|
double amount = 3;//提现金额
|
|
int32 accountID = 4;//账户id
|
|
}
|
|
|
|
message CreateAddressRequest{
|
|
string firstName = 1;
|
|
string lastName = 2;
|
|
string street = 3;
|
|
string phone = 4;
|
|
string bldg = 5;
|
|
string city = 6;
|
|
string state = 7;
|
|
string zipCode = 8;
|
|
int32 default = 9;
|
|
}
|
|
message UpdateAddressRequest{
|
|
int64 id = 1;
|
|
string firstName = 2;
|
|
string lastName = 3;
|
|
string street = 4;
|
|
string phone = 5;
|
|
string bldg = 6;
|
|
string city = 7;
|
|
string state = 8;
|
|
string zipCode = 9;
|
|
int32 default = 10;
|
|
}
|
|
message IdRequest{
|
|
int64 id = 1;
|
|
}
|
|
message CreateOrderRequest {
|
|
string code = 1;// 网红领取任务码
|
|
int32 skuID = 2;// skuId
|
|
int32 number = 3;// 购买数量
|
|
int32 addressID = 4;// 地址id
|
|
int32 payMode = 5;// 支付方式 1:paypal
|
|
string platform = 6;
|
|
}
|
|
message PaybackBody{
|
|
string attach = 1;
|
|
string out_trade_no = 2;
|
|
string transaction_id = 3;
|
|
string pay_id = 4;
|
|
string capture_id = 5;
|
|
string status = 6;
|
|
string message = 7;
|
|
string resource_type = 8;
|
|
}
|
|
message OrderData{
|
|
int64 all = 1;// 全部
|
|
int64 unpaid = 2;// 未付款
|
|
int64 unship = 3;// 待发货
|
|
int64 shipped = 4;// 已发货
|
|
int64 finished = 5;// 已完成
|
|
int64 cancel = 6;// 已取消
|
|
}
|