transform.pb.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  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. var File_transform_proto protoreflect.FileDescriptor
  424. var file_transform_proto_rawDesc = []byte{
  425. 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  426. 0x6f, 0x12, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x33, 0x0a, 0x0b,
  427. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  428. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70,
  429. 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e,
  430. 0x65, 0x22, 0xd4, 0x01, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  431. 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
  432. 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  433. 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65,
  434. 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x16,
  435. 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
  436. 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x72, 0x70, 0x52, 0x6f, 0x6c,
  437. 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x72, 0x70,
  438. 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72,
  439. 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
  440. 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
  441. 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
  442. 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03,
  443. 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x24, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65,
  444. 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65,
  445. 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x27,
  446. 0x0a, 0x0d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  447. 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  448. 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79,
  449. 0x22, 0x36, 0x0a, 0x09, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x29, 0x0a,
  450. 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74,
  451. 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64,
  452. 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x08, 0x54, 0x72, 0x65,
  453. 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  454. 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20,
  455. 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72,
  456. 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
  457. 0x74, 0x12, 0x20, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e,
  458. 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x03,
  459. 0x74, 0x61, 0x67, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03,
  460. 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54,
  461. 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x29,
  462. 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  463. 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
  464. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x09, 0x54, 0x72,
  465. 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x3a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73,
  466. 0x65, 0x72, 0x12, 0x16, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55,
  467. 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x72, 0x61,
  468. 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f,
  469. 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x73, 0x65, 0x54, 0x6f, 0x6b, 0x65,
  470. 0x6e, 0x12, 0x17, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x6f,
  471. 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x72, 0x61,
  472. 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70,
  473. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x43, 0x69,
  474. 0x74, 0x79, 0x54, 0x72, 0x65, 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f,
  475. 0x72, 0x6d, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  476. 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x62, 0x06,
  477. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  478. }
  479. var (
  480. file_transform_proto_rawDescOnce sync.Once
  481. file_transform_proto_rawDescData = file_transform_proto_rawDesc
  482. )
  483. func file_transform_proto_rawDescGZIP() []byte {
  484. file_transform_proto_rawDescOnce.Do(func() {
  485. file_transform_proto_rawDescData = protoimpl.X.CompressGZIP(file_transform_proto_rawDescData)
  486. })
  487. return file_transform_proto_rawDescData
  488. }
  489. var file_transform_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  490. var file_transform_proto_goTypes = []interface{}{
  491. (*UserRequest)(nil), // 0: transform.UserRequest
  492. (*UserResponse)(nil), // 1: transform.UserResponse
  493. (*TokenRequest)(nil), // 2: transform.TokenRequest
  494. (*TokenResponse)(nil), // 3: transform.TokenResponse
  495. (*Empty)(nil), // 4: transform.Empty
  496. (*TreeNodes)(nil), // 5: transform.TreeNodes
  497. (*TreeNode)(nil), // 6: transform.TreeNode
  498. (*Tag)(nil), // 7: transform.Tag
  499. }
  500. var file_transform_proto_depIdxs = []int32{
  501. 6, // 0: transform.TreeNodes.nodes:type_name -> transform.TreeNode
  502. 7, // 1: transform.TreeNode.tag:type_name -> transform.Tag
  503. 6, // 2: transform.TreeNode.nodes:type_name -> transform.TreeNode
  504. 0, // 3: transform.Transform.GetUser:input_type -> transform.UserRequest
  505. 2, // 4: transform.Transform.ParseToken:input_type -> transform.TokenRequest
  506. 4, // 5: transform.Transform.GetErpCityTree:input_type -> transform.Empty
  507. 1, // 6: transform.Transform.GetUser:output_type -> transform.UserResponse
  508. 3, // 7: transform.Transform.ParseToken:output_type -> transform.TokenResponse
  509. 5, // 8: transform.Transform.GetErpCityTree:output_type -> transform.TreeNodes
  510. 6, // [6:9] is the sub-list for method output_type
  511. 3, // [3:6] is the sub-list for method input_type
  512. 3, // [3:3] is the sub-list for extension type_name
  513. 3, // [3:3] is the sub-list for extension extendee
  514. 0, // [0:3] is the sub-list for field type_name
  515. }
  516. func init() { file_transform_proto_init() }
  517. func file_transform_proto_init() {
  518. if File_transform_proto != nil {
  519. return
  520. }
  521. if !protoimpl.UnsafeEnabled {
  522. file_transform_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  523. switch v := v.(*UserRequest); i {
  524. case 0:
  525. return &v.state
  526. case 1:
  527. return &v.sizeCache
  528. case 2:
  529. return &v.unknownFields
  530. default:
  531. return nil
  532. }
  533. }
  534. file_transform_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  535. switch v := v.(*UserResponse); i {
  536. case 0:
  537. return &v.state
  538. case 1:
  539. return &v.sizeCache
  540. case 2:
  541. return &v.unknownFields
  542. default:
  543. return nil
  544. }
  545. }
  546. file_transform_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  547. switch v := v.(*TokenRequest); i {
  548. case 0:
  549. return &v.state
  550. case 1:
  551. return &v.sizeCache
  552. case 2:
  553. return &v.unknownFields
  554. default:
  555. return nil
  556. }
  557. }
  558. file_transform_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  559. switch v := v.(*TokenResponse); i {
  560. case 0:
  561. return &v.state
  562. case 1:
  563. return &v.sizeCache
  564. case 2:
  565. return &v.unknownFields
  566. default:
  567. return nil
  568. }
  569. }
  570. file_transform_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  571. switch v := v.(*Empty); i {
  572. case 0:
  573. return &v.state
  574. case 1:
  575. return &v.sizeCache
  576. case 2:
  577. return &v.unknownFields
  578. default:
  579. return nil
  580. }
  581. }
  582. file_transform_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  583. switch v := v.(*TreeNodes); i {
  584. case 0:
  585. return &v.state
  586. case 1:
  587. return &v.sizeCache
  588. case 2:
  589. return &v.unknownFields
  590. default:
  591. return nil
  592. }
  593. }
  594. file_transform_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  595. switch v := v.(*TreeNode); i {
  596. case 0:
  597. return &v.state
  598. case 1:
  599. return &v.sizeCache
  600. case 2:
  601. return &v.unknownFields
  602. default:
  603. return nil
  604. }
  605. }
  606. file_transform_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  607. switch v := v.(*Tag); i {
  608. case 0:
  609. return &v.state
  610. case 1:
  611. return &v.sizeCache
  612. case 2:
  613. return &v.unknownFields
  614. default:
  615. return nil
  616. }
  617. }
  618. }
  619. type x struct{}
  620. out := protoimpl.TypeBuilder{
  621. File: protoimpl.DescBuilder{
  622. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  623. RawDescriptor: file_transform_proto_rawDesc,
  624. NumEnums: 0,
  625. NumMessages: 8,
  626. NumExtensions: 0,
  627. NumServices: 1,
  628. },
  629. GoTypes: file_transform_proto_goTypes,
  630. DependencyIndexes: file_transform_proto_depIdxs,
  631. MessageInfos: file_transform_proto_msgTypes,
  632. }.Build()
  633. File_transform_proto = out.File
  634. file_transform_proto_rawDesc = nil
  635. file_transform_proto_goTypes = nil
  636. file_transform_proto_depIdxs = nil
  637. }
  638. // Reference imports to suppress errors if they are not otherwise used.
  639. var _ context.Context
  640. var _ grpc.ClientConnInterface
  641. // This is a compile-time assertion to ensure that this generated file
  642. // is compatible with the grpc package it is being compiled against.
  643. const _ = grpc.SupportPackageIsVersion6
  644. // TransformClient is the client API for Transform service.
  645. //
  646. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  647. type TransformClient interface {
  648. GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
  649. ParseToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error)
  650. GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
  651. }
  652. type transformClient struct {
  653. cc grpc.ClientConnInterface
  654. }
  655. func NewTransformClient(cc grpc.ClientConnInterface) TransformClient {
  656. return &transformClient{cc}
  657. }
  658. func (c *transformClient) GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error) {
  659. out := new(UserResponse)
  660. err := c.cc.Invoke(ctx, "/transform.Transform/GetUser", in, out, opts...)
  661. if err != nil {
  662. return nil, err
  663. }
  664. return out, nil
  665. }
  666. func (c *transformClient) ParseToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) {
  667. out := new(TokenResponse)
  668. err := c.cc.Invoke(ctx, "/transform.Transform/ParseToken", in, out, opts...)
  669. if err != nil {
  670. return nil, err
  671. }
  672. return out, nil
  673. }
  674. func (c *transformClient) GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error) {
  675. out := new(TreeNodes)
  676. err := c.cc.Invoke(ctx, "/transform.Transform/GetErpCityTree", in, out, opts...)
  677. if err != nil {
  678. return nil, err
  679. }
  680. return out, nil
  681. }
  682. // TransformServer is the server API for Transform service.
  683. type TransformServer interface {
  684. GetUser(context.Context, *UserRequest) (*UserResponse, error)
  685. ParseToken(context.Context, *TokenRequest) (*TokenResponse, error)
  686. GetErpCityTree(context.Context, *Empty) (*TreeNodes, error)
  687. }
  688. // UnimplementedTransformServer can be embedded to have forward compatible implementations.
  689. type UnimplementedTransformServer struct {
  690. }
  691. func (*UnimplementedTransformServer) GetUser(context.Context, *UserRequest) (*UserResponse, error) {
  692. return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
  693. }
  694. func (*UnimplementedTransformServer) ParseToken(context.Context, *TokenRequest) (*TokenResponse, error) {
  695. return nil, status.Errorf(codes.Unimplemented, "method ParseToken not implemented")
  696. }
  697. func (*UnimplementedTransformServer) GetErpCityTree(context.Context, *Empty) (*TreeNodes, error) {
  698. return nil, status.Errorf(codes.Unimplemented, "method GetErpCityTree not implemented")
  699. }
  700. func RegisterTransformServer(s *grpc.Server, srv TransformServer) {
  701. s.RegisterService(&_Transform_serviceDesc, srv)
  702. }
  703. func _Transform_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  704. in := new(UserRequest)
  705. if err := dec(in); err != nil {
  706. return nil, err
  707. }
  708. if interceptor == nil {
  709. return srv.(TransformServer).GetUser(ctx, in)
  710. }
  711. info := &grpc.UnaryServerInfo{
  712. Server: srv,
  713. FullMethod: "/transform.Transform/GetUser",
  714. }
  715. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  716. return srv.(TransformServer).GetUser(ctx, req.(*UserRequest))
  717. }
  718. return interceptor(ctx, in, info, handler)
  719. }
  720. func _Transform_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  721. in := new(TokenRequest)
  722. if err := dec(in); err != nil {
  723. return nil, err
  724. }
  725. if interceptor == nil {
  726. return srv.(TransformServer).ParseToken(ctx, in)
  727. }
  728. info := &grpc.UnaryServerInfo{
  729. Server: srv,
  730. FullMethod: "/transform.Transform/ParseToken",
  731. }
  732. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  733. return srv.(TransformServer).ParseToken(ctx, req.(*TokenRequest))
  734. }
  735. return interceptor(ctx, in, info, handler)
  736. }
  737. func _Transform_GetErpCityTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  738. in := new(Empty)
  739. if err := dec(in); err != nil {
  740. return nil, err
  741. }
  742. if interceptor == nil {
  743. return srv.(TransformServer).GetErpCityTree(ctx, in)
  744. }
  745. info := &grpc.UnaryServerInfo{
  746. Server: srv,
  747. FullMethod: "/transform.Transform/GetErpCityTree",
  748. }
  749. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  750. return srv.(TransformServer).GetErpCityTree(ctx, req.(*Empty))
  751. }
  752. return interceptor(ctx, in, info, handler)
  753. }
  754. var _Transform_serviceDesc = grpc.ServiceDesc{
  755. ServiceName: "transform.Transform",
  756. HandlerType: (*TransformServer)(nil),
  757. Methods: []grpc.MethodDesc{
  758. {
  759. MethodName: "GetUser",
  760. Handler: _Transform_GetUser_Handler,
  761. },
  762. {
  763. MethodName: "ParseToken",
  764. Handler: _Transform_ParseToken_Handler,
  765. },
  766. {
  767. MethodName: "GetErpCityTree",
  768. Handler: _Transform_GetErpCityTree_Handler,
  769. },
  770. },
  771. Streams: []grpc.StreamDesc{},
  772. Metadata: "transform.proto",
  773. }