c33fbdb422
CI / changes (push) Successful in 4s
CI / docker-bff (push) Successful in 3m21s
CI / docker-product (push) Successful in 3m39s
CI / docker-admin (push) Successful in 3m34s
CI / docker-user (push) Successful in 3m29s
CI / docker-ad (push) Successful in 3m29s
169 lines
3.3 KiB
Protocol Buffer
169 lines
3.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
package order;
|
|
option go_package = "lone-services/rpc/order";
|
|
|
|
|
|
message OrderItemsRequest {
|
|
int32 page = 1;
|
|
int32 size = 2;
|
|
int64 product_id =3;
|
|
string order_sn = 4;
|
|
string mobile = 5;
|
|
int64 store_id = 6;
|
|
int64 sale_id = 7;
|
|
string time = 8;
|
|
int32 status = 9;
|
|
}
|
|
|
|
message Response {
|
|
int32 code = 1;
|
|
string msg = 2;
|
|
string data = 3;
|
|
}
|
|
|
|
message CreateOrderRequest {
|
|
int64 address_id = 1;
|
|
string note = 2;
|
|
}
|
|
|
|
message EditAddressRequest {
|
|
string district = 1;
|
|
string address = 2;
|
|
string name = 3;
|
|
string mobile = 4;
|
|
string district_ids = 5;
|
|
bool default = 6;
|
|
int64 id = 7;
|
|
}
|
|
|
|
message StatusAddressRequest {
|
|
int64 id = 1;
|
|
int32 status = 2;
|
|
}
|
|
|
|
message EmptyRequest {
|
|
}
|
|
|
|
message EditCartRequest {
|
|
string info = 1;
|
|
}
|
|
|
|
message IdRequest {
|
|
int64 id = 1;
|
|
}
|
|
|
|
message AddressItemsRequest {
|
|
int32 page = 1;
|
|
int32 size = 2;
|
|
int64 district_id =3;
|
|
string name = 4;
|
|
string mobile = 5;
|
|
int64 store_id = 6;
|
|
int64 sale_id = 7;
|
|
string time = 8;
|
|
}
|
|
|
|
message OrderAuditingItemsRequest {
|
|
int32 page = 1;
|
|
int32 size = 2;
|
|
}
|
|
|
|
message OrderAuditingRequest {
|
|
int64 id = 1;
|
|
int32 status = 2;
|
|
string reason = 3;
|
|
}
|
|
|
|
message AdminCreateOrderRequest {
|
|
int64 address_id = 1;
|
|
string note = 2;
|
|
string info = 3;
|
|
}
|
|
|
|
service order {
|
|
rpc Items(OrderItemsRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
get: "/admin/v3/order/items"
|
|
body: "*"
|
|
};
|
|
};
|
|
|
|
rpc WebCreate(CreateOrderRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
post: "/api/v3/order/create"
|
|
body: "*"
|
|
};
|
|
};
|
|
|
|
rpc WebAddressCreate(EditAddressRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
post: "/api/v3/address/create"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc WebAddressEdit(EditAddressRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
post: "/api/v3/address/edit"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc WebAddressStatus(StatusAddressRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
post: "/api/v3/address/status"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc WebAddressDef(IdRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
post: "/api/v3/address/def"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc WebAddressItems(EmptyRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
get: "/api/v3/address/items"
|
|
body: "*"
|
|
};
|
|
};
|
|
|
|
rpc WebCart(EmptyRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
get: "/api/v3/cart"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc WebCartEdit(EditCartRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
post: "/api/v3/cart/edit"
|
|
body: "*"
|
|
};
|
|
};
|
|
|
|
rpc AddressItem(AddressItemsRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
get: "/admin/v3/address/items"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc OrderAuditingItems(OrderAuditingItemsRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
get: "/admin/v3/order/auditing/items"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc OrderAuditing(OrderAuditingRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
post: "/admin/v3/order/auditing"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc OrderCreate(AdminCreateOrderRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
post: "/admin/v3/order/create"
|
|
body: "*"
|
|
};
|
|
};
|
|
} |