transform.pb.go 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.23.0
  4. // protoc v3.12.3
  5. // source: transform.proto
  6. package transform
  7. import (
  8. context "context"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  14. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. // This is a compile-time assertion that a sufficiently up-to-date version
  25. // of the legacy proto package is being used.
  26. const _ = proto.ProtoPackageIsVersion4
  27. type UserRequest struct {
  28. state protoimpl.MessageState
  29. sizeCache protoimpl.SizeCache
  30. unknownFields protoimpl.UnknownFields
  31. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  32. Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
  33. }
  34. func (x *UserRequest) Reset() {
  35. *x = UserRequest{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_transform_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *UserRequest) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*UserRequest) ProtoMessage() {}
  46. func (x *UserRequest) ProtoReflect() protoreflect.Message {
  47. mi := &file_transform_proto_msgTypes[0]
  48. if protoimpl.UnsafeEnabled && x != nil {
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. if ms.LoadMessageInfo() == nil {
  51. ms.StoreMessageInfo(mi)
  52. }
  53. return ms
  54. }
  55. return mi.MessageOf(x)
  56. }
  57. // Deprecated: Use UserRequest.ProtoReflect.Descriptor instead.
  58. func (*UserRequest) Descriptor() ([]byte, []int) {
  59. return file_transform_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *UserRequest) GetId() string {
  62. if x != nil {
  63. return x.Id
  64. }
  65. return ""
  66. }
  67. func (x *UserRequest) GetPhone() string {
  68. if x != nil {
  69. return x.Phone
  70. }
  71. return ""
  72. }
  73. type UserResponse struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  78. Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
  79. Roles string `protobuf:"bytes,3,opt,name=roles,proto3" json:"roles,omitempty"`
  80. Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
  81. ErpRoleType int64 `protobuf:"varint,5,opt,name=erpRoleType,proto3" json:"erpRoleType,omitempty"`
  82. UserName string `protobuf:"bytes,6,opt,name=userName,proto3" json:"userName,omitempty"`
  83. CityName string `protobuf:"bytes,7,opt,name=cityName,proto3" json:"cityName,omitempty"`
  84. Gender int64 `protobuf:"varint,8,opt,name=gender,proto3" json:"gender,omitempty"`
  85. }
  86. func (x *UserResponse) Reset() {
  87. *x = UserResponse{}
  88. if protoimpl.UnsafeEnabled {
  89. mi := &file_transform_proto_msgTypes[1]
  90. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  91. ms.StoreMessageInfo(mi)
  92. }
  93. }
  94. func (x *UserResponse) String() string {
  95. return protoimpl.X.MessageStringOf(x)
  96. }
  97. func (*UserResponse) ProtoMessage() {}
  98. func (x *UserResponse) ProtoReflect() protoreflect.Message {
  99. mi := &file_transform_proto_msgTypes[1]
  100. if protoimpl.UnsafeEnabled && x != nil {
  101. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  102. if ms.LoadMessageInfo() == nil {
  103. ms.StoreMessageInfo(mi)
  104. }
  105. return ms
  106. }
  107. return mi.MessageOf(x)
  108. }
  109. // Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.
  110. func (*UserResponse) Descriptor() ([]byte, []int) {
  111. return file_transform_proto_rawDescGZIP(), []int{1}
  112. }
  113. func (x *UserResponse) GetId() string {
  114. if x != nil {
  115. return x.Id
  116. }
  117. return ""
  118. }
  119. func (x *UserResponse) GetPhone() string {
  120. if x != nil {
  121. return x.Phone
  122. }
  123. return ""
  124. }
  125. func (x *UserResponse) GetRoles() string {
  126. if x != nil {
  127. return x.Roles
  128. }
  129. return ""
  130. }
  131. func (x *UserResponse) GetStatus() int64 {
  132. if x != nil {
  133. return x.Status
  134. }
  135. return 0
  136. }
  137. func (x *UserResponse) GetErpRoleType() int64 {
  138. if x != nil {
  139. return x.ErpRoleType
  140. }
  141. return 0
  142. }
  143. func (x *UserResponse) GetUserName() string {
  144. if x != nil {
  145. return x.UserName
  146. }
  147. return ""
  148. }
  149. func (x *UserResponse) GetCityName() string {
  150. if x != nil {
  151. return x.CityName
  152. }
  153. return ""
  154. }
  155. func (x *UserResponse) GetGender() int64 {
  156. if x != nil {
  157. return x.Gender
  158. }
  159. return 0
  160. }
  161. type TokenRequest struct {
  162. state protoimpl.MessageState
  163. sizeCache protoimpl.SizeCache
  164. unknownFields protoimpl.UnknownFields
  165. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  166. }
  167. func (x *TokenRequest) Reset() {
  168. *x = TokenRequest{}
  169. if protoimpl.UnsafeEnabled {
  170. mi := &file_transform_proto_msgTypes[2]
  171. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  172. ms.StoreMessageInfo(mi)
  173. }
  174. }
  175. func (x *TokenRequest) String() string {
  176. return protoimpl.X.MessageStringOf(x)
  177. }
  178. func (*TokenRequest) ProtoMessage() {}
  179. func (x *TokenRequest) ProtoReflect() protoreflect.Message {
  180. mi := &file_transform_proto_msgTypes[2]
  181. if protoimpl.UnsafeEnabled && x != nil {
  182. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  183. if ms.LoadMessageInfo() == nil {
  184. ms.StoreMessageInfo(mi)
  185. }
  186. return ms
  187. }
  188. return mi.MessageOf(x)
  189. }
  190. // Deprecated: Use TokenRequest.ProtoReflect.Descriptor instead.
  191. func (*TokenRequest) Descriptor() ([]byte, []int) {
  192. return file_transform_proto_rawDescGZIP(), []int{2}
  193. }
  194. func (x *TokenRequest) GetToken() string {
  195. if x != nil {
  196. return x.Token
  197. }
  198. return ""
  199. }
  200. type TokenResponse struct {
  201. state protoimpl.MessageState
  202. sizeCache protoimpl.SizeCache
  203. unknownFields protoimpl.UnknownFields
  204. UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
  205. }
  206. func (x *TokenResponse) Reset() {
  207. *x = TokenResponse{}
  208. if protoimpl.UnsafeEnabled {
  209. mi := &file_transform_proto_msgTypes[3]
  210. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  211. ms.StoreMessageInfo(mi)
  212. }
  213. }
  214. func (x *TokenResponse) String() string {
  215. return protoimpl.X.MessageStringOf(x)
  216. }
  217. func (*TokenResponse) ProtoMessage() {}
  218. func (x *TokenResponse) ProtoReflect() protoreflect.Message {
  219. mi := &file_transform_proto_msgTypes[3]
  220. if protoimpl.UnsafeEnabled && x != nil {
  221. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  222. if ms.LoadMessageInfo() == nil {
  223. ms.StoreMessageInfo(mi)
  224. }
  225. return ms
  226. }
  227. return mi.MessageOf(x)
  228. }
  229. // Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead.
  230. func (*TokenResponse) Descriptor() ([]byte, []int) {
  231. return file_transform_proto_rawDescGZIP(), []int{3}
  232. }
  233. func (x *TokenResponse) GetUserId() string {
  234. if x != nil {
  235. return x.UserId
  236. }
  237. return ""
  238. }
  239. type Empty struct {
  240. state protoimpl.MessageState
  241. sizeCache protoimpl.SizeCache
  242. unknownFields protoimpl.UnknownFields
  243. }
  244. func (x *Empty) Reset() {
  245. *x = Empty{}
  246. if protoimpl.UnsafeEnabled {
  247. mi := &file_transform_proto_msgTypes[4]
  248. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  249. ms.StoreMessageInfo(mi)
  250. }
  251. }
  252. func (x *Empty) String() string {
  253. return protoimpl.X.MessageStringOf(x)
  254. }
  255. func (*Empty) ProtoMessage() {}
  256. func (x *Empty) ProtoReflect() protoreflect.Message {
  257. mi := &file_transform_proto_msgTypes[4]
  258. if protoimpl.UnsafeEnabled && x != nil {
  259. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  260. if ms.LoadMessageInfo() == nil {
  261. ms.StoreMessageInfo(mi)
  262. }
  263. return ms
  264. }
  265. return mi.MessageOf(x)
  266. }
  267. // Deprecated: Use Empty.ProtoReflect.Descriptor instead.
  268. func (*Empty) Descriptor() ([]byte, []int) {
  269. return file_transform_proto_rawDescGZIP(), []int{4}
  270. }
  271. type TreeNodes struct {
  272. state protoimpl.MessageState
  273. sizeCache protoimpl.SizeCache
  274. unknownFields protoimpl.UnknownFields
  275. Nodes []*TreeNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
  276. }
  277. func (x *TreeNodes) Reset() {
  278. *x = TreeNodes{}
  279. if protoimpl.UnsafeEnabled {
  280. mi := &file_transform_proto_msgTypes[5]
  281. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  282. ms.StoreMessageInfo(mi)
  283. }
  284. }
  285. func (x *TreeNodes) String() string {
  286. return protoimpl.X.MessageStringOf(x)
  287. }
  288. func (*TreeNodes) ProtoMessage() {}
  289. func (x *TreeNodes) ProtoReflect() protoreflect.Message {
  290. mi := &file_transform_proto_msgTypes[5]
  291. if protoimpl.UnsafeEnabled && x != nil {
  292. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  293. if ms.LoadMessageInfo() == nil {
  294. ms.StoreMessageInfo(mi)
  295. }
  296. return ms
  297. }
  298. return mi.MessageOf(x)
  299. }
  300. // Deprecated: Use TreeNodes.ProtoReflect.Descriptor instead.
  301. func (*TreeNodes) Descriptor() ([]byte, []int) {
  302. return file_transform_proto_rawDescGZIP(), []int{5}
  303. }
  304. func (x *TreeNodes) GetNodes() []*TreeNode {
  305. if x != nil {
  306. return x.Nodes
  307. }
  308. return nil
  309. }
  310. type TreeNode struct {
  311. state protoimpl.MessageState
  312. sizeCache protoimpl.SizeCache
  313. unknownFields protoimpl.UnknownFields
  314. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  315. Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
  316. Parent int64 `protobuf:"varint,3,opt,name=parent,proto3" json:"parent,omitempty"`
  317. Tag *Tag `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
  318. Nodes []*TreeNode `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"`
  319. }
  320. func (x *TreeNode) Reset() {
  321. *x = TreeNode{}
  322. if protoimpl.UnsafeEnabled {
  323. mi := &file_transform_proto_msgTypes[6]
  324. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  325. ms.StoreMessageInfo(mi)
  326. }
  327. }
  328. func (x *TreeNode) String() string {
  329. return protoimpl.X.MessageStringOf(x)
  330. }
  331. func (*TreeNode) ProtoMessage() {}
  332. func (x *TreeNode) ProtoReflect() protoreflect.Message {
  333. mi := &file_transform_proto_msgTypes[6]
  334. if protoimpl.UnsafeEnabled && x != nil {
  335. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  336. if ms.LoadMessageInfo() == nil {
  337. ms.StoreMessageInfo(mi)
  338. }
  339. return ms
  340. }
  341. return mi.MessageOf(x)
  342. }
  343. // Deprecated: Use TreeNode.ProtoReflect.Descriptor instead.
  344. func (*TreeNode) Descriptor() ([]byte, []int) {
  345. return file_transform_proto_rawDescGZIP(), []int{6}
  346. }
  347. func (x *TreeNode) GetId() int64 {
  348. if x != nil {
  349. return x.Id
  350. }
  351. return 0
  352. }
  353. func (x *TreeNode) GetText() string {
  354. if x != nil {
  355. return x.Text
  356. }
  357. return ""
  358. }
  359. func (x *TreeNode) GetParent() int64 {
  360. if x != nil {
  361. return x.Parent
  362. }
  363. return 0
  364. }
  365. func (x *TreeNode) GetTag() *Tag {
  366. if x != nil {
  367. return x.Tag
  368. }
  369. return nil
  370. }
  371. func (x *TreeNode) GetNodes() []*TreeNode {
  372. if x != nil {
  373. return x.Nodes
  374. }
  375. return nil
  376. }
  377. type Tag struct {
  378. state protoimpl.MessageState
  379. sizeCache protoimpl.SizeCache
  380. unknownFields protoimpl.UnknownFields
  381. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  382. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  383. }
  384. func (x *Tag) Reset() {
  385. *x = Tag{}
  386. if protoimpl.UnsafeEnabled {
  387. mi := &file_transform_proto_msgTypes[7]
  388. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  389. ms.StoreMessageInfo(mi)
  390. }
  391. }
  392. func (x *Tag) String() string {
  393. return protoimpl.X.MessageStringOf(x)
  394. }
  395. func (*Tag) ProtoMessage() {}
  396. func (x *Tag) ProtoReflect() protoreflect.Message {
  397. mi := &file_transform_proto_msgTypes[7]
  398. if protoimpl.UnsafeEnabled && x != nil {
  399. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  400. if ms.LoadMessageInfo() == nil {
  401. ms.StoreMessageInfo(mi)
  402. }
  403. return ms
  404. }
  405. return mi.MessageOf(x)
  406. }
  407. // Deprecated: Use Tag.ProtoReflect.Descriptor instead.
  408. func (*Tag) Descriptor() ([]byte, []int) {
  409. return file_transform_proto_rawDescGZIP(), []int{7}
  410. }
  411. func (x *Tag) GetId() int64 {
  412. if x != nil {
  413. return x.Id
  414. }
  415. return 0
  416. }
  417. func (x *Tag) GetName() string {
  418. if x != nil {
  419. return x.Name
  420. }
  421. return ""
  422. }
  423. type OptionCode struct {
  424. state protoimpl.MessageState
  425. sizeCache protoimpl.SizeCache
  426. unknownFields protoimpl.UnknownFields
  427. Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
  428. }
  429. func (x *OptionCode) Reset() {
  430. *x = OptionCode{}
  431. if protoimpl.UnsafeEnabled {
  432. mi := &file_transform_proto_msgTypes[8]
  433. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  434. ms.StoreMessageInfo(mi)
  435. }
  436. }
  437. func (x *OptionCode) String() string {
  438. return protoimpl.X.MessageStringOf(x)
  439. }
  440. func (*OptionCode) ProtoMessage() {}
  441. func (x *OptionCode) ProtoReflect() protoreflect.Message {
  442. mi := &file_transform_proto_msgTypes[8]
  443. if protoimpl.UnsafeEnabled && x != nil {
  444. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  445. if ms.LoadMessageInfo() == nil {
  446. ms.StoreMessageInfo(mi)
  447. }
  448. return ms
  449. }
  450. return mi.MessageOf(x)
  451. }
  452. // Deprecated: Use OptionCode.ProtoReflect.Descriptor instead.
  453. func (*OptionCode) Descriptor() ([]byte, []int) {
  454. return file_transform_proto_rawDescGZIP(), []int{8}
  455. }
  456. func (x *OptionCode) GetCode() string {
  457. if x != nil {
  458. return x.Code
  459. }
  460. return ""
  461. }
  462. type Options struct {
  463. state protoimpl.MessageState
  464. sizeCache protoimpl.SizeCache
  465. unknownFields protoimpl.UnknownFields
  466. Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
  467. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  468. Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  469. }
  470. func (x *Options) Reset() {
  471. *x = Options{}
  472. if protoimpl.UnsafeEnabled {
  473. mi := &file_transform_proto_msgTypes[9]
  474. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  475. ms.StoreMessageInfo(mi)
  476. }
  477. }
  478. func (x *Options) String() string {
  479. return protoimpl.X.MessageStringOf(x)
  480. }
  481. func (*Options) ProtoMessage() {}
  482. func (x *Options) ProtoReflect() protoreflect.Message {
  483. mi := &file_transform_proto_msgTypes[9]
  484. if protoimpl.UnsafeEnabled && x != nil {
  485. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  486. if ms.LoadMessageInfo() == nil {
  487. ms.StoreMessageInfo(mi)
  488. }
  489. return ms
  490. }
  491. return mi.MessageOf(x)
  492. }
  493. // Deprecated: Use Options.ProtoReflect.Descriptor instead.
  494. func (*Options) Descriptor() ([]byte, []int) {
  495. return file_transform_proto_rawDescGZIP(), []int{9}
  496. }
  497. func (x *Options) GetCode() string {
  498. if x != nil {
  499. return x.Code
  500. }
  501. return ""
  502. }
  503. func (x *Options) GetName() string {
  504. if x != nil {
  505. return x.Name
  506. }
  507. return ""
  508. }
  509. func (x *Options) GetValue() string {
  510. if x != nil {
  511. return x.Value
  512. }
  513. return ""
  514. }
  515. var File_transform_proto protoreflect.FileDescriptor
  516. var file_transform_proto_rawDesc = []byte{
  517. 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  518. 0x6f, 0x12, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x33, 0x0a, 0x0b,
  519. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  520. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70,
  521. 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e,
  522. 0x65, 0x22, 0xd4, 0x01, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  523. 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
  524. 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  525. 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65,
  526. 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x16,
  527. 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
  528. 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x72, 0x70, 0x52, 0x6f, 0x6c,
  529. 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x72, 0x70,
  530. 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72,
  531. 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
  532. 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
  533. 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
  534. 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03,
  535. 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x24, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65,
  536. 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65,
  537. 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x27,
  538. 0x0a, 0x0d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  539. 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  540. 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79,
  541. 0x22, 0x36, 0x0a, 0x09, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x29, 0x0a,
  542. 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74,
  543. 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64,
  544. 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x08, 0x54, 0x72, 0x65,
  545. 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  546. 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20,
  547. 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72,
  548. 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
  549. 0x74, 0x12, 0x20, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e,
  550. 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x03,
  551. 0x74, 0x61, 0x67, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03,
  552. 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54,
  553. 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x29,
  554. 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  555. 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
  556. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x4f, 0x70, 0x74,
  557. 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
  558. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x47, 0x0a, 0x07, 0x4f,
  559. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
  560. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
  561. 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14,
  562. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
  563. 0x61, 0x6c, 0x75, 0x65, 0x32, 0xc6, 0x02, 0x0a, 0x09, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f,
  564. 0x72, 0x6d, 0x12, 0x3a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x16, 0x2e,
  565. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
  566. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72,
  567. 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f,
  568. 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x73, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x2e, 0x74,
  569. 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
  570. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72,
  571. 0x6d, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  572. 0x38, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x43, 0x69, 0x74, 0x79, 0x54, 0x72, 0x65,
  573. 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x45, 0x6d,
  574. 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
  575. 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0f, 0x47, 0x65, 0x74,
  576. 0x45, 0x72, 0x70, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, 0x74, 0x12, 0x15, 0x2e, 0x74,
  577. 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43,
  578. 0x6f, 0x64, 0x65, 0x1a, 0x12, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
  579. 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x44, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x45, 0x72,
  580. 0x70, 0x4d, 0x6b, 0x74, 0x4e, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69,
  581. 0x6c, 0x54, 0x72, 0x65, 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72,
  582. 0x6d, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66,
  583. 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x62, 0x06, 0x70,
  584. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  585. }
  586. var (
  587. file_transform_proto_rawDescOnce sync.Once
  588. file_transform_proto_rawDescData = file_transform_proto_rawDesc
  589. )
  590. func file_transform_proto_rawDescGZIP() []byte {
  591. file_transform_proto_rawDescOnce.Do(func() {
  592. file_transform_proto_rawDescData = protoimpl.X.CompressGZIP(file_transform_proto_rawDescData)
  593. })
  594. return file_transform_proto_rawDescData
  595. }
  596. var file_transform_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  597. var file_transform_proto_goTypes = []interface{}{
  598. (*UserRequest)(nil), // 0: transform.UserRequest
  599. (*UserResponse)(nil), // 1: transform.UserResponse
  600. (*TokenRequest)(nil), // 2: transform.TokenRequest
  601. (*TokenResponse)(nil), // 3: transform.TokenResponse
  602. (*Empty)(nil), // 4: transform.Empty
  603. (*TreeNodes)(nil), // 5: transform.TreeNodes
  604. (*TreeNode)(nil), // 6: transform.TreeNode
  605. (*Tag)(nil), // 7: transform.Tag
  606. (*OptionCode)(nil), // 8: transform.OptionCode
  607. (*Options)(nil), // 9: transform.Options
  608. }
  609. var file_transform_proto_depIdxs = []int32{
  610. 6, // 0: transform.TreeNodes.nodes:type_name -> transform.TreeNode
  611. 7, // 1: transform.TreeNode.tag:type_name -> transform.Tag
  612. 6, // 2: transform.TreeNode.nodes:type_name -> transform.TreeNode
  613. 0, // 3: transform.Transform.GetUser:input_type -> transform.UserRequest
  614. 2, // 4: transform.Transform.ParseToken:input_type -> transform.TokenRequest
  615. 4, // 5: transform.Transform.GetErpCityTree:input_type -> transform.Empty
  616. 8, // 6: transform.Transform.GetErpOptionset:input_type -> transform.OptionCode
  617. 4, // 7: transform.Transform.GetErpMktNetWorkDetailTree:input_type -> transform.Empty
  618. 1, // 8: transform.Transform.GetUser:output_type -> transform.UserResponse
  619. 3, // 9: transform.Transform.ParseToken:output_type -> transform.TokenResponse
  620. 5, // 10: transform.Transform.GetErpCityTree:output_type -> transform.TreeNodes
  621. 9, // 11: transform.Transform.GetErpOptionset:output_type -> transform.Options
  622. 5, // 12: transform.Transform.GetErpMktNetWorkDetailTree:output_type -> transform.TreeNodes
  623. 8, // [8:13] is the sub-list for method output_type
  624. 3, // [3:8] is the sub-list for method input_type
  625. 3, // [3:3] is the sub-list for extension type_name
  626. 3, // [3:3] is the sub-list for extension extendee
  627. 0, // [0:3] is the sub-list for field type_name
  628. }
  629. func init() { file_transform_proto_init() }
  630. func file_transform_proto_init() {
  631. if File_transform_proto != nil {
  632. return
  633. }
  634. if !protoimpl.UnsafeEnabled {
  635. file_transform_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  636. switch v := v.(*UserRequest); i {
  637. case 0:
  638. return &v.state
  639. case 1:
  640. return &v.sizeCache
  641. case 2:
  642. return &v.unknownFields
  643. default:
  644. return nil
  645. }
  646. }
  647. file_transform_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  648. switch v := v.(*UserResponse); i {
  649. case 0:
  650. return &v.state
  651. case 1:
  652. return &v.sizeCache
  653. case 2:
  654. return &v.unknownFields
  655. default:
  656. return nil
  657. }
  658. }
  659. file_transform_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  660. switch v := v.(*TokenRequest); i {
  661. case 0:
  662. return &v.state
  663. case 1:
  664. return &v.sizeCache
  665. case 2:
  666. return &v.unknownFields
  667. default:
  668. return nil
  669. }
  670. }
  671. file_transform_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  672. switch v := v.(*TokenResponse); i {
  673. case 0:
  674. return &v.state
  675. case 1:
  676. return &v.sizeCache
  677. case 2:
  678. return &v.unknownFields
  679. default:
  680. return nil
  681. }
  682. }
  683. file_transform_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  684. switch v := v.(*Empty); i {
  685. case 0:
  686. return &v.state
  687. case 1:
  688. return &v.sizeCache
  689. case 2:
  690. return &v.unknownFields
  691. default:
  692. return nil
  693. }
  694. }
  695. file_transform_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  696. switch v := v.(*TreeNodes); i {
  697. case 0:
  698. return &v.state
  699. case 1:
  700. return &v.sizeCache
  701. case 2:
  702. return &v.unknownFields
  703. default:
  704. return nil
  705. }
  706. }
  707. file_transform_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  708. switch v := v.(*TreeNode); i {
  709. case 0:
  710. return &v.state
  711. case 1:
  712. return &v.sizeCache
  713. case 2:
  714. return &v.unknownFields
  715. default:
  716. return nil
  717. }
  718. }
  719. file_transform_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  720. switch v := v.(*Tag); i {
  721. case 0:
  722. return &v.state
  723. case 1:
  724. return &v.sizeCache
  725. case 2:
  726. return &v.unknownFields
  727. default:
  728. return nil
  729. }
  730. }
  731. file_transform_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  732. switch v := v.(*OptionCode); i {
  733. case 0:
  734. return &v.state
  735. case 1:
  736. return &v.sizeCache
  737. case 2:
  738. return &v.unknownFields
  739. default:
  740. return nil
  741. }
  742. }
  743. file_transform_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  744. switch v := v.(*Options); i {
  745. case 0:
  746. return &v.state
  747. case 1:
  748. return &v.sizeCache
  749. case 2:
  750. return &v.unknownFields
  751. default:
  752. return nil
  753. }
  754. }
  755. }
  756. type x struct{}
  757. out := protoimpl.TypeBuilder{
  758. File: protoimpl.DescBuilder{
  759. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  760. RawDescriptor: file_transform_proto_rawDesc,
  761. NumEnums: 0,
  762. NumMessages: 10,
  763. NumExtensions: 0,
  764. NumServices: 1,
  765. },
  766. GoTypes: file_transform_proto_goTypes,
  767. DependencyIndexes: file_transform_proto_depIdxs,
  768. MessageInfos: file_transform_proto_msgTypes,
  769. }.Build()
  770. File_transform_proto = out.File
  771. file_transform_proto_rawDesc = nil
  772. file_transform_proto_goTypes = nil
  773. file_transform_proto_depIdxs = nil
  774. }
  775. // Reference imports to suppress errors if they are not otherwise used.
  776. var _ context.Context
  777. var _ grpc.ClientConnInterface
  778. // This is a compile-time assertion to ensure that this generated file
  779. // is compatible with the grpc package it is being compiled against.
  780. const _ = grpc.SupportPackageIsVersion6
  781. // TransformClient is the client API for Transform service.
  782. //
  783. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  784. type TransformClient interface {
  785. GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
  786. ParseToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error)
  787. GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
  788. GetErpOptionset(ctx context.Context, in *OptionCode, opts ...grpc.CallOption) (*Options, error)
  789. GetErpMktNetWorkDetailTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
  790. }
  791. type transformClient struct {
  792. cc grpc.ClientConnInterface
  793. }
  794. func NewTransformClient(cc grpc.ClientConnInterface) TransformClient {
  795. return &transformClient{cc}
  796. }
  797. func (c *transformClient) GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error) {
  798. out := new(UserResponse)
  799. err := c.cc.Invoke(ctx, "/transform.Transform/GetUser", in, out, opts...)
  800. if err != nil {
  801. return nil, err
  802. }
  803. return out, nil
  804. }
  805. func (c *transformClient) ParseToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) {
  806. out := new(TokenResponse)
  807. err := c.cc.Invoke(ctx, "/transform.Transform/ParseToken", in, out, opts...)
  808. if err != nil {
  809. return nil, err
  810. }
  811. return out, nil
  812. }
  813. func (c *transformClient) GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error) {
  814. out := new(TreeNodes)
  815. err := c.cc.Invoke(ctx, "/transform.Transform/GetErpCityTree", in, out, opts...)
  816. if err != nil {
  817. return nil, err
  818. }
  819. return out, nil
  820. }
  821. func (c *transformClient) GetErpOptionset(ctx context.Context, in *OptionCode, opts ...grpc.CallOption) (*Options, error) {
  822. out := new(Options)
  823. err := c.cc.Invoke(ctx, "/transform.Transform/GetErpOptionset", in, out, opts...)
  824. if err != nil {
  825. return nil, err
  826. }
  827. return out, nil
  828. }
  829. func (c *transformClient) GetErpMktNetWorkDetailTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error) {
  830. out := new(TreeNodes)
  831. err := c.cc.Invoke(ctx, "/transform.Transform/GetErpMktNetWorkDetailTree", in, out, opts...)
  832. if err != nil {
  833. return nil, err
  834. }
  835. return out, nil
  836. }
  837. // TransformServer is the server API for Transform service.
  838. type TransformServer interface {
  839. GetUser(context.Context, *UserRequest) (*UserResponse, error)
  840. ParseToken(context.Context, *TokenRequest) (*TokenResponse, error)
  841. GetErpCityTree(context.Context, *Empty) (*TreeNodes, error)
  842. GetErpOptionset(context.Context, *OptionCode) (*Options, error)
  843. GetErpMktNetWorkDetailTree(context.Context, *Empty) (*TreeNodes, error)
  844. }
  845. // UnimplementedTransformServer can be embedded to have forward compatible implementations.
  846. type UnimplementedTransformServer struct {
  847. }
  848. func (*UnimplementedTransformServer) GetUser(context.Context, *UserRequest) (*UserResponse, error) {
  849. return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
  850. }
  851. func (*UnimplementedTransformServer) ParseToken(context.Context, *TokenRequest) (*TokenResponse, error) {
  852. return nil, status.Errorf(codes.Unimplemented, "method ParseToken not implemented")
  853. }
  854. func (*UnimplementedTransformServer) GetErpCityTree(context.Context, *Empty) (*TreeNodes, error) {
  855. return nil, status.Errorf(codes.Unimplemented, "method GetErpCityTree not implemented")
  856. }
  857. func (*UnimplementedTransformServer) GetErpOptionset(context.Context, *OptionCode) (*Options, error) {
  858. return nil, status.Errorf(codes.Unimplemented, "method GetErpOptionset not implemented")
  859. }
  860. func (*UnimplementedTransformServer) GetErpMktNetWorkDetailTree(context.Context, *Empty) (*TreeNodes, error) {
  861. return nil, status.Errorf(codes.Unimplemented, "method GetErpMktNetWorkDetailTree not implemented")
  862. }
  863. func RegisterTransformServer(s *grpc.Server, srv TransformServer) {
  864. s.RegisterService(&_Transform_serviceDesc, srv)
  865. }
  866. func _Transform_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  867. in := new(UserRequest)
  868. if err := dec(in); err != nil {
  869. return nil, err
  870. }
  871. if interceptor == nil {
  872. return srv.(TransformServer).GetUser(ctx, in)
  873. }
  874. info := &grpc.UnaryServerInfo{
  875. Server: srv,
  876. FullMethod: "/transform.Transform/GetUser",
  877. }
  878. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  879. return srv.(TransformServer).GetUser(ctx, req.(*UserRequest))
  880. }
  881. return interceptor(ctx, in, info, handler)
  882. }
  883. func _Transform_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  884. in := new(TokenRequest)
  885. if err := dec(in); err != nil {
  886. return nil, err
  887. }
  888. if interceptor == nil {
  889. return srv.(TransformServer).ParseToken(ctx, in)
  890. }
  891. info := &grpc.UnaryServerInfo{
  892. Server: srv,
  893. FullMethod: "/transform.Transform/ParseToken",
  894. }
  895. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  896. return srv.(TransformServer).ParseToken(ctx, req.(*TokenRequest))
  897. }
  898. return interceptor(ctx, in, info, handler)
  899. }
  900. func _Transform_GetErpCityTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  901. in := new(Empty)
  902. if err := dec(in); err != nil {
  903. return nil, err
  904. }
  905. if interceptor == nil {
  906. return srv.(TransformServer).GetErpCityTree(ctx, in)
  907. }
  908. info := &grpc.UnaryServerInfo{
  909. Server: srv,
  910. FullMethod: "/transform.Transform/GetErpCityTree",
  911. }
  912. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  913. return srv.(TransformServer).GetErpCityTree(ctx, req.(*Empty))
  914. }
  915. return interceptor(ctx, in, info, handler)
  916. }
  917. func _Transform_GetErpOptionset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  918. in := new(OptionCode)
  919. if err := dec(in); err != nil {
  920. return nil, err
  921. }
  922. if interceptor == nil {
  923. return srv.(TransformServer).GetErpOptionset(ctx, in)
  924. }
  925. info := &grpc.UnaryServerInfo{
  926. Server: srv,
  927. FullMethod: "/transform.Transform/GetErpOptionset",
  928. }
  929. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  930. return srv.(TransformServer).GetErpOptionset(ctx, req.(*OptionCode))
  931. }
  932. return interceptor(ctx, in, info, handler)
  933. }
  934. func _Transform_GetErpMktNetWorkDetailTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  935. in := new(Empty)
  936. if err := dec(in); err != nil {
  937. return nil, err
  938. }
  939. if interceptor == nil {
  940. return srv.(TransformServer).GetErpMktNetWorkDetailTree(ctx, in)
  941. }
  942. info := &grpc.UnaryServerInfo{
  943. Server: srv,
  944. FullMethod: "/transform.Transform/GetErpMktNetWorkDetailTree",
  945. }
  946. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  947. return srv.(TransformServer).GetErpMktNetWorkDetailTree(ctx, req.(*Empty))
  948. }
  949. return interceptor(ctx, in, info, handler)
  950. }
  951. var _Transform_serviceDesc = grpc.ServiceDesc{
  952. ServiceName: "transform.Transform",
  953. HandlerType: (*TransformServer)(nil),
  954. Methods: []grpc.MethodDesc{
  955. {
  956. MethodName: "GetUser",
  957. Handler: _Transform_GetUser_Handler,
  958. },
  959. {
  960. MethodName: "ParseToken",
  961. Handler: _Transform_ParseToken_Handler,
  962. },
  963. {
  964. MethodName: "GetErpCityTree",
  965. Handler: _Transform_GetErpCityTree_Handler,
  966. },
  967. {
  968. MethodName: "GetErpOptionset",
  969. Handler: _Transform_GetErpOptionset_Handler,
  970. },
  971. {
  972. MethodName: "GetErpMktNetWorkDetailTree",
  973. Handler: _Transform_GetErpMktNetWorkDetailTree_Handler,
  974. },
  975. },
  976. Streams: []grpc.StreamDesc{},
  977. Metadata: "transform.proto",
  978. }