| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: transform.proto
- package transform
- import (
- context "context"
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- math "math"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- type UserRequest struct {
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *UserRequest) Reset() { *m = UserRequest{} }
- func (m *UserRequest) String() string { return proto.CompactTextString(m) }
- func (*UserRequest) ProtoMessage() {}
- func (*UserRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_cb4a498eeb2ba07d, []int{0}
- }
- func (m *UserRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UserRequest.Unmarshal(m, b)
- }
- func (m *UserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UserRequest.Marshal(b, m, deterministic)
- }
- func (m *UserRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UserRequest.Merge(m, src)
- }
- func (m *UserRequest) XXX_Size() int {
- return xxx_messageInfo_UserRequest.Size(m)
- }
- func (m *UserRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_UserRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_UserRequest proto.InternalMessageInfo
- func (m *UserRequest) GetId() string {
- if m != nil {
- return m.Id
- }
- return ""
- }
- func (m *UserRequest) GetPhone() string {
- if m != nil {
- return m.Phone
- }
- return ""
- }
- type UserResponse struct {
- 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"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *UserResponse) Reset() { *m = UserResponse{} }
- func (m *UserResponse) String() string { return proto.CompactTextString(m) }
- func (*UserResponse) ProtoMessage() {}
- func (*UserResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_cb4a498eeb2ba07d, []int{1}
- }
- func (m *UserResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_UserResponse.Unmarshal(m, b)
- }
- func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_UserResponse.Marshal(b, m, deterministic)
- }
- func (m *UserResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_UserResponse.Merge(m, src)
- }
- func (m *UserResponse) XXX_Size() int {
- return xxx_messageInfo_UserResponse.Size(m)
- }
- func (m *UserResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_UserResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_UserResponse proto.InternalMessageInfo
- func (m *UserResponse) GetId() string {
- if m != nil {
- return m.Id
- }
- return ""
- }
- func (m *UserResponse) GetPhone() string {
- if m != nil {
- return m.Phone
- }
- return ""
- }
- func (m *UserResponse) GetRoles() string {
- if m != nil {
- return m.Roles
- }
- return ""
- }
- func (m *UserResponse) GetStatus() int64 {
- if m != nil {
- return m.Status
- }
- return 0
- }
- func (m *UserResponse) GetErpRoleType() int64 {
- if m != nil {
- return m.ErpRoleType
- }
- return 0
- }
- func (m *UserResponse) GetUserName() string {
- if m != nil {
- return m.UserName
- }
- return ""
- }
- func (m *UserResponse) GetCityName() string {
- if m != nil {
- return m.CityName
- }
- return ""
- }
- func (m *UserResponse) GetGender() int64 {
- if m != nil {
- return m.Gender
- }
- return 0
- }
- type TokenRequest struct {
- Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *TokenRequest) Reset() { *m = TokenRequest{} }
- func (m *TokenRequest) String() string { return proto.CompactTextString(m) }
- func (*TokenRequest) ProtoMessage() {}
- func (*TokenRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_cb4a498eeb2ba07d, []int{2}
- }
- func (m *TokenRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_TokenRequest.Unmarshal(m, b)
- }
- func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_TokenRequest.Marshal(b, m, deterministic)
- }
- func (m *TokenRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_TokenRequest.Merge(m, src)
- }
- func (m *TokenRequest) XXX_Size() int {
- return xxx_messageInfo_TokenRequest.Size(m)
- }
- func (m *TokenRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_TokenRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_TokenRequest proto.InternalMessageInfo
- func (m *TokenRequest) GetToken() string {
- if m != nil {
- return m.Token
- }
- return ""
- }
- type TokenResponse struct {
- 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"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *TokenResponse) Reset() { *m = TokenResponse{} }
- func (m *TokenResponse) String() string { return proto.CompactTextString(m) }
- func (*TokenResponse) ProtoMessage() {}
- func (*TokenResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_cb4a498eeb2ba07d, []int{3}
- }
- func (m *TokenResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_TokenResponse.Unmarshal(m, b)
- }
- func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_TokenResponse.Marshal(b, m, deterministic)
- }
- func (m *TokenResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_TokenResponse.Merge(m, src)
- }
- func (m *TokenResponse) XXX_Size() int {
- return xxx_messageInfo_TokenResponse.Size(m)
- }
- func (m *TokenResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_TokenResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_TokenResponse proto.InternalMessageInfo
- func (m *TokenResponse) GetUserId() string {
- if m != nil {
- return m.UserId
- }
- return ""
- }
- func (m *TokenResponse) GetUserRoleIds() string {
- if m != nil {
- return m.UserRoleIds
- }
- return ""
- }
- func (m *TokenResponse) GetUserSchoolIds() string {
- if m != nil {
- return m.UserSchoolIds
- }
- return ""
- }
- func (m *TokenResponse) GetUserProvinceIds() string {
- if m != nil {
- return m.UserProvinceIds
- }
- return ""
- }
- func (m *TokenResponse) GetUserOrganIds() string {
- if m != nil {
- return m.UserOrganIds
- }
- return ""
- }
- func (m *TokenResponse) GetSysSchoolId() string {
- if m != nil {
- return m.SysSchoolId
- }
- return ""
- }
- func (m *TokenResponse) GetSysOrganId() string {
- if m != nil {
- return m.SysOrganId
- }
- return ""
- }
- type Empty struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Empty) Reset() { *m = Empty{} }
- func (m *Empty) String() string { return proto.CompactTextString(m) }
- func (*Empty) ProtoMessage() {}
- func (*Empty) Descriptor() ([]byte, []int) {
- return fileDescriptor_cb4a498eeb2ba07d, []int{4}
- }
- func (m *Empty) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_Empty.Unmarshal(m, b)
- }
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
- }
- func (m *Empty) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Empty.Merge(m, src)
- }
- func (m *Empty) XXX_Size() int {
- return xxx_messageInfo_Empty.Size(m)
- }
- func (m *Empty) XXX_DiscardUnknown() {
- xxx_messageInfo_Empty.DiscardUnknown(m)
- }
- var xxx_messageInfo_Empty proto.InternalMessageInfo
- type TreeNodes struct {
- Nodes []*TreeNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *TreeNodes) Reset() { *m = TreeNodes{} }
- func (m *TreeNodes) String() string { return proto.CompactTextString(m) }
- func (*TreeNodes) ProtoMessage() {}
- func (*TreeNodes) Descriptor() ([]byte, []int) {
- return fileDescriptor_cb4a498eeb2ba07d, []int{5}
- }
- func (m *TreeNodes) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_TreeNodes.Unmarshal(m, b)
- }
- func (m *TreeNodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_TreeNodes.Marshal(b, m, deterministic)
- }
- func (m *TreeNodes) XXX_Merge(src proto.Message) {
- xxx_messageInfo_TreeNodes.Merge(m, src)
- }
- func (m *TreeNodes) XXX_Size() int {
- return xxx_messageInfo_TreeNodes.Size(m)
- }
- func (m *TreeNodes) XXX_DiscardUnknown() {
- xxx_messageInfo_TreeNodes.DiscardUnknown(m)
- }
- var xxx_messageInfo_TreeNodes proto.InternalMessageInfo
- func (m *TreeNodes) GetNodes() []*TreeNode {
- if m != nil {
- return m.Nodes
- }
- return nil
- }
- type TreeNode struct {
- 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"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *TreeNode) Reset() { *m = TreeNode{} }
- func (m *TreeNode) String() string { return proto.CompactTextString(m) }
- func (*TreeNode) ProtoMessage() {}
- func (*TreeNode) Descriptor() ([]byte, []int) {
- return fileDescriptor_cb4a498eeb2ba07d, []int{6}
- }
- func (m *TreeNode) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_TreeNode.Unmarshal(m, b)
- }
- func (m *TreeNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_TreeNode.Marshal(b, m, deterministic)
- }
- func (m *TreeNode) XXX_Merge(src proto.Message) {
- xxx_messageInfo_TreeNode.Merge(m, src)
- }
- func (m *TreeNode) XXX_Size() int {
- return xxx_messageInfo_TreeNode.Size(m)
- }
- func (m *TreeNode) XXX_DiscardUnknown() {
- xxx_messageInfo_TreeNode.DiscardUnknown(m)
- }
- var xxx_messageInfo_TreeNode proto.InternalMessageInfo
- func (m *TreeNode) GetId() int64 {
- if m != nil {
- return m.Id
- }
- return 0
- }
- func (m *TreeNode) GetText() string {
- if m != nil {
- return m.Text
- }
- return ""
- }
- func (m *TreeNode) GetParent() int64 {
- if m != nil {
- return m.Parent
- }
- return 0
- }
- func (m *TreeNode) GetTag() *Tag {
- if m != nil {
- return m.Tag
- }
- return nil
- }
- func (m *TreeNode) GetNodes() []*TreeNode {
- if m != nil {
- return m.Nodes
- }
- return nil
- }
- type Tag struct {
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Tag) Reset() { *m = Tag{} }
- func (m *Tag) String() string { return proto.CompactTextString(m) }
- func (*Tag) ProtoMessage() {}
- func (*Tag) Descriptor() ([]byte, []int) {
- return fileDescriptor_cb4a498eeb2ba07d, []int{7}
- }
- func (m *Tag) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_Tag.Unmarshal(m, b)
- }
- func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_Tag.Marshal(b, m, deterministic)
- }
- func (m *Tag) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Tag.Merge(m, src)
- }
- func (m *Tag) XXX_Size() int {
- return xxx_messageInfo_Tag.Size(m)
- }
- func (m *Tag) XXX_DiscardUnknown() {
- xxx_messageInfo_Tag.DiscardUnknown(m)
- }
- var xxx_messageInfo_Tag proto.InternalMessageInfo
- func (m *Tag) GetId() int64 {
- if m != nil {
- return m.Id
- }
- return 0
- }
- func (m *Tag) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- func init() {
- proto.RegisterType((*UserRequest)(nil), "transform.UserRequest")
- proto.RegisterType((*UserResponse)(nil), "transform.UserResponse")
- proto.RegisterType((*TokenRequest)(nil), "transform.TokenRequest")
- proto.RegisterType((*TokenResponse)(nil), "transform.TokenResponse")
- proto.RegisterType((*Empty)(nil), "transform.Empty")
- proto.RegisterType((*TreeNodes)(nil), "transform.TreeNodes")
- proto.RegisterType((*TreeNode)(nil), "transform.TreeNode")
- proto.RegisterType((*Tag)(nil), "transform.Tag")
- }
- func init() { proto.RegisterFile("transform.proto", fileDescriptor_cb4a498eeb2ba07d) }
- var fileDescriptor_cb4a498eeb2ba07d = []byte{
- // 499 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x4d, 0x6e, 0xdb, 0x3c,
- 0x10, 0x85, 0x2c, 0xcb, 0x3f, 0xe3, 0xc4, 0xf9, 0xc0, 0xcf, 0x70, 0x05, 0x2f, 0x0a, 0x41, 0xc8,
- 0xc2, 0xd9, 0x64, 0xe1, 0x00, 0x45, 0xd1, 0x4d, 0x17, 0x45, 0x10, 0x64, 0x93, 0x06, 0xb2, 0x7b,
- 0x00, 0xd6, 0x9a, 0x2a, 0x42, 0x6d, 0x52, 0x25, 0xe9, 0xa2, 0x3a, 0x47, 0x6f, 0xd4, 0x33, 0xf4,
- 0x3e, 0x2d, 0x86, 0xa4, 0x12, 0xa6, 0x09, 0xd0, 0xee, 0xf8, 0xde, 0x3c, 0x0e, 0x67, 0x9e, 0x9e,
- 0x0d, 0x27, 0x46, 0x71, 0xa1, 0x3f, 0x49, 0xb5, 0x3f, 0x6f, 0x94, 0x34, 0x92, 0x8d, 0xef, 0x89,
- 0xfc, 0x02, 0x26, 0x1f, 0x34, 0xaa, 0x02, 0xbf, 0x1c, 0x50, 0x1b, 0x36, 0x85, 0x5e, 0x5d, 0xa6,
- 0x51, 0x16, 0x2d, 0xc7, 0x45, 0xaf, 0x2e, 0xd9, 0x0c, 0x92, 0xe6, 0x4e, 0x0a, 0x4c, 0x7b, 0x96,
- 0x72, 0x20, 0xff, 0x19, 0xc1, 0x91, 0xbb, 0xa5, 0x1b, 0x29, 0x34, 0xfe, 0xdb, 0x35, 0x62, 0x95,
- 0xdc, 0xa1, 0x4e, 0x63, 0xc7, 0x5a, 0xc0, 0xe6, 0x30, 0xd0, 0x86, 0x9b, 0x83, 0x4e, 0xfb, 0x59,
- 0xb4, 0x8c, 0x0b, 0x8f, 0x58, 0x06, 0x13, 0x54, 0x4d, 0x21, 0x77, 0xb8, 0x69, 0x1b, 0x4c, 0x13,
- 0x5b, 0x0c, 0x29, 0xb6, 0x80, 0xd1, 0x41, 0xa3, 0xba, 0xe1, 0x7b, 0x4c, 0x07, 0xb6, 0xe5, 0x3d,
- 0xa6, 0xda, 0xb6, 0x36, 0xad, 0xad, 0x0d, 0x5d, 0xad, 0xc3, 0xf4, 0x62, 0x85, 0xa2, 0x44, 0x95,
- 0x8e, 0xdc, 0x8b, 0x0e, 0xe5, 0xa7, 0x70, 0xb4, 0x91, 0x9f, 0x51, 0x74, 0x66, 0xcc, 0x20, 0x31,
- 0x84, 0xfd, 0x62, 0x0e, 0xe4, 0xbf, 0x22, 0x38, 0xf6, 0x32, 0xbf, 0xfd, 0x1c, 0x06, 0xe4, 0xc6,
- 0x75, 0xe7, 0x80, 0x47, 0xb4, 0x81, 0x75, 0x49, 0xee, 0xf0, 0xba, 0xd4, 0xde, 0x8b, 0x90, 0x62,
- 0xa7, 0x70, 0x4c, 0x70, 0xbd, 0xbd, 0x93, 0x72, 0x47, 0x1a, 0xe7, 0xcc, 0x63, 0x92, 0x2d, 0xe1,
- 0x84, 0x88, 0x5b, 0x25, 0xbf, 0xd6, 0x62, 0x6b, 0x7b, 0xf5, 0xad, 0xee, 0x4f, 0x9a, 0xe5, 0xee,
- 0xbb, 0xbc, 0x57, 0x15, 0x17, 0x24, 0x4b, 0xac, 0xec, 0x11, 0x47, 0x53, 0xad, 0x5b, 0xdd, 0x75,
- 0xf7, 0xc6, 0x85, 0x14, 0x7b, 0x09, 0xb0, 0x6e, 0xb5, 0xbf, 0xe0, 0xdd, 0x0b, 0x98, 0x7c, 0x08,
- 0xc9, 0xe5, 0xbe, 0x31, 0x6d, 0xfe, 0x0a, 0xc6, 0x1b, 0x85, 0x78, 0x23, 0x4b, 0xd4, 0xec, 0x0c,
- 0x12, 0x41, 0x87, 0x34, 0xca, 0xe2, 0xe5, 0x64, 0xf5, 0xff, 0xf9, 0x43, 0xea, 0x3a, 0x51, 0xe1,
- 0x14, 0xf9, 0xf7, 0x08, 0x46, 0x1d, 0x17, 0x64, 0x27, 0xb6, 0xd9, 0x61, 0xd0, 0x37, 0xf8, 0xcd,
- 0x78, 0xbb, 0xec, 0x99, 0x1c, 0x6e, 0xb8, 0x42, 0x61, 0xac, 0x41, 0x71, 0xe1, 0x11, 0xcb, 0x20,
- 0x36, 0xbc, 0xb2, 0x6e, 0x4c, 0x56, 0xd3, 0xf0, 0x45, 0x5e, 0x15, 0x54, 0x7a, 0x98, 0x2a, 0xf9,
- 0xeb, 0x54, 0x67, 0x10, 0x6f, 0x78, 0xf5, 0xdc, 0x3c, 0x82, 0x52, 0xe4, 0xe7, 0xa1, 0xf3, 0xea,
- 0x47, 0x44, 0x9b, 0xfb, 0x46, 0xec, 0x0d, 0x0c, 0xaf, 0xd0, 0x90, 0xc9, 0x6c, 0x1e, 0xf4, 0x0f,
- 0x7e, 0x57, 0x8b, 0x17, 0x4f, 0x78, 0x9f, 0x9d, 0xb7, 0x00, 0xb7, 0x5c, 0x69, 0xb4, 0x89, 0x62,
- 0xa1, 0x2c, 0x8c, 0xe2, 0x22, 0x7d, 0x5a, 0xf0, 0x0d, 0x5e, 0xc3, 0xf4, 0x0a, 0xcd, 0xa5, 0x6a,
- 0xde, 0xd5, 0xa6, 0xa5, 0x95, 0xd8, 0x7f, 0x81, 0xd6, 0x7e, 0xa7, 0xc5, 0xec, 0x99, 0xad, 0xf5,
- 0xc7, 0x81, 0xfd, 0x33, 0xb8, 0xf8, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xdf, 0x08, 0x6d, 0x36, 0x1f,
- 0x04, 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
- // 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.SupportPackageIsVersion4
- // 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)
- GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
- }
- type transformClient struct {
- cc *grpc.ClientConn
- }
- func NewTransformClient(cc *grpc.ClientConn) 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
- }
- // TransformServer is the server API for Transform service.
- type TransformServer interface {
- GetUser(context.Context, *UserRequest) (*UserResponse, error)
- ParseToken(context.Context, *TokenRequest) (*TokenResponse, error)
- GetErpCityTree(context.Context, *Empty) (*TreeNodes, error)
- }
- // UnimplementedTransformServer can be embedded to have forward compatible implementations.
- type UnimplementedTransformServer struct {
- }
- func (*UnimplementedTransformServer) GetUser(ctx context.Context, req *UserRequest) (*UserResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
- }
- func (*UnimplementedTransformServer) ParseToken(ctx context.Context, req *TokenRequest) (*TokenResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ParseToken not implemented")
- }
- func (*UnimplementedTransformServer) GetErpCityTree(ctx context.Context, req *Empty) (*TreeNodes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetErpCityTree 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)
- }
- 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,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "transform.proto",
- }
|