epuiment
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 44s
CI / admin (push) Successful in 39s
CI / bff (push) Successful in 32s
CI / chore (push) Successful in 38s
CI / express (push) Successful in 42s
CI / product (push) Successful in 43s
CI / sale (push) Successful in 42s
CI / task (push) Successful in 42s
CI / user (push) Successful in 42s
CI / wecom (push) Successful in 41s
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 44s
CI / admin (push) Successful in 39s
CI / bff (push) Successful in 32s
CI / chore (push) Successful in 38s
CI / express (push) Successful in 42s
CI / product (push) Successful in 43s
CI / sale (push) Successful in 42s
CI / task (push) Successful in 42s
CI / user (push) Successful in 42s
CI / wecom (push) Successful in 41s
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,84 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package equipment;
|
||||
option go_package="./equipment";
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
message Response {
|
||||
int32 code = 1;
|
||||
string msg = 2;
|
||||
string data = 3;
|
||||
}
|
||||
|
||||
message CreateRequest {
|
||||
string hardware_version =1;
|
||||
string version =2;
|
||||
string firmware_src =3;
|
||||
string describe =4;
|
||||
int32 type =5;
|
||||
string soft_src =6;
|
||||
string add_src =7;
|
||||
string soft_config =8;
|
||||
}
|
||||
|
||||
message EditRequest {
|
||||
int64 id = 1;
|
||||
string hardware_version =2;
|
||||
string version =3;
|
||||
string firmware_src =4;
|
||||
string describe =5;
|
||||
int32 type =6;
|
||||
string soft_src =7;
|
||||
string add_src =8;
|
||||
string soft_config =9;
|
||||
}
|
||||
|
||||
message ItemsRequest {
|
||||
int32 page = 1;
|
||||
int32 size =2;
|
||||
int32 type =3;
|
||||
}
|
||||
|
||||
message IdRequest {
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message StatusRequest {
|
||||
int64 id = 1;
|
||||
int32 status = 2;
|
||||
string reason = 3;
|
||||
}
|
||||
|
||||
service Equipment {
|
||||
rpc Items(ItemsRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/equipment/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Info(IdRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/equipment/info"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Create(CreateRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/equipment/create"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Edit(EditRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/equipment/edit"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Status(StatusRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/equipment/status"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,565 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v4.25.8
|
||||
// source: equipment/equipment.proto
|
||||
|
||||
package equipment
|
||||
|
||||
import (
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type Response struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
||||
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
|
||||
Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Response) Reset() {
|
||||
*x = Response{}
|
||||
mi := &file_equipment_equipment_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Response) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Response) ProtoMessage() {}
|
||||
|
||||
func (x *Response) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_equipment_equipment_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 Response.ProtoReflect.Descriptor instead.
|
||||
func (*Response) Descriptor() ([]byte, []int) {
|
||||
return file_equipment_equipment_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Response) GetCode() int32 {
|
||||
if x != nil {
|
||||
return x.Code
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Response) GetMsg() string {
|
||||
if x != nil {
|
||||
return x.Msg
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Response) GetData() string {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type CreateRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
HardwareVersion string `protobuf:"bytes,1,opt,name=hardware_version,json=hardwareVersion,proto3" json:"hardware_version,omitempty"`
|
||||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
||||
FirmwareSrc string `protobuf:"bytes,3,opt,name=firmware_src,json=firmwareSrc,proto3" json:"firmware_src,omitempty"`
|
||||
Describe string `protobuf:"bytes,4,opt,name=describe,proto3" json:"describe,omitempty"`
|
||||
Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"`
|
||||
SoftSrc string `protobuf:"bytes,6,opt,name=soft_src,json=softSrc,proto3" json:"soft_src,omitempty"`
|
||||
AddSrc string `protobuf:"bytes,7,opt,name=add_src,json=addSrc,proto3" json:"add_src,omitempty"`
|
||||
SoftConfig string `protobuf:"bytes,8,opt,name=soft_config,json=softConfig,proto3" json:"soft_config,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CreateRequest) Reset() {
|
||||
*x = CreateRequest{}
|
||||
mi := &file_equipment_equipment_proto_msgTypes[1]
|
||||
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_equipment_equipment_proto_msgTypes[1]
|
||||
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_equipment_equipment_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetHardwareVersion() string {
|
||||
if x != nil {
|
||||
return x.HardwareVersion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetVersion() string {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetFirmwareSrc() string {
|
||||
if x != nil {
|
||||
return x.FirmwareSrc
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetDescribe() string {
|
||||
if x != nil {
|
||||
return x.Describe
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetType() int32 {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetSoftSrc() string {
|
||||
if x != nil {
|
||||
return x.SoftSrc
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetAddSrc() string {
|
||||
if x != nil {
|
||||
return x.AddSrc
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateRequest) GetSoftConfig() string {
|
||||
if x != nil {
|
||||
return x.SoftConfig
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type EditRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
HardwareVersion string `protobuf:"bytes,2,opt,name=hardware_version,json=hardwareVersion,proto3" json:"hardware_version,omitempty"`
|
||||
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
|
||||
FirmwareSrc string `protobuf:"bytes,4,opt,name=firmware_src,json=firmwareSrc,proto3" json:"firmware_src,omitempty"`
|
||||
Describe string `protobuf:"bytes,5,opt,name=describe,proto3" json:"describe,omitempty"`
|
||||
Type int32 `protobuf:"varint,6,opt,name=type,proto3" json:"type,omitempty"`
|
||||
SoftSrc string `protobuf:"bytes,7,opt,name=soft_src,json=softSrc,proto3" json:"soft_src,omitempty"`
|
||||
AddSrc string `protobuf:"bytes,8,opt,name=add_src,json=addSrc,proto3" json:"add_src,omitempty"`
|
||||
SoftConfig string `protobuf:"bytes,9,opt,name=soft_config,json=softConfig,proto3" json:"soft_config,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *EditRequest) Reset() {
|
||||
*x = EditRequest{}
|
||||
mi := &file_equipment_equipment_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *EditRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*EditRequest) ProtoMessage() {}
|
||||
|
||||
func (x *EditRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_equipment_equipment_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 EditRequest.ProtoReflect.Descriptor instead.
|
||||
func (*EditRequest) Descriptor() ([]byte, []int) {
|
||||
return file_equipment_equipment_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *EditRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *EditRequest) GetHardwareVersion() string {
|
||||
if x != nil {
|
||||
return x.HardwareVersion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *EditRequest) GetVersion() string {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *EditRequest) GetFirmwareSrc() string {
|
||||
if x != nil {
|
||||
return x.FirmwareSrc
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *EditRequest) GetDescribe() string {
|
||||
if x != nil {
|
||||
return x.Describe
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *EditRequest) GetType() int32 {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *EditRequest) GetSoftSrc() string {
|
||||
if x != nil {
|
||||
return x.SoftSrc
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *EditRequest) GetAddSrc() string {
|
||||
if x != nil {
|
||||
return x.AddSrc
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *EditRequest) GetSoftConfig() string {
|
||||
if x != nil {
|
||||
return x.SoftConfig
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ItemsRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
||||
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
||||
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ItemsRequest) Reset() {
|
||||
*x = ItemsRequest{}
|
||||
mi := &file_equipment_equipment_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ItemsRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ItemsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ItemsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_equipment_equipment_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 ItemsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ItemsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_equipment_equipment_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *ItemsRequest) GetPage() int32 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ItemsRequest) GetSize() int32 {
|
||||
if x != nil {
|
||||
return x.Size
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ItemsRequest) GetType() int32 {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
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_equipment_equipment_proto_msgTypes[4]
|
||||
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_equipment_equipment_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 IdRequest.ProtoReflect.Descriptor instead.
|
||||
func (*IdRequest) Descriptor() ([]byte, []int) {
|
||||
return file_equipment_equipment_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
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_equipment_equipment_proto_msgTypes[5]
|
||||
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_equipment_equipment_proto_msgTypes[5]
|
||||
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_equipment_equipment_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
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_equipment_equipment_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_equipment_equipment_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x19equipment/equipment.proto\x12\tequipment\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\"\xfc\x01\n" +
|
||||
"\rCreateRequest\x12)\n" +
|
||||
"\x10hardware_version\x18\x01 \x01(\tR\x0fhardwareVersion\x12\x18\n" +
|
||||
"\aversion\x18\x02 \x01(\tR\aversion\x12!\n" +
|
||||
"\ffirmware_src\x18\x03 \x01(\tR\vfirmwareSrc\x12\x1a\n" +
|
||||
"\bdescribe\x18\x04 \x01(\tR\bdescribe\x12\x12\n" +
|
||||
"\x04type\x18\x05 \x01(\x05R\x04type\x12\x19\n" +
|
||||
"\bsoft_src\x18\x06 \x01(\tR\asoftSrc\x12\x17\n" +
|
||||
"\aadd_src\x18\a \x01(\tR\x06addSrc\x12\x1f\n" +
|
||||
"\vsoft_config\x18\b \x01(\tR\n" +
|
||||
"softConfig\"\x8a\x02\n" +
|
||||
"\vEditRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12)\n" +
|
||||
"\x10hardware_version\x18\x02 \x01(\tR\x0fhardwareVersion\x12\x18\n" +
|
||||
"\aversion\x18\x03 \x01(\tR\aversion\x12!\n" +
|
||||
"\ffirmware_src\x18\x04 \x01(\tR\vfirmwareSrc\x12\x1a\n" +
|
||||
"\bdescribe\x18\x05 \x01(\tR\bdescribe\x12\x12\n" +
|
||||
"\x04type\x18\x06 \x01(\x05R\x04type\x12\x19\n" +
|
||||
"\bsoft_src\x18\a \x01(\tR\asoftSrc\x12\x17\n" +
|
||||
"\aadd_src\x18\b \x01(\tR\x06addSrc\x12\x1f\n" +
|
||||
"\vsoft_config\x18\t \x01(\tR\n" +
|
||||
"softConfig\"J\n" +
|
||||
"\fItemsRequest\x12\x12\n" +
|
||||
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x12\n" +
|
||||
"\x04size\x18\x02 \x01(\x05R\x04size\x12\x12\n" +
|
||||
"\x04type\x18\x03 \x01(\x05R\x04type\"\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\xda\x03\n" +
|
||||
"\tEquipment\x12[\n" +
|
||||
"\x05Items\x12\x17.equipment.ItemsRequest\x1a\x13.equipment.Response\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\x12\x19/admin/v3/equipment/items\x12V\n" +
|
||||
"\x04Info\x12\x14.equipment.IdRequest\x1a\x13.equipment.Response\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\x12\x18/admin/v3/equipment/info\x12^\n" +
|
||||
"\x06Create\x12\x18.equipment.CreateRequest\x1a\x13.equipment.Response\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/admin/v3/equipment/create\x12X\n" +
|
||||
"\x04Edit\x12\x16.equipment.EditRequest\x1a\x13.equipment.Response\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/admin/v3/equipment/edit\x12^\n" +
|
||||
"\x06Status\x12\x18.equipment.StatusRequest\x1a\x13.equipment.Response\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/admin/v3/equipment/statusB\rZ\v./equipmentb\x06proto3"
|
||||
|
||||
var (
|
||||
file_equipment_equipment_proto_rawDescOnce sync.Once
|
||||
file_equipment_equipment_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_equipment_equipment_proto_rawDescGZIP() []byte {
|
||||
file_equipment_equipment_proto_rawDescOnce.Do(func() {
|
||||
file_equipment_equipment_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_equipment_equipment_proto_rawDesc), len(file_equipment_equipment_proto_rawDesc)))
|
||||
})
|
||||
return file_equipment_equipment_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_equipment_equipment_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_equipment_equipment_proto_goTypes = []any{
|
||||
(*Response)(nil), // 0: equipment.Response
|
||||
(*CreateRequest)(nil), // 1: equipment.CreateRequest
|
||||
(*EditRequest)(nil), // 2: equipment.EditRequest
|
||||
(*ItemsRequest)(nil), // 3: equipment.ItemsRequest
|
||||
(*IdRequest)(nil), // 4: equipment.IdRequest
|
||||
(*StatusRequest)(nil), // 5: equipment.StatusRequest
|
||||
}
|
||||
var file_equipment_equipment_proto_depIdxs = []int32{
|
||||
3, // 0: equipment.Equipment.Items:input_type -> equipment.ItemsRequest
|
||||
4, // 1: equipment.Equipment.Info:input_type -> equipment.IdRequest
|
||||
1, // 2: equipment.Equipment.Create:input_type -> equipment.CreateRequest
|
||||
2, // 3: equipment.Equipment.Edit:input_type -> equipment.EditRequest
|
||||
5, // 4: equipment.Equipment.Status:input_type -> equipment.StatusRequest
|
||||
0, // 5: equipment.Equipment.Items:output_type -> equipment.Response
|
||||
0, // 6: equipment.Equipment.Info:output_type -> equipment.Response
|
||||
0, // 7: equipment.Equipment.Create:output_type -> equipment.Response
|
||||
0, // 8: equipment.Equipment.Edit:output_type -> equipment.Response
|
||||
0, // 9: equipment.Equipment.Status:output_type -> equipment.Response
|
||||
5, // [5:10] is the sub-list for method output_type
|
||||
0, // [0:5] 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
|
||||
}
|
||||
|
||||
func init() { file_equipment_equipment_proto_init() }
|
||||
func file_equipment_equipment_proto_init() {
|
||||
if File_equipment_equipment_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_equipment_equipment_proto_rawDesc), len(file_equipment_equipment_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 6,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_equipment_equipment_proto_goTypes,
|
||||
DependencyIndexes: file_equipment_equipment_proto_depIdxs,
|
||||
MessageInfos: file_equipment_equipment_proto_msgTypes,
|
||||
}.Build()
|
||||
File_equipment_equipment_proto = out.File
|
||||
file_equipment_equipment_proto_goTypes = nil
|
||||
file_equipment_equipment_proto_depIdxs = nil
|
||||
}
|
||||
@@ -0,0 +1,273 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v4.25.8
|
||||
// source: equipment/equipment.proto
|
||||
|
||||
package equipment
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Equipment_Items_FullMethodName = "/equipment.Equipment/Items"
|
||||
Equipment_Info_FullMethodName = "/equipment.Equipment/Info"
|
||||
Equipment_Create_FullMethodName = "/equipment.Equipment/Create"
|
||||
Equipment_Edit_FullMethodName = "/equipment.Equipment/Edit"
|
||||
Equipment_Status_FullMethodName = "/equipment.Equipment/Status"
|
||||
)
|
||||
|
||||
// EquipmentClient is the client API for Equipment 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 EquipmentClient interface {
|
||||
Items(ctx context.Context, in *ItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
Info(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
Edit(ctx context.Context, in *EditRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
}
|
||||
|
||||
type equipmentClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewEquipmentClient(cc grpc.ClientConnInterface) EquipmentClient {
|
||||
return &equipmentClient{cc}
|
||||
}
|
||||
|
||||
func (c *equipmentClient) Items(ctx context.Context, in *ItemsRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Equipment_Items_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *equipmentClient) 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, Equipment_Info_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *equipmentClient) 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, Equipment_Create_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *equipmentClient) Edit(ctx context.Context, in *EditRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Equipment_Edit_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *equipmentClient) 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, Equipment_Status_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// EquipmentServer is the server API for Equipment service.
|
||||
// All implementations must embed UnimplementedEquipmentServer
|
||||
// for forward compatibility.
|
||||
type EquipmentServer interface {
|
||||
Items(context.Context, *ItemsRequest) (*Response, error)
|
||||
Info(context.Context, *IdRequest) (*Response, error)
|
||||
Create(context.Context, *CreateRequest) (*Response, error)
|
||||
Edit(context.Context, *EditRequest) (*Response, error)
|
||||
Status(context.Context, *StatusRequest) (*Response, error)
|
||||
mustEmbedUnimplementedEquipmentServer()
|
||||
}
|
||||
|
||||
// UnimplementedEquipmentServer must be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedEquipmentServer struct{}
|
||||
|
||||
func (UnimplementedEquipmentServer) Items(context.Context, *ItemsRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Items not implemented")
|
||||
}
|
||||
func (UnimplementedEquipmentServer) Info(context.Context, *IdRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Info not implemented")
|
||||
}
|
||||
func (UnimplementedEquipmentServer) Create(context.Context, *CreateRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedEquipmentServer) Edit(context.Context, *EditRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Edit not implemented")
|
||||
}
|
||||
func (UnimplementedEquipmentServer) Status(context.Context, *StatusRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Status not implemented")
|
||||
}
|
||||
func (UnimplementedEquipmentServer) mustEmbedUnimplementedEquipmentServer() {}
|
||||
func (UnimplementedEquipmentServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeEquipmentServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to EquipmentServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeEquipmentServer interface {
|
||||
mustEmbedUnimplementedEquipmentServer()
|
||||
}
|
||||
|
||||
func RegisterEquipmentServer(s grpc.ServiceRegistrar, srv EquipmentServer) {
|
||||
// If the following call panics, it indicates UnimplementedEquipmentServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&Equipment_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _Equipment_Items_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ItemsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EquipmentServer).Items(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Equipment_Items_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EquipmentServer).Items(ctx, req.(*ItemsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Equipment_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.(EquipmentServer).Info(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Equipment_Info_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EquipmentServer).Info(ctx, req.(*IdRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Equipment_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.(EquipmentServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Equipment_Create_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EquipmentServer).Create(ctx, req.(*CreateRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Equipment_Edit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(EditRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EquipmentServer).Edit(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Equipment_Edit_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EquipmentServer).Edit(ctx, req.(*EditRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Equipment_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.(EquipmentServer).Status(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Equipment_Status_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EquipmentServer).Status(ctx, req.(*StatusRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// Equipment_ServiceDesc is the grpc.ServiceDesc for Equipment service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Equipment_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "equipment.Equipment",
|
||||
HandlerType: (*EquipmentServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Items",
|
||||
Handler: _Equipment_Items_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Info",
|
||||
Handler: _Equipment_Info_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _Equipment_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Edit",
|
||||
Handler: _Equipment_Edit_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Status",
|
||||
Handler: _Equipment_Status_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "equipment/equipment.proto",
|
||||
}
|
||||
Reference in New Issue
Block a user