order apis
This commit is contained in:
+329
-67
@@ -22,50 +22,6 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type Request struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Request) Reset() {
|
||||
*x = Request{}
|
||||
mi := &file_express_express_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Request) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Request) ProtoMessage() {}
|
||||
|
||||
func (x *Request) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_express_express_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Request.ProtoReflect.Descriptor instead.
|
||||
func (*Request) Descriptor() ([]byte, []int) {
|
||||
return file_express_express_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Request) GetPing() string {
|
||||
if x != nil {
|
||||
return x.Ping
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
||||
@@ -77,7 +33,7 @@ type Response struct {
|
||||
|
||||
func (x *Response) Reset() {
|
||||
*x = Response{}
|
||||
mi := &file_express_express_proto_msgTypes[1]
|
||||
mi := &file_express_express_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -89,7 +45,7 @@ func (x *Response) String() string {
|
||||
func (*Response) ProtoMessage() {}
|
||||
|
||||
func (x *Response) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_express_express_proto_msgTypes[1]
|
||||
mi := &file_express_express_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -102,7 +58,7 @@ func (x *Response) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Response.ProtoReflect.Descriptor instead.
|
||||
func (*Response) Descriptor() ([]byte, []int) {
|
||||
return file_express_express_proto_rawDescGZIP(), []int{1}
|
||||
return file_express_express_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Response) GetCode() int32 {
|
||||
@@ -134,7 +90,7 @@ type EmtpyRequest struct {
|
||||
|
||||
func (x *EmtpyRequest) Reset() {
|
||||
*x = EmtpyRequest{}
|
||||
mi := &file_express_express_proto_msgTypes[2]
|
||||
mi := &file_express_express_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -146,7 +102,7 @@ func (x *EmtpyRequest) String() string {
|
||||
func (*EmtpyRequest) ProtoMessage() {}
|
||||
|
||||
func (x *EmtpyRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_express_express_proto_msgTypes[2]
|
||||
mi := &file_express_express_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -159,24 +115,320 @@ func (x *EmtpyRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use EmtpyRequest.ProtoReflect.Descriptor instead.
|
||||
func (*EmtpyRequest) Descriptor() ([]byte, []int) {
|
||||
return file_express_express_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
type CreateRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
TransitId int32 `protobuf:"varint,3,opt,name=transit_id,json=transitId,proto3" json:"transit_id,omitempty"`
|
||||
AppCode string `protobuf:"bytes,4,opt,name=app_code,json=appCode,proto3" json:"app_code,omitempty"`
|
||||
AppSecretKey string `protobuf:"bytes,5,opt,name=app_secret_key,json=appSecretKey,proto3" json:"app_secret_key,omitempty"`
|
||||
AppUrl string `protobuf:"bytes,6,opt,name=app_url,json=appUrl,proto3" json:"app_url,omitempty"`
|
||||
CardNumber string `protobuf:"bytes,7,opt,name=card_number,json=cardNumber,proto3" json:"card_number,omitempty"`
|
||||
Province string `protobuf:"bytes,8,opt,name=province,proto3" json:"province,omitempty"`
|
||||
City string `protobuf:"bytes,9,opt,name=city,proto3" json:"city,omitempty"`
|
||||
County string `protobuf:"bytes,10,opt,name=county,proto3" json:"county,omitempty"`
|
||||
Address string `protobuf:"bytes,11,opt,name=address,proto3" json:"address,omitempty"`
|
||||
CompanyName string `protobuf:"bytes,12,opt,name=company_name,json=companyName,proto3" json:"company_name,omitempty"`
|
||||
Contact string `protobuf:"bytes,13,opt,name=contact,proto3" json:"contact,omitempty"`
|
||||
Mobile string `protobuf:"bytes,14,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
||||
PdfCode string `protobuf:"bytes,15,opt,name=pdf_code,json=pdfCode,proto3" json:"pdf_code,omitempty"`
|
||||
Other string `protobuf:"bytes,16,opt,name=other,proto3" json:"other,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CreateRequest) Reset() {
|
||||
*x = CreateRequest{}
|
||||
mi := &file_express_express_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CreateRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CreateRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_express_express_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CreateRequest) Descriptor() ([]byte, []int) {
|
||||
return file_express_express_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetTransitId() int32 {
|
||||
if x != nil {
|
||||
return x.TransitId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetAppCode() string {
|
||||
if x != nil {
|
||||
return x.AppCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetAppSecretKey() string {
|
||||
if x != nil {
|
||||
return x.AppSecretKey
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetAppUrl() string {
|
||||
if x != nil {
|
||||
return x.AppUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetCardNumber() string {
|
||||
if x != nil {
|
||||
return x.CardNumber
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetProvince() string {
|
||||
if x != nil {
|
||||
return x.Province
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetCity() string {
|
||||
if x != nil {
|
||||
return x.City
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetCounty() string {
|
||||
if x != nil {
|
||||
return x.County
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetAddress() string {
|
||||
if x != nil {
|
||||
return x.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetCompanyName() string {
|
||||
if x != nil {
|
||||
return x.CompanyName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetContact() string {
|
||||
if x != nil {
|
||||
return x.Contact
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetMobile() string {
|
||||
if x != nil {
|
||||
return x.Mobile
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetPdfCode() string {
|
||||
if x != nil {
|
||||
return x.PdfCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetOther() string {
|
||||
if x != nil {
|
||||
return x.Other
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type IdRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *IdRequest) Reset() {
|
||||
*x = IdRequest{}
|
||||
mi := &file_express_express_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *IdRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IdRequest) ProtoMessage() {}
|
||||
|
||||
func (x *IdRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_express_express_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use IdRequest.ProtoReflect.Descriptor instead.
|
||||
func (*IdRequest) Descriptor() ([]byte, []int) {
|
||||
return file_express_express_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *IdRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type StatusRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
|
||||
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *StatusRequest) Reset() {
|
||||
*x = StatusRequest{}
|
||||
mi := &file_express_express_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *StatusRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StatusRequest) ProtoMessage() {}
|
||||
|
||||
func (x *StatusRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_express_express_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
|
||||
func (*StatusRequest) Descriptor() ([]byte, []int) {
|
||||
return file_express_express_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *StatusRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *StatusRequest) GetStatus() int32 {
|
||||
if x != nil {
|
||||
return x.Status
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *StatusRequest) GetReason() string {
|
||||
if x != nil {
|
||||
return x.Reason
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_express_express_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_express_express_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x15express/express.proto\x12\aexpress\x1a\x1cgoogle/api/annotations.proto\"\x1d\n" +
|
||||
"\aRequest\x12\x12\n" +
|
||||
"\x04ping\x18\x01 \x01(\tR\x04ping\"D\n" +
|
||||
"\x15express/express.proto\x12\aexpress\x1a\x1cgoogle/api/annotations.proto\"D\n" +
|
||||
"\bResponse\x12\x12\n" +
|
||||
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" +
|
||||
"\x03msg\x18\x02 \x01(\tR\x03msg\x12\x12\n" +
|
||||
"\x04data\x18\x03 \x01(\tR\x04data\"\x0e\n" +
|
||||
"\fEmtpyRequest2\xb0\x01\n" +
|
||||
"\aExpress\x12N\n" +
|
||||
"\x04Ping\x12\x10.express.Request\x1a\x11.express.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/admin/v3/express/ping\x12U\n" +
|
||||
"\x05Items\x12\x15.express.EmtpyRequest\x1a\x11.express.Response\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/admin/v3/express/itemsB\vZ\t./expressb\x06proto3"
|
||||
"\fEmtpyRequest\"\xb5\x03\n" +
|
||||
"\rCreateRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
|
||||
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1d\n" +
|
||||
"\n" +
|
||||
"transit_id\x18\x03 \x01(\x05R\ttransitId\x12\x19\n" +
|
||||
"\bapp_code\x18\x04 \x01(\tR\aappCode\x12$\n" +
|
||||
"\x0eapp_secret_key\x18\x05 \x01(\tR\fappSecretKey\x12\x17\n" +
|
||||
"\aapp_url\x18\x06 \x01(\tR\x06appUrl\x12\x1f\n" +
|
||||
"\vcard_number\x18\a \x01(\tR\n" +
|
||||
"cardNumber\x12\x1a\n" +
|
||||
"\bprovince\x18\b \x01(\tR\bprovince\x12\x12\n" +
|
||||
"\x04city\x18\t \x01(\tR\x04city\x12\x16\n" +
|
||||
"\x06county\x18\n" +
|
||||
" \x01(\tR\x06county\x12\x18\n" +
|
||||
"\aaddress\x18\v \x01(\tR\aaddress\x12!\n" +
|
||||
"\fcompany_name\x18\f \x01(\tR\vcompanyName\x12\x18\n" +
|
||||
"\acontact\x18\r \x01(\tR\acontact\x12\x16\n" +
|
||||
"\x06mobile\x18\x0e \x01(\tR\x06mobile\x12\x19\n" +
|
||||
"\bpdf_code\x18\x0f \x01(\tR\apdfCode\x12\x14\n" +
|
||||
"\x05other\x18\x10 \x01(\tR\x05other\"\x1b\n" +
|
||||
"\tIdRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\"O\n" +
|
||||
"\rStatusRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
|
||||
"\x06status\x18\x02 \x01(\x05R\x06status\x12\x16\n" +
|
||||
"\x06reason\x18\x03 \x01(\tR\x06reason2\x93\x04\n" +
|
||||
"\aExpress\x12U\n" +
|
||||
"\x05Items\x12\x15.express.EmtpyRequest\x1a\x11.express.Response\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\x12\x17/admin/v3/express/items\x12X\n" +
|
||||
"\x06Create\x12\x16.express.CreateRequest\x1a\x11.express.Response\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/admin/v3/express/create\x12T\n" +
|
||||
"\x04Edit\x12\x16.express.CreateRequest\x1a\x11.express.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/admin/v3/express/edit\x12P\n" +
|
||||
"\x04Info\x12\x12.express.IdRequest\x1a\x11.express.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\x12\x16/admin/v3/express/info\x12U\n" +
|
||||
"\x05Names\x12\x15.express.EmtpyRequest\x1a\x11.express.Response\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\x12\x17/admin/v3/express/names\x12X\n" +
|
||||
"\x06Status\x12\x16.express.StatusRequest\x1a\x11.express.Response\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/admin/v3/express/statusB\vZ\t./expressb\x06proto3"
|
||||
|
||||
var (
|
||||
file_express_express_proto_rawDescOnce sync.Once
|
||||
@@ -190,19 +442,29 @@ func file_express_express_proto_rawDescGZIP() []byte {
|
||||
return file_express_express_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_express_express_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_express_express_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_express_express_proto_goTypes = []any{
|
||||
(*Request)(nil), // 0: express.Request
|
||||
(*Response)(nil), // 1: express.Response
|
||||
(*EmtpyRequest)(nil), // 2: express.EmtpyRequest
|
||||
(*Response)(nil), // 0: express.Response
|
||||
(*EmtpyRequest)(nil), // 1: express.EmtpyRequest
|
||||
(*CreateRequest)(nil), // 2: express.CreateRequest
|
||||
(*IdRequest)(nil), // 3: express.IdRequest
|
||||
(*StatusRequest)(nil), // 4: express.StatusRequest
|
||||
}
|
||||
var file_express_express_proto_depIdxs = []int32{
|
||||
0, // 0: express.Express.Ping:input_type -> express.Request
|
||||
2, // 1: express.Express.Items:input_type -> express.EmtpyRequest
|
||||
1, // 2: express.Express.Ping:output_type -> express.Response
|
||||
1, // 3: express.Express.Items:output_type -> express.Response
|
||||
2, // [2:4] is the sub-list for method output_type
|
||||
0, // [0:2] is the sub-list for method input_type
|
||||
1, // 0: express.Express.Items:input_type -> express.EmtpyRequest
|
||||
2, // 1: express.Express.Create:input_type -> express.CreateRequest
|
||||
2, // 2: express.Express.Edit:input_type -> express.CreateRequest
|
||||
3, // 3: express.Express.Info:input_type -> express.IdRequest
|
||||
1, // 4: express.Express.Names:input_type -> express.EmtpyRequest
|
||||
4, // 5: express.Express.Status:input_type -> express.StatusRequest
|
||||
0, // 6: express.Express.Items:output_type -> express.Response
|
||||
0, // 7: express.Express.Create:output_type -> express.Response
|
||||
0, // 8: express.Express.Edit:output_type -> express.Response
|
||||
0, // 9: express.Express.Info:output_type -> express.Response
|
||||
0, // 10: express.Express.Names:output_type -> express.Response
|
||||
0, // 11: express.Express.Status:output_type -> express.Response
|
||||
6, // [6:12] is the sub-list for method output_type
|
||||
0, // [0:6] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
@@ -219,7 +481,7 @@ func file_express_express_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_express_express_proto_rawDesc), len(file_express_express_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 3,
|
||||
NumMessages: 5,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
@@ -19,16 +19,24 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Express_Ping_FullMethodName = "/express.Express/Ping"
|
||||
Express_Items_FullMethodName = "/express.Express/Items"
|
||||
Express_Items_FullMethodName = "/express.Express/Items"
|
||||
Express_Create_FullMethodName = "/express.Express/Create"
|
||||
Express_Edit_FullMethodName = "/express.Express/Edit"
|
||||
Express_Info_FullMethodName = "/express.Express/Info"
|
||||
Express_Names_FullMethodName = "/express.Express/Names"
|
||||
Express_Status_FullMethodName = "/express.Express/Status"
|
||||
)
|
||||
|
||||
// ExpressClient is the client API for Express service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type ExpressClient interface {
|
||||
Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
|
||||
Items(ctx context.Context, in *EmtpyRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
Edit(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
Info(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
Names(ctx context.Context, in *EmtpyRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
}
|
||||
|
||||
type expressClient struct {
|
||||
@@ -39,16 +47,6 @@ func NewExpressClient(cc grpc.ClientConnInterface) ExpressClient {
|
||||
return &expressClient{cc}
|
||||
}
|
||||
|
||||
func (c *expressClient) Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Express_Ping_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *expressClient) Items(ctx context.Context, in *EmtpyRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
@@ -59,12 +57,66 @@ func (c *expressClient) Items(ctx context.Context, in *EmtpyRequest, opts ...grp
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *expressClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Express_Create_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *expressClient) Edit(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Express_Edit_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *expressClient) Info(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Express_Info_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *expressClient) Names(ctx context.Context, in *EmtpyRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Express_Names_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *expressClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Express_Status_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ExpressServer is the server API for Express service.
|
||||
// All implementations must embed UnimplementedExpressServer
|
||||
// for forward compatibility.
|
||||
type ExpressServer interface {
|
||||
Ping(context.Context, *Request) (*Response, error)
|
||||
Items(context.Context, *EmtpyRequest) (*Response, error)
|
||||
Create(context.Context, *CreateRequest) (*Response, error)
|
||||
Edit(context.Context, *CreateRequest) (*Response, error)
|
||||
Info(context.Context, *IdRequest) (*Response, error)
|
||||
Names(context.Context, *EmtpyRequest) (*Response, error)
|
||||
Status(context.Context, *StatusRequest) (*Response, error)
|
||||
mustEmbedUnimplementedExpressServer()
|
||||
}
|
||||
|
||||
@@ -75,12 +127,24 @@ type ExpressServer interface {
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedExpressServer struct{}
|
||||
|
||||
func (UnimplementedExpressServer) Ping(context.Context, *Request) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Ping not implemented")
|
||||
}
|
||||
func (UnimplementedExpressServer) Items(context.Context, *EmtpyRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Items not implemented")
|
||||
}
|
||||
func (UnimplementedExpressServer) Create(context.Context, *CreateRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedExpressServer) Edit(context.Context, *CreateRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Edit not implemented")
|
||||
}
|
||||
func (UnimplementedExpressServer) Info(context.Context, *IdRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Info not implemented")
|
||||
}
|
||||
func (UnimplementedExpressServer) Names(context.Context, *EmtpyRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Names not implemented")
|
||||
}
|
||||
func (UnimplementedExpressServer) Status(context.Context, *StatusRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Status not implemented")
|
||||
}
|
||||
func (UnimplementedExpressServer) mustEmbedUnimplementedExpressServer() {}
|
||||
func (UnimplementedExpressServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -102,24 +166,6 @@ func RegisterExpressServer(s grpc.ServiceRegistrar, srv ExpressServer) {
|
||||
s.RegisterService(&Express_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _Express_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(Request)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ExpressServer).Ping(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Express_Ping_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ExpressServer).Ping(ctx, req.(*Request))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Express_Items_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(EmtpyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -138,6 +184,96 @@ func _Express_Items_Handler(srv interface{}, ctx context.Context, dec func(inter
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Express_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ExpressServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Express_Create_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ExpressServer).Create(ctx, req.(*CreateRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Express_Edit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ExpressServer).Edit(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Express_Edit_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ExpressServer).Edit(ctx, req.(*CreateRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Express_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ExpressServer).Info(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Express_Info_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ExpressServer).Info(ctx, req.(*IdRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Express_Names_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(EmtpyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ExpressServer).Names(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Express_Names_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ExpressServer).Names(ctx, req.(*EmtpyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Express_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(StatusRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ExpressServer).Status(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Express_Status_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ExpressServer).Status(ctx, req.(*StatusRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// Express_ServiceDesc is the grpc.ServiceDesc for Express service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -145,14 +281,30 @@ var Express_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "express.Express",
|
||||
HandlerType: (*ExpressServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Ping",
|
||||
Handler: _Express_Ping_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Items",
|
||||
Handler: _Express_Items_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _Express_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Edit",
|
||||
Handler: _Express_Edit_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Info",
|
||||
Handler: _Express_Info_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Names",
|
||||
Handler: _Express_Names_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Status",
|
||||
Handler: _Express_Status_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "express/express.proto",
|
||||
|
||||
Reference in New Issue
Block a user