| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.23.0
- // protoc v3.12.3
- // source: transform.proto
- package transform
- import (
- context "context"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- 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)
- )
- // This is a compile-time assertion that a sufficiently up-to-date version
- // of the legacy proto package is being used.
- const _ = proto.ProtoPackageIsVersion4
- type UserRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
- }
- func (x *UserRequest) Reset() {
- *x = UserRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transform_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserRequest) ProtoMessage() {}
- func (x *UserRequest) ProtoReflect() protoreflect.Message {
- mi := &file_transform_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserRequest.ProtoReflect.Descriptor instead.
- func (*UserRequest) Descriptor() ([]byte, []int) {
- return file_transform_proto_rawDescGZIP(), []int{0}
- }
- func (x *UserRequest) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *UserRequest) GetPhone() string {
- if x != nil {
- return x.Phone
- }
- return ""
- }
- type UserResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
- Roles string `protobuf:"bytes,3,opt,name=roles,proto3" json:"roles,omitempty"`
- Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
- ErpRoleType int64 `protobuf:"varint,5,opt,name=erpRoleType,proto3" json:"erpRoleType,omitempty"`
- UserName string `protobuf:"bytes,6,opt,name=userName,proto3" json:"userName,omitempty"`
- CityName string `protobuf:"bytes,7,opt,name=cityName,proto3" json:"cityName,omitempty"`
- Gender int64 `protobuf:"varint,8,opt,name=gender,proto3" json:"gender,omitempty"`
- }
- func (x *UserResponse) Reset() {
- *x = UserResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transform_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserResponse) ProtoMessage() {}
- func (x *UserResponse) ProtoReflect() protoreflect.Message {
- mi := &file_transform_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.
- func (*UserResponse) Descriptor() ([]byte, []int) {
- return file_transform_proto_rawDescGZIP(), []int{1}
- }
- func (x *UserResponse) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *UserResponse) GetPhone() string {
- if x != nil {
- return x.Phone
- }
- return ""
- }
- func (x *UserResponse) GetRoles() string {
- if x != nil {
- return x.Roles
- }
- return ""
- }
- func (x *UserResponse) GetStatus() int64 {
- if x != nil {
- return x.Status
- }
- return 0
- }
- func (x *UserResponse) GetErpRoleType() int64 {
- if x != nil {
- return x.ErpRoleType
- }
- return 0
- }
- func (x *UserResponse) GetUserName() string {
- if x != nil {
- return x.UserName
- }
- return ""
- }
- func (x *UserResponse) GetCityName() string {
- if x != nil {
- return x.CityName
- }
- return ""
- }
- func (x *UserResponse) GetGender() int64 {
- if x != nil {
- return x.Gender
- }
- return 0
- }
- type TokenRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
- }
- func (x *TokenRequest) Reset() {
- *x = TokenRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transform_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *TokenRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TokenRequest) ProtoMessage() {}
- func (x *TokenRequest) ProtoReflect() protoreflect.Message {
- mi := &file_transform_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TokenRequest.ProtoReflect.Descriptor instead.
- func (*TokenRequest) Descriptor() ([]byte, []int) {
- return file_transform_proto_rawDescGZIP(), []int{2}
- }
- func (x *TokenRequest) GetToken() string {
- if x != nil {
- return x.Token
- }
- return ""
- }
- type TokenResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
- UserRoleIds string `protobuf:"bytes,2,opt,name=UserRoleIds,proto3" json:"UserRoleIds,omitempty"`
- UserSchoolIds string `protobuf:"bytes,3,opt,name=UserSchoolIds,proto3" json:"UserSchoolIds,omitempty"`
- UserProvinceIds string `protobuf:"bytes,4,opt,name=UserProvinceIds,proto3" json:"UserProvinceIds,omitempty"`
- UserOrganIds string `protobuf:"bytes,5,opt,name=UserOrganIds,proto3" json:"UserOrganIds,omitempty"`
- SysSchoolId string `protobuf:"bytes,6,opt,name=SysSchoolId,proto3" json:"SysSchoolId,omitempty"`
- SysOrganId string `protobuf:"bytes,7,opt,name=SysOrganId,proto3" json:"SysOrganId,omitempty"`
- }
- func (x *TokenResponse) Reset() {
- *x = TokenResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transform_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *TokenResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TokenResponse) ProtoMessage() {}
- func (x *TokenResponse) ProtoReflect() protoreflect.Message {
- mi := &file_transform_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead.
- func (*TokenResponse) Descriptor() ([]byte, []int) {
- return file_transform_proto_rawDescGZIP(), []int{3}
- }
- func (x *TokenResponse) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *TokenResponse) GetUserRoleIds() string {
- if x != nil {
- return x.UserRoleIds
- }
- return ""
- }
- func (x *TokenResponse) GetUserSchoolIds() string {
- if x != nil {
- return x.UserSchoolIds
- }
- return ""
- }
- func (x *TokenResponse) GetUserProvinceIds() string {
- if x != nil {
- return x.UserProvinceIds
- }
- return ""
- }
- func (x *TokenResponse) GetUserOrganIds() string {
- if x != nil {
- return x.UserOrganIds
- }
- return ""
- }
- func (x *TokenResponse) GetSysSchoolId() string {
- if x != nil {
- return x.SysSchoolId
- }
- return ""
- }
- func (x *TokenResponse) GetSysOrganId() string {
- if x != nil {
- return x.SysOrganId
- }
- return ""
- }
- type Empty struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *Empty) Reset() {
- *x = Empty{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transform_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Empty) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Empty) ProtoMessage() {}
- func (x *Empty) ProtoReflect() protoreflect.Message {
- mi := &file_transform_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Empty.ProtoReflect.Descriptor instead.
- func (*Empty) Descriptor() ([]byte, []int) {
- return file_transform_proto_rawDescGZIP(), []int{4}
- }
- type TreeNodes struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Nodes []*TreeNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
- }
- func (x *TreeNodes) Reset() {
- *x = TreeNodes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transform_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *TreeNodes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TreeNodes) ProtoMessage() {}
- func (x *TreeNodes) ProtoReflect() protoreflect.Message {
- mi := &file_transform_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TreeNodes.ProtoReflect.Descriptor instead.
- func (*TreeNodes) Descriptor() ([]byte, []int) {
- return file_transform_proto_rawDescGZIP(), []int{5}
- }
- func (x *TreeNodes) GetNodes() []*TreeNode {
- if x != nil {
- return x.Nodes
- }
- return nil
- }
- type TreeNode struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
- Parent int64 `protobuf:"varint,3,opt,name=parent,proto3" json:"parent,omitempty"`
- Tag *Tag `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
- Nodes []*TreeNode `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"`
- }
- func (x *TreeNode) Reset() {
- *x = TreeNode{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transform_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *TreeNode) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TreeNode) ProtoMessage() {}
- func (x *TreeNode) ProtoReflect() protoreflect.Message {
- mi := &file_transform_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TreeNode.ProtoReflect.Descriptor instead.
- func (*TreeNode) Descriptor() ([]byte, []int) {
- return file_transform_proto_rawDescGZIP(), []int{6}
- }
- func (x *TreeNode) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *TreeNode) GetText() string {
- if x != nil {
- return x.Text
- }
- return ""
- }
- func (x *TreeNode) GetParent() int64 {
- if x != nil {
- return x.Parent
- }
- return 0
- }
- func (x *TreeNode) GetTag() *Tag {
- if x != nil {
- return x.Tag
- }
- return nil
- }
- func (x *TreeNode) GetNodes() []*TreeNode {
- if x != nil {
- return x.Nodes
- }
- return nil
- }
- type Tag struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- }
- func (x *Tag) Reset() {
- *x = Tag{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transform_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Tag) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Tag) ProtoMessage() {}
- func (x *Tag) ProtoReflect() protoreflect.Message {
- mi := &file_transform_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Tag.ProtoReflect.Descriptor instead.
- func (*Tag) Descriptor() ([]byte, []int) {
- return file_transform_proto_rawDescGZIP(), []int{7}
- }
- func (x *Tag) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *Tag) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- type OptionCode struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
- }
- func (x *OptionCode) Reset() {
- *x = OptionCode{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transform_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *OptionCode) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*OptionCode) ProtoMessage() {}
- func (x *OptionCode) ProtoReflect() protoreflect.Message {
- mi := &file_transform_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use OptionCode.ProtoReflect.Descriptor instead.
- func (*OptionCode) Descriptor() ([]byte, []int) {
- return file_transform_proto_rawDescGZIP(), []int{8}
- }
- func (x *OptionCode) GetCode() string {
- if x != nil {
- return x.Code
- }
- return ""
- }
- type Options struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
- }
- func (x *Options) Reset() {
- *x = Options{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transform_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Options) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Options) ProtoMessage() {}
- func (x *Options) ProtoReflect() protoreflect.Message {
- mi := &file_transform_proto_msgTypes[9]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Options.ProtoReflect.Descriptor instead.
- func (*Options) Descriptor() ([]byte, []int) {
- return file_transform_proto_rawDescGZIP(), []int{9}
- }
- func (x *Options) GetCode() string {
- if x != nil {
- return x.Code
- }
- return ""
- }
- func (x *Options) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *Options) GetValue() string {
- if x != nil {
- return x.Value
- }
- return ""
- }
- type ResponseByte struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
- }
- func (x *ResponseByte) Reset() {
- *x = ResponseByte{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transform_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ResponseByte) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ResponseByte) ProtoMessage() {}
- func (x *ResponseByte) ProtoReflect() protoreflect.Message {
- mi := &file_transform_proto_msgTypes[10]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ResponseByte.ProtoReflect.Descriptor instead.
- func (*ResponseByte) Descriptor() ([]byte, []int) {
- return file_transform_proto_rawDescGZIP(), []int{10}
- }
- func (x *ResponseByte) GetData() []byte {
- if x != nil {
- return x.Data
- }
- return nil
- }
- var File_transform_proto protoreflect.FileDescriptor
- var file_transform_proto_rawDesc = []byte{
- 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x12, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x1a, 0x17, 0x62, 0x61,
- 0x73, 0x65, 0x5f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x5f, 0x73, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x2e,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0xd4, 0x01, 0x0a, 0x0c, 0x55,
- 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
- 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70,
- 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e,
- 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
- 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
- 0x20, 0x0a, 0x0b, 0x65, 0x72, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x72, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x79, 0x70,
- 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a,
- 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e,
- 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65,
- 0x72, 0x22, 0x24, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xff, 0x01, 0x0a, 0x0d, 0x54, 0x6f, 0x6b, 0x65,
- 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65,
- 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49,
- 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x73,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65,
- 0x49, 0x64, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x53, 0x63, 0x68, 0x6f, 0x6f,
- 0x6c, 0x49, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x55, 0x73, 0x65, 0x72,
- 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x55, 0x73, 0x65,
- 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65,
- 0x49, 0x64, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e,
- 0x49, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x4f,
- 0x72, 0x67, 0x61, 0x6e, 0x49, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x53, 0x63,
- 0x68, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x53, 0x79,
- 0x73, 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x79, 0x73,
- 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x53,
- 0x79, 0x73, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70,
- 0x74, 0x79, 0x22, 0x36, 0x0a, 0x09, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12,
- 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13,
- 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e,
- 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x08, 0x54,
- 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70,
- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x0e, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x61, 0x67,
- 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05,
- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d,
- 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73,
- 0x22, 0x29, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x4f,
- 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x47, 0x0a,
- 0x07, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04,
- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
- 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x42, 0x79, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xb6, 0x03, 0x0a, 0x09, 0x54,
- 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x3a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55,
- 0x73, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
- 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x72,
- 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
- 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x73, 0x65, 0x54, 0x6f, 0x6b,
- 0x65, 0x6e, 0x12, 0x17, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54,
- 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x72,
- 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x43,
- 0x69, 0x74, 0x79, 0x54, 0x72, 0x65, 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66,
- 0x6f, 0x72, 0x6d, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x74, 0x72, 0x61, 0x6e,
- 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12,
- 0x3c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
- 0x65, 0x74, 0x12, 0x15, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x4f,
- 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x1a, 0x12, 0x2e, 0x74, 0x72, 0x61, 0x6e,
- 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x44, 0x0a,
- 0x1a, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4d, 0x6b, 0x74, 0x4e, 0x65, 0x74, 0x57, 0x6f, 0x72,
- 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x54, 0x72, 0x65, 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72,
- 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e,
- 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f,
- 0x64, 0x65, 0x73, 0x12, 0x6e, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4f, 0x72, 0x67,
- 0x61, 0x6e, 0x53, 0x63, 0x68, 0x50, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
- 0x12, 0x27, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x47, 0x65, 0x74,
- 0x45, 0x72, 0x70, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x53, 0x63, 0x68, 0x50, 0x65, 0x72, 0x42, 0x79,
- 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x28, 0x2e, 0x74, 0x72, 0x61, 0x6e,
- 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4f, 0x72, 0x67, 0x61,
- 0x6e, 0x53, 0x63, 0x68, 0x50, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52,
- 0x65, 0x73, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_transform_proto_rawDescOnce sync.Once
- file_transform_proto_rawDescData = file_transform_proto_rawDesc
- )
- func file_transform_proto_rawDescGZIP() []byte {
- file_transform_proto_rawDescOnce.Do(func() {
- file_transform_proto_rawDescData = protoimpl.X.CompressGZIP(file_transform_proto_rawDescData)
- })
- return file_transform_proto_rawDescData
- }
- var file_transform_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
- var file_transform_proto_goTypes = []interface{}{
- (*UserRequest)(nil), // 0: transform.UserRequest
- (*UserResponse)(nil), // 1: transform.UserResponse
- (*TokenRequest)(nil), // 2: transform.TokenRequest
- (*TokenResponse)(nil), // 3: transform.TokenResponse
- (*Empty)(nil), // 4: transform.Empty
- (*TreeNodes)(nil), // 5: transform.TreeNodes
- (*TreeNode)(nil), // 6: transform.TreeNode
- (*Tag)(nil), // 7: transform.Tag
- (*OptionCode)(nil), // 8: transform.OptionCode
- (*Options)(nil), // 9: transform.Options
- (*ResponseByte)(nil), // 10: transform.ResponseByte
- (*GetErpOrganSchPerByUserIdReq)(nil), // 11: transform.GetErpOrganSchPerByUserIdReq
- (*GetErpOrganSchPerByUserIdResp)(nil), // 12: transform.GetErpOrganSchPerByUserIdResp
- }
- var file_transform_proto_depIdxs = []int32{
- 6, // 0: transform.TreeNodes.nodes:type_name -> transform.TreeNode
- 7, // 1: transform.TreeNode.tag:type_name -> transform.Tag
- 6, // 2: transform.TreeNode.nodes:type_name -> transform.TreeNode
- 0, // 3: transform.Transform.GetUser:input_type -> transform.UserRequest
- 2, // 4: transform.Transform.ParseToken:input_type -> transform.TokenRequest
- 4, // 5: transform.Transform.GetErpCityTree:input_type -> transform.Empty
- 8, // 6: transform.Transform.GetErpOptionset:input_type -> transform.OptionCode
- 4, // 7: transform.Transform.GetErpMktNetWorkDetailTree:input_type -> transform.Empty
- 11, // 8: transform.Transform.GetErpOrganSchPerByUserId:input_type -> transform.GetErpOrganSchPerByUserIdReq
- 1, // 9: transform.Transform.GetUser:output_type -> transform.UserResponse
- 3, // 10: transform.Transform.ParseToken:output_type -> transform.TokenResponse
- 5, // 11: transform.Transform.GetErpCityTree:output_type -> transform.TreeNodes
- 9, // 12: transform.Transform.GetErpOptionset:output_type -> transform.Options
- 5, // 13: transform.Transform.GetErpMktNetWorkDetailTree:output_type -> transform.TreeNodes
- 12, // 14: transform.Transform.GetErpOrganSchPerByUserId:output_type -> transform.GetErpOrganSchPerByUserIdResp
- 9, // [9:15] is the sub-list for method output_type
- 3, // [3:9] is the sub-list for method input_type
- 3, // [3:3] is the sub-list for extension type_name
- 3, // [3:3] is the sub-list for extension extendee
- 0, // [0:3] is the sub-list for field type_name
- }
- func init() { file_transform_proto_init() }
- func file_transform_proto_init() {
- if File_transform_proto != nil {
- return
- }
- file_base_organ_school_proto_init()
- if !protoimpl.UnsafeEnabled {
- file_transform_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_transform_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_transform_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*TokenRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_transform_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*TokenResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_transform_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Empty); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_transform_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*TreeNodes); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_transform_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*TreeNode); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_transform_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Tag); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_transform_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*OptionCode); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_transform_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Options); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_transform_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ResponseByte); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_transform_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 11,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_transform_proto_goTypes,
- DependencyIndexes: file_transform_proto_depIdxs,
- MessageInfos: file_transform_proto_msgTypes,
- }.Build()
- File_transform_proto = out.File
- file_transform_proto_rawDesc = nil
- file_transform_proto_goTypes = nil
- file_transform_proto_depIdxs = nil
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // TransformClient is the client API for Transform service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type TransformClient interface {
- GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
- ParseToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error)
- //获取erp 省、城市树
- GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
- //获取erp 字典
- GetErpOptionset(ctx context.Context, in *OptionCode, opts ...grpc.CallOption) (*Options, error)
- //获取erp 渠道细分树
- GetErpMktNetWorkDetailTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
- //获取erp 用户权限
- GetErpOrganSchPerByUserId(ctx context.Context, in *GetErpOrganSchPerByUserIdReq, opts ...grpc.CallOption) (*GetErpOrganSchPerByUserIdResp, error)
- }
- type transformClient struct {
- cc grpc.ClientConnInterface
- }
- func NewTransformClient(cc grpc.ClientConnInterface) TransformClient {
- return &transformClient{cc}
- }
- func (c *transformClient) GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error) {
- out := new(UserResponse)
- err := c.cc.Invoke(ctx, "/transform.Transform/GetUser", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *transformClient) ParseToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) {
- out := new(TokenResponse)
- err := c.cc.Invoke(ctx, "/transform.Transform/ParseToken", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *transformClient) GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error) {
- out := new(TreeNodes)
- err := c.cc.Invoke(ctx, "/transform.Transform/GetErpCityTree", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *transformClient) GetErpOptionset(ctx context.Context, in *OptionCode, opts ...grpc.CallOption) (*Options, error) {
- out := new(Options)
- err := c.cc.Invoke(ctx, "/transform.Transform/GetErpOptionset", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *transformClient) GetErpMktNetWorkDetailTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error) {
- out := new(TreeNodes)
- err := c.cc.Invoke(ctx, "/transform.Transform/GetErpMktNetWorkDetailTree", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *transformClient) GetErpOrganSchPerByUserId(ctx context.Context, in *GetErpOrganSchPerByUserIdReq, opts ...grpc.CallOption) (*GetErpOrganSchPerByUserIdResp, error) {
- out := new(GetErpOrganSchPerByUserIdResp)
- err := c.cc.Invoke(ctx, "/transform.Transform/GetErpOrganSchPerByUserId", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // TransformServer is the server API for Transform service.
- type TransformServer interface {
- GetUser(context.Context, *UserRequest) (*UserResponse, error)
- ParseToken(context.Context, *TokenRequest) (*TokenResponse, error)
- //获取erp 省、城市树
- GetErpCityTree(context.Context, *Empty) (*TreeNodes, error)
- //获取erp 字典
- GetErpOptionset(context.Context, *OptionCode) (*Options, error)
- //获取erp 渠道细分树
- GetErpMktNetWorkDetailTree(context.Context, *Empty) (*TreeNodes, error)
- //获取erp 用户权限
- GetErpOrganSchPerByUserId(context.Context, *GetErpOrganSchPerByUserIdReq) (*GetErpOrganSchPerByUserIdResp, error)
- }
- // UnimplementedTransformServer can be embedded to have forward compatible implementations.
- type UnimplementedTransformServer struct {
- }
- func (*UnimplementedTransformServer) GetUser(context.Context, *UserRequest) (*UserResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
- }
- func (*UnimplementedTransformServer) ParseToken(context.Context, *TokenRequest) (*TokenResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ParseToken not implemented")
- }
- func (*UnimplementedTransformServer) GetErpCityTree(context.Context, *Empty) (*TreeNodes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetErpCityTree not implemented")
- }
- func (*UnimplementedTransformServer) GetErpOptionset(context.Context, *OptionCode) (*Options, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetErpOptionset not implemented")
- }
- func (*UnimplementedTransformServer) GetErpMktNetWorkDetailTree(context.Context, *Empty) (*TreeNodes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetErpMktNetWorkDetailTree not implemented")
- }
- func (*UnimplementedTransformServer) GetErpOrganSchPerByUserId(context.Context, *GetErpOrganSchPerByUserIdReq) (*GetErpOrganSchPerByUserIdResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetErpOrganSchPerByUserId not implemented")
- }
- func RegisterTransformServer(s *grpc.Server, srv TransformServer) {
- s.RegisterService(&_Transform_serviceDesc, srv)
- }
- func _Transform_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(TransformServer).GetUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/transform.Transform/GetUser",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(TransformServer).GetUser(ctx, req.(*UserRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Transform_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(TokenRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(TransformServer).ParseToken(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/transform.Transform/ParseToken",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(TransformServer).ParseToken(ctx, req.(*TokenRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Transform_GetErpCityTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(Empty)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(TransformServer).GetErpCityTree(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/transform.Transform/GetErpCityTree",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(TransformServer).GetErpCityTree(ctx, req.(*Empty))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Transform_GetErpOptionset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(OptionCode)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(TransformServer).GetErpOptionset(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/transform.Transform/GetErpOptionset",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(TransformServer).GetErpOptionset(ctx, req.(*OptionCode))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Transform_GetErpMktNetWorkDetailTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(Empty)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(TransformServer).GetErpMktNetWorkDetailTree(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/transform.Transform/GetErpMktNetWorkDetailTree",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(TransformServer).GetErpMktNetWorkDetailTree(ctx, req.(*Empty))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Transform_GetErpOrganSchPerByUserId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetErpOrganSchPerByUserIdReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(TransformServer).GetErpOrganSchPerByUserId(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/transform.Transform/GetErpOrganSchPerByUserId",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(TransformServer).GetErpOrganSchPerByUserId(ctx, req.(*GetErpOrganSchPerByUserIdReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Transform_serviceDesc = grpc.ServiceDesc{
- ServiceName: "transform.Transform",
- HandlerType: (*TransformServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "GetUser",
- Handler: _Transform_GetUser_Handler,
- },
- {
- MethodName: "ParseToken",
- Handler: _Transform_ParseToken_Handler,
- },
- {
- MethodName: "GetErpCityTree",
- Handler: _Transform_GetErpCityTree_Handler,
- },
- {
- MethodName: "GetErpOptionset",
- Handler: _Transform_GetErpOptionset_Handler,
- },
- {
- MethodName: "GetErpMktNetWorkDetailTree",
- Handler: _Transform_GetErpMktNetWorkDetailTree_Handler,
- },
- {
- MethodName: "GetErpOrganSchPerByUserId",
- Handler: _Transform_GetErpOrganSchPerByUserId_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "transform.proto",
- }
|