order address apis
This commit is contained in:
+42
-6
@@ -29,6 +29,13 @@ message CreateOrderRequest {
|
||||
string note = 2;
|
||||
}
|
||||
|
||||
message CreateOrderOneRequest {
|
||||
int64 address_id = 1;
|
||||
string note = 2;
|
||||
int64 productid = 3;
|
||||
int32 num = 4;
|
||||
}
|
||||
|
||||
message EditAddressRequest {
|
||||
string district = 1;
|
||||
string address = 2;
|
||||
@@ -43,6 +50,7 @@ message EditAddressRequest {
|
||||
message StatusAddressRequest {
|
||||
int64 id = 1;
|
||||
int32 status = 2;
|
||||
string reason = 3;
|
||||
}
|
||||
|
||||
message EmptyRequest {
|
||||
@@ -50,12 +58,26 @@ message EmptyRequest {
|
||||
|
||||
message EditCartRequest {
|
||||
string info = 1;
|
||||
int32 type = 2;
|
||||
}
|
||||
|
||||
message CartRequest {
|
||||
int32 type = 1;
|
||||
}
|
||||
|
||||
message IdRequest {
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message IdAndTypeRequest {
|
||||
int64 id = 1;
|
||||
int32 type = 2;
|
||||
}
|
||||
|
||||
message TypeRequest {
|
||||
int32 type = 1;
|
||||
}
|
||||
|
||||
message AddressItemsRequest {
|
||||
int32 page = 1;
|
||||
int32 size = 2;
|
||||
@@ -64,7 +86,7 @@ message AddressItemsRequest {
|
||||
string mobile = 5;
|
||||
int64 store_id = 6;
|
||||
int64 sale_id = 7;
|
||||
string time = 8;
|
||||
repeated string time = 8;
|
||||
}
|
||||
|
||||
message OrderAuditingItemsRequest {
|
||||
@@ -99,6 +121,13 @@ service order {
|
||||
};
|
||||
};
|
||||
|
||||
rpc WebCreateOne(CreateOrderOneRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/api/v3/order/create/one"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
|
||||
rpc WebAddressCreate(EditAddressRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/api/v3/address/create"
|
||||
@@ -111,26 +140,32 @@ service order {
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc WebAddressStatus(StatusAddressRequest) returns(Response){
|
||||
rpc WebAddressDel(IdAndTypeRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/api/v3/address/status"
|
||||
post: "/api/v3/address/del"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc WebAddressDef(IdRequest) returns(Response){
|
||||
rpc WebAddressDef(IdAndTypeRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/api/v3/address/def"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc WebAddressItems(EmptyRequest) returns(Response){
|
||||
rpc WebAddressInfo(IdAndTypeRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/api/v3/address/info"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc WebAddressItems(TypeRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/api/v3/address/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
|
||||
rpc WebCart(EmptyRequest) returns(Response){
|
||||
rpc WebCart(CartRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/api/v3/cart"
|
||||
body: "*"
|
||||
@@ -149,6 +184,7 @@ service order {
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
|
||||
rpc OrderAuditingItems(OrderAuditingItemsRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/order/auditing/items"
|
||||
|
||||
Reference in New Issue
Block a user