transform.pb.go 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: transform.proto
  3. package transform
  4. import (
  5. context "context"
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. grpc "google.golang.org/grpc"
  9. codes "google.golang.org/grpc/codes"
  10. status "google.golang.org/grpc/status"
  11. math "math"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  22. type UserRequest struct {
  23. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  24. Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
  25. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  26. XXX_unrecognized []byte `json:"-"`
  27. XXX_sizecache int32 `json:"-"`
  28. }
  29. func (m *UserRequest) Reset() { *m = UserRequest{} }
  30. func (m *UserRequest) String() string { return proto.CompactTextString(m) }
  31. func (*UserRequest) ProtoMessage() {}
  32. func (*UserRequest) Descriptor() ([]byte, []int) {
  33. return fileDescriptor_cb4a498eeb2ba07d, []int{0}
  34. }
  35. func (m *UserRequest) XXX_Unmarshal(b []byte) error {
  36. return xxx_messageInfo_UserRequest.Unmarshal(m, b)
  37. }
  38. func (m *UserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  39. return xxx_messageInfo_UserRequest.Marshal(b, m, deterministic)
  40. }
  41. func (m *UserRequest) XXX_Merge(src proto.Message) {
  42. xxx_messageInfo_UserRequest.Merge(m, src)
  43. }
  44. func (m *UserRequest) XXX_Size() int {
  45. return xxx_messageInfo_UserRequest.Size(m)
  46. }
  47. func (m *UserRequest) XXX_DiscardUnknown() {
  48. xxx_messageInfo_UserRequest.DiscardUnknown(m)
  49. }
  50. var xxx_messageInfo_UserRequest proto.InternalMessageInfo
  51. func (m *UserRequest) GetId() string {
  52. if m != nil {
  53. return m.Id
  54. }
  55. return ""
  56. }
  57. func (m *UserRequest) GetPhone() string {
  58. if m != nil {
  59. return m.Phone
  60. }
  61. return ""
  62. }
  63. type UserResponse struct {
  64. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  65. Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
  66. Roles string `protobuf:"bytes,3,opt,name=roles,proto3" json:"roles,omitempty"`
  67. Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
  68. ErpRoleType int64 `protobuf:"varint,5,opt,name=erpRoleType,proto3" json:"erpRoleType,omitempty"`
  69. UserName string `protobuf:"bytes,6,opt,name=userName,proto3" json:"userName,omitempty"`
  70. CityName string `protobuf:"bytes,7,opt,name=cityName,proto3" json:"cityName,omitempty"`
  71. Gender int64 `protobuf:"varint,8,opt,name=gender,proto3" json:"gender,omitempty"`
  72. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  73. XXX_unrecognized []byte `json:"-"`
  74. XXX_sizecache int32 `json:"-"`
  75. }
  76. func (m *UserResponse) Reset() { *m = UserResponse{} }
  77. func (m *UserResponse) String() string { return proto.CompactTextString(m) }
  78. func (*UserResponse) ProtoMessage() {}
  79. func (*UserResponse) Descriptor() ([]byte, []int) {
  80. return fileDescriptor_cb4a498eeb2ba07d, []int{1}
  81. }
  82. func (m *UserResponse) XXX_Unmarshal(b []byte) error {
  83. return xxx_messageInfo_UserResponse.Unmarshal(m, b)
  84. }
  85. func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  86. return xxx_messageInfo_UserResponse.Marshal(b, m, deterministic)
  87. }
  88. func (m *UserResponse) XXX_Merge(src proto.Message) {
  89. xxx_messageInfo_UserResponse.Merge(m, src)
  90. }
  91. func (m *UserResponse) XXX_Size() int {
  92. return xxx_messageInfo_UserResponse.Size(m)
  93. }
  94. func (m *UserResponse) XXX_DiscardUnknown() {
  95. xxx_messageInfo_UserResponse.DiscardUnknown(m)
  96. }
  97. var xxx_messageInfo_UserResponse proto.InternalMessageInfo
  98. func (m *UserResponse) GetId() string {
  99. if m != nil {
  100. return m.Id
  101. }
  102. return ""
  103. }
  104. func (m *UserResponse) GetPhone() string {
  105. if m != nil {
  106. return m.Phone
  107. }
  108. return ""
  109. }
  110. func (m *UserResponse) GetRoles() string {
  111. if m != nil {
  112. return m.Roles
  113. }
  114. return ""
  115. }
  116. func (m *UserResponse) GetStatus() int64 {
  117. if m != nil {
  118. return m.Status
  119. }
  120. return 0
  121. }
  122. func (m *UserResponse) GetErpRoleType() int64 {
  123. if m != nil {
  124. return m.ErpRoleType
  125. }
  126. return 0
  127. }
  128. func (m *UserResponse) GetUserName() string {
  129. if m != nil {
  130. return m.UserName
  131. }
  132. return ""
  133. }
  134. func (m *UserResponse) GetCityName() string {
  135. if m != nil {
  136. return m.CityName
  137. }
  138. return ""
  139. }
  140. func (m *UserResponse) GetGender() int64 {
  141. if m != nil {
  142. return m.Gender
  143. }
  144. return 0
  145. }
  146. type TokenRequest struct {
  147. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  148. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  149. XXX_unrecognized []byte `json:"-"`
  150. XXX_sizecache int32 `json:"-"`
  151. }
  152. func (m *TokenRequest) Reset() { *m = TokenRequest{} }
  153. func (m *TokenRequest) String() string { return proto.CompactTextString(m) }
  154. func (*TokenRequest) ProtoMessage() {}
  155. func (*TokenRequest) Descriptor() ([]byte, []int) {
  156. return fileDescriptor_cb4a498eeb2ba07d, []int{2}
  157. }
  158. func (m *TokenRequest) XXX_Unmarshal(b []byte) error {
  159. return xxx_messageInfo_TokenRequest.Unmarshal(m, b)
  160. }
  161. func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  162. return xxx_messageInfo_TokenRequest.Marshal(b, m, deterministic)
  163. }
  164. func (m *TokenRequest) XXX_Merge(src proto.Message) {
  165. xxx_messageInfo_TokenRequest.Merge(m, src)
  166. }
  167. func (m *TokenRequest) XXX_Size() int {
  168. return xxx_messageInfo_TokenRequest.Size(m)
  169. }
  170. func (m *TokenRequest) XXX_DiscardUnknown() {
  171. xxx_messageInfo_TokenRequest.DiscardUnknown(m)
  172. }
  173. var xxx_messageInfo_TokenRequest proto.InternalMessageInfo
  174. func (m *TokenRequest) GetToken() string {
  175. if m != nil {
  176. return m.Token
  177. }
  178. return ""
  179. }
  180. type TokenResponse struct {
  181. UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
  182. UserRoleIds string `protobuf:"bytes,2,opt,name=UserRoleIds,proto3" json:"UserRoleIds,omitempty"`
  183. UserSchoolIds string `protobuf:"bytes,3,opt,name=UserSchoolIds,proto3" json:"UserSchoolIds,omitempty"`
  184. UserProvinceIds string `protobuf:"bytes,4,opt,name=UserProvinceIds,proto3" json:"UserProvinceIds,omitempty"`
  185. UserOrganIds string `protobuf:"bytes,5,opt,name=UserOrganIds,proto3" json:"UserOrganIds,omitempty"`
  186. SysSchoolId string `protobuf:"bytes,6,opt,name=SysSchoolId,proto3" json:"SysSchoolId,omitempty"`
  187. SysOrganId string `protobuf:"bytes,7,opt,name=SysOrganId,proto3" json:"SysOrganId,omitempty"`
  188. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  189. XXX_unrecognized []byte `json:"-"`
  190. XXX_sizecache int32 `json:"-"`
  191. }
  192. func (m *TokenResponse) Reset() { *m = TokenResponse{} }
  193. func (m *TokenResponse) String() string { return proto.CompactTextString(m) }
  194. func (*TokenResponse) ProtoMessage() {}
  195. func (*TokenResponse) Descriptor() ([]byte, []int) {
  196. return fileDescriptor_cb4a498eeb2ba07d, []int{3}
  197. }
  198. func (m *TokenResponse) XXX_Unmarshal(b []byte) error {
  199. return xxx_messageInfo_TokenResponse.Unmarshal(m, b)
  200. }
  201. func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  202. return xxx_messageInfo_TokenResponse.Marshal(b, m, deterministic)
  203. }
  204. func (m *TokenResponse) XXX_Merge(src proto.Message) {
  205. xxx_messageInfo_TokenResponse.Merge(m, src)
  206. }
  207. func (m *TokenResponse) XXX_Size() int {
  208. return xxx_messageInfo_TokenResponse.Size(m)
  209. }
  210. func (m *TokenResponse) XXX_DiscardUnknown() {
  211. xxx_messageInfo_TokenResponse.DiscardUnknown(m)
  212. }
  213. var xxx_messageInfo_TokenResponse proto.InternalMessageInfo
  214. func (m *TokenResponse) GetUserId() string {
  215. if m != nil {
  216. return m.UserId
  217. }
  218. return ""
  219. }
  220. func (m *TokenResponse) GetUserRoleIds() string {
  221. if m != nil {
  222. return m.UserRoleIds
  223. }
  224. return ""
  225. }
  226. func (m *TokenResponse) GetUserSchoolIds() string {
  227. if m != nil {
  228. return m.UserSchoolIds
  229. }
  230. return ""
  231. }
  232. func (m *TokenResponse) GetUserProvinceIds() string {
  233. if m != nil {
  234. return m.UserProvinceIds
  235. }
  236. return ""
  237. }
  238. func (m *TokenResponse) GetUserOrganIds() string {
  239. if m != nil {
  240. return m.UserOrganIds
  241. }
  242. return ""
  243. }
  244. func (m *TokenResponse) GetSysSchoolId() string {
  245. if m != nil {
  246. return m.SysSchoolId
  247. }
  248. return ""
  249. }
  250. func (m *TokenResponse) GetSysOrganId() string {
  251. if m != nil {
  252. return m.SysOrganId
  253. }
  254. return ""
  255. }
  256. type Empty struct {
  257. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  258. XXX_unrecognized []byte `json:"-"`
  259. XXX_sizecache int32 `json:"-"`
  260. }
  261. func (m *Empty) Reset() { *m = Empty{} }
  262. func (m *Empty) String() string { return proto.CompactTextString(m) }
  263. func (*Empty) ProtoMessage() {}
  264. func (*Empty) Descriptor() ([]byte, []int) {
  265. return fileDescriptor_cb4a498eeb2ba07d, []int{4}
  266. }
  267. func (m *Empty) XXX_Unmarshal(b []byte) error {
  268. return xxx_messageInfo_Empty.Unmarshal(m, b)
  269. }
  270. func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  271. return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
  272. }
  273. func (m *Empty) XXX_Merge(src proto.Message) {
  274. xxx_messageInfo_Empty.Merge(m, src)
  275. }
  276. func (m *Empty) XXX_Size() int {
  277. return xxx_messageInfo_Empty.Size(m)
  278. }
  279. func (m *Empty) XXX_DiscardUnknown() {
  280. xxx_messageInfo_Empty.DiscardUnknown(m)
  281. }
  282. var xxx_messageInfo_Empty proto.InternalMessageInfo
  283. type TreeNodes struct {
  284. Nodes []*TreeNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
  285. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  286. XXX_unrecognized []byte `json:"-"`
  287. XXX_sizecache int32 `json:"-"`
  288. }
  289. func (m *TreeNodes) Reset() { *m = TreeNodes{} }
  290. func (m *TreeNodes) String() string { return proto.CompactTextString(m) }
  291. func (*TreeNodes) ProtoMessage() {}
  292. func (*TreeNodes) Descriptor() ([]byte, []int) {
  293. return fileDescriptor_cb4a498eeb2ba07d, []int{5}
  294. }
  295. func (m *TreeNodes) XXX_Unmarshal(b []byte) error {
  296. return xxx_messageInfo_TreeNodes.Unmarshal(m, b)
  297. }
  298. func (m *TreeNodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  299. return xxx_messageInfo_TreeNodes.Marshal(b, m, deterministic)
  300. }
  301. func (m *TreeNodes) XXX_Merge(src proto.Message) {
  302. xxx_messageInfo_TreeNodes.Merge(m, src)
  303. }
  304. func (m *TreeNodes) XXX_Size() int {
  305. return xxx_messageInfo_TreeNodes.Size(m)
  306. }
  307. func (m *TreeNodes) XXX_DiscardUnknown() {
  308. xxx_messageInfo_TreeNodes.DiscardUnknown(m)
  309. }
  310. var xxx_messageInfo_TreeNodes proto.InternalMessageInfo
  311. func (m *TreeNodes) GetNodes() []*TreeNode {
  312. if m != nil {
  313. return m.Nodes
  314. }
  315. return nil
  316. }
  317. type TreeNode struct {
  318. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  319. Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
  320. Parent int64 `protobuf:"varint,3,opt,name=parent,proto3" json:"parent,omitempty"`
  321. Tag *Tag `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
  322. Nodes []*TreeNode `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"`
  323. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  324. XXX_unrecognized []byte `json:"-"`
  325. XXX_sizecache int32 `json:"-"`
  326. }
  327. func (m *TreeNode) Reset() { *m = TreeNode{} }
  328. func (m *TreeNode) String() string { return proto.CompactTextString(m) }
  329. func (*TreeNode) ProtoMessage() {}
  330. func (*TreeNode) Descriptor() ([]byte, []int) {
  331. return fileDescriptor_cb4a498eeb2ba07d, []int{6}
  332. }
  333. func (m *TreeNode) XXX_Unmarshal(b []byte) error {
  334. return xxx_messageInfo_TreeNode.Unmarshal(m, b)
  335. }
  336. func (m *TreeNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  337. return xxx_messageInfo_TreeNode.Marshal(b, m, deterministic)
  338. }
  339. func (m *TreeNode) XXX_Merge(src proto.Message) {
  340. xxx_messageInfo_TreeNode.Merge(m, src)
  341. }
  342. func (m *TreeNode) XXX_Size() int {
  343. return xxx_messageInfo_TreeNode.Size(m)
  344. }
  345. func (m *TreeNode) XXX_DiscardUnknown() {
  346. xxx_messageInfo_TreeNode.DiscardUnknown(m)
  347. }
  348. var xxx_messageInfo_TreeNode proto.InternalMessageInfo
  349. func (m *TreeNode) GetId() int64 {
  350. if m != nil {
  351. return m.Id
  352. }
  353. return 0
  354. }
  355. func (m *TreeNode) GetText() string {
  356. if m != nil {
  357. return m.Text
  358. }
  359. return ""
  360. }
  361. func (m *TreeNode) GetParent() int64 {
  362. if m != nil {
  363. return m.Parent
  364. }
  365. return 0
  366. }
  367. func (m *TreeNode) GetTag() *Tag {
  368. if m != nil {
  369. return m.Tag
  370. }
  371. return nil
  372. }
  373. func (m *TreeNode) GetNodes() []*TreeNode {
  374. if m != nil {
  375. return m.Nodes
  376. }
  377. return nil
  378. }
  379. type Tag struct {
  380. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  381. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  382. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  383. XXX_unrecognized []byte `json:"-"`
  384. XXX_sizecache int32 `json:"-"`
  385. }
  386. func (m *Tag) Reset() { *m = Tag{} }
  387. func (m *Tag) String() string { return proto.CompactTextString(m) }
  388. func (*Tag) ProtoMessage() {}
  389. func (*Tag) Descriptor() ([]byte, []int) {
  390. return fileDescriptor_cb4a498eeb2ba07d, []int{7}
  391. }
  392. func (m *Tag) XXX_Unmarshal(b []byte) error {
  393. return xxx_messageInfo_Tag.Unmarshal(m, b)
  394. }
  395. func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  396. return xxx_messageInfo_Tag.Marshal(b, m, deterministic)
  397. }
  398. func (m *Tag) XXX_Merge(src proto.Message) {
  399. xxx_messageInfo_Tag.Merge(m, src)
  400. }
  401. func (m *Tag) XXX_Size() int {
  402. return xxx_messageInfo_Tag.Size(m)
  403. }
  404. func (m *Tag) XXX_DiscardUnknown() {
  405. xxx_messageInfo_Tag.DiscardUnknown(m)
  406. }
  407. var xxx_messageInfo_Tag proto.InternalMessageInfo
  408. func (m *Tag) GetId() int64 {
  409. if m != nil {
  410. return m.Id
  411. }
  412. return 0
  413. }
  414. func (m *Tag) GetName() string {
  415. if m != nil {
  416. return m.Name
  417. }
  418. return ""
  419. }
  420. type OptionsetReq struct {
  421. Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
  422. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  423. XXX_unrecognized []byte `json:"-"`
  424. XXX_sizecache int32 `json:"-"`
  425. }
  426. func (m *OptionsetReq) Reset() { *m = OptionsetReq{} }
  427. func (m *OptionsetReq) String() string { return proto.CompactTextString(m) }
  428. func (*OptionsetReq) ProtoMessage() {}
  429. func (*OptionsetReq) Descriptor() ([]byte, []int) {
  430. return fileDescriptor_cb4a498eeb2ba07d, []int{8}
  431. }
  432. func (m *OptionsetReq) XXX_Unmarshal(b []byte) error {
  433. return xxx_messageInfo_OptionsetReq.Unmarshal(m, b)
  434. }
  435. func (m *OptionsetReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  436. return xxx_messageInfo_OptionsetReq.Marshal(b, m, deterministic)
  437. }
  438. func (m *OptionsetReq) XXX_Merge(src proto.Message) {
  439. xxx_messageInfo_OptionsetReq.Merge(m, src)
  440. }
  441. func (m *OptionsetReq) XXX_Size() int {
  442. return xxx_messageInfo_OptionsetReq.Size(m)
  443. }
  444. func (m *OptionsetReq) XXX_DiscardUnknown() {
  445. xxx_messageInfo_OptionsetReq.DiscardUnknown(m)
  446. }
  447. var xxx_messageInfo_OptionsetReq proto.InternalMessageInfo
  448. func (m *OptionsetReq) GetCode() string {
  449. if m != nil {
  450. return m.Code
  451. }
  452. return ""
  453. }
  454. type OptionsetRes struct {
  455. MapList map[string]string `protobuf:"bytes,1,rep,name=mapList,proto3" json:"mapList,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  456. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  457. XXX_unrecognized []byte `json:"-"`
  458. XXX_sizecache int32 `json:"-"`
  459. }
  460. func (m *OptionsetRes) Reset() { *m = OptionsetRes{} }
  461. func (m *OptionsetRes) String() string { return proto.CompactTextString(m) }
  462. func (*OptionsetRes) ProtoMessage() {}
  463. func (*OptionsetRes) Descriptor() ([]byte, []int) {
  464. return fileDescriptor_cb4a498eeb2ba07d, []int{9}
  465. }
  466. func (m *OptionsetRes) XXX_Unmarshal(b []byte) error {
  467. return xxx_messageInfo_OptionsetRes.Unmarshal(m, b)
  468. }
  469. func (m *OptionsetRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  470. return xxx_messageInfo_OptionsetRes.Marshal(b, m, deterministic)
  471. }
  472. func (m *OptionsetRes) XXX_Merge(src proto.Message) {
  473. xxx_messageInfo_OptionsetRes.Merge(m, src)
  474. }
  475. func (m *OptionsetRes) XXX_Size() int {
  476. return xxx_messageInfo_OptionsetRes.Size(m)
  477. }
  478. func (m *OptionsetRes) XXX_DiscardUnknown() {
  479. xxx_messageInfo_OptionsetRes.DiscardUnknown(m)
  480. }
  481. var xxx_messageInfo_OptionsetRes proto.InternalMessageInfo
  482. func (m *OptionsetRes) GetMapList() map[string]string {
  483. if m != nil {
  484. return m.MapList
  485. }
  486. return nil
  487. }
  488. type ExcelLogReq struct {
  489. Module string `protobuf:"bytes,1,opt,name=Module,proto3" json:"Module,omitempty"`
  490. Cond string `protobuf:"bytes,2,opt,name=Cond,proto3" json:"Cond,omitempty"`
  491. CreateBy string `protobuf:"bytes,3,opt,name=CreateBy,proto3" json:"CreateBy,omitempty"`
  492. CreateTime string `protobuf:"bytes,4,opt,name=CreateTime,proto3" json:"CreateTime,omitempty"`
  493. LastUpdateBy string `protobuf:"bytes,5,opt,name=LastUpdateBy,proto3" json:"LastUpdateBy,omitempty"`
  494. LastUpdateTime string `protobuf:"bytes,6,opt,name=LastUpdateTime,proto3" json:"LastUpdateTime,omitempty"`
  495. DelFlag string `protobuf:"bytes,7,opt,name=DelFlag,proto3" json:"DelFlag,omitempty"`
  496. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  497. XXX_unrecognized []byte `json:"-"`
  498. XXX_sizecache int32 `json:"-"`
  499. }
  500. func (m *ExcelLogReq) Reset() { *m = ExcelLogReq{} }
  501. func (m *ExcelLogReq) String() string { return proto.CompactTextString(m) }
  502. func (*ExcelLogReq) ProtoMessage() {}
  503. func (*ExcelLogReq) Descriptor() ([]byte, []int) {
  504. return fileDescriptor_cb4a498eeb2ba07d, []int{10}
  505. }
  506. func (m *ExcelLogReq) XXX_Unmarshal(b []byte) error {
  507. return xxx_messageInfo_ExcelLogReq.Unmarshal(m, b)
  508. }
  509. func (m *ExcelLogReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  510. return xxx_messageInfo_ExcelLogReq.Marshal(b, m, deterministic)
  511. }
  512. func (m *ExcelLogReq) XXX_Merge(src proto.Message) {
  513. xxx_messageInfo_ExcelLogReq.Merge(m, src)
  514. }
  515. func (m *ExcelLogReq) XXX_Size() int {
  516. return xxx_messageInfo_ExcelLogReq.Size(m)
  517. }
  518. func (m *ExcelLogReq) XXX_DiscardUnknown() {
  519. xxx_messageInfo_ExcelLogReq.DiscardUnknown(m)
  520. }
  521. var xxx_messageInfo_ExcelLogReq proto.InternalMessageInfo
  522. func (m *ExcelLogReq) GetModule() string {
  523. if m != nil {
  524. return m.Module
  525. }
  526. return ""
  527. }
  528. func (m *ExcelLogReq) GetCond() string {
  529. if m != nil {
  530. return m.Cond
  531. }
  532. return ""
  533. }
  534. func (m *ExcelLogReq) GetCreateBy() string {
  535. if m != nil {
  536. return m.CreateBy
  537. }
  538. return ""
  539. }
  540. func (m *ExcelLogReq) GetCreateTime() string {
  541. if m != nil {
  542. return m.CreateTime
  543. }
  544. return ""
  545. }
  546. func (m *ExcelLogReq) GetLastUpdateBy() string {
  547. if m != nil {
  548. return m.LastUpdateBy
  549. }
  550. return ""
  551. }
  552. func (m *ExcelLogReq) GetLastUpdateTime() string {
  553. if m != nil {
  554. return m.LastUpdateTime
  555. }
  556. return ""
  557. }
  558. func (m *ExcelLogReq) GetDelFlag() string {
  559. if m != nil {
  560. return m.DelFlag
  561. }
  562. return ""
  563. }
  564. type ExcelLogRes struct {
  565. Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"Status,omitempty"`
  566. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  567. XXX_unrecognized []byte `json:"-"`
  568. XXX_sizecache int32 `json:"-"`
  569. }
  570. func (m *ExcelLogRes) Reset() { *m = ExcelLogRes{} }
  571. func (m *ExcelLogRes) String() string { return proto.CompactTextString(m) }
  572. func (*ExcelLogRes) ProtoMessage() {}
  573. func (*ExcelLogRes) Descriptor() ([]byte, []int) {
  574. return fileDescriptor_cb4a498eeb2ba07d, []int{11}
  575. }
  576. func (m *ExcelLogRes) XXX_Unmarshal(b []byte) error {
  577. return xxx_messageInfo_ExcelLogRes.Unmarshal(m, b)
  578. }
  579. func (m *ExcelLogRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  580. return xxx_messageInfo_ExcelLogRes.Marshal(b, m, deterministic)
  581. }
  582. func (m *ExcelLogRes) XXX_Merge(src proto.Message) {
  583. xxx_messageInfo_ExcelLogRes.Merge(m, src)
  584. }
  585. func (m *ExcelLogRes) XXX_Size() int {
  586. return xxx_messageInfo_ExcelLogRes.Size(m)
  587. }
  588. func (m *ExcelLogRes) XXX_DiscardUnknown() {
  589. xxx_messageInfo_ExcelLogRes.DiscardUnknown(m)
  590. }
  591. var xxx_messageInfo_ExcelLogRes proto.InternalMessageInfo
  592. func (m *ExcelLogRes) GetStatus() string {
  593. if m != nil {
  594. return m.Status
  595. }
  596. return ""
  597. }
  598. func init() {
  599. proto.RegisterType((*UserRequest)(nil), "transform.UserRequest")
  600. proto.RegisterType((*UserResponse)(nil), "transform.UserResponse")
  601. proto.RegisterType((*TokenRequest)(nil), "transform.TokenRequest")
  602. proto.RegisterType((*TokenResponse)(nil), "transform.TokenResponse")
  603. proto.RegisterType((*Empty)(nil), "transform.Empty")
  604. proto.RegisterType((*TreeNodes)(nil), "transform.TreeNodes")
  605. proto.RegisterType((*TreeNode)(nil), "transform.TreeNode")
  606. proto.RegisterType((*Tag)(nil), "transform.Tag")
  607. proto.RegisterType((*OptionsetReq)(nil), "transform.OptionsetReq")
  608. proto.RegisterType((*OptionsetRes)(nil), "transform.OptionsetRes")
  609. proto.RegisterMapType((map[string]string)(nil), "transform.OptionsetRes.MapListEntry")
  610. proto.RegisterType((*ExcelLogReq)(nil), "transform.ExcelLogReq")
  611. proto.RegisterType((*ExcelLogRes)(nil), "transform.ExcelLogRes")
  612. }
  613. func init() { proto.RegisterFile("transform.proto", fileDescriptor_cb4a498eeb2ba07d) }
  614. var fileDescriptor_cb4a498eeb2ba07d = []byte{
  615. // 716 bytes of a gzipped FileDescriptorProto
  616. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xdd, 0x4e, 0xdb, 0x4a,
  617. 0x10, 0x96, 0x63, 0x92, 0xc0, 0x24, 0x04, 0xb4, 0x07, 0xe5, 0x58, 0xb9, 0x38, 0x8a, 0x2c, 0x4e,
  618. 0x15, 0x6e, 0xb8, 0x00, 0xa9, 0x42, 0x5c, 0xb4, 0x6a, 0x69, 0x8a, 0x90, 0xc2, 0x8f, 0x9c, 0xf0,
  619. 0x00, 0x6e, 0x3c, 0x0d, 0x16, 0x8e, 0xd7, 0xec, 0x6e, 0x10, 0x7e, 0x85, 0xde, 0xf6, 0x99, 0xfa,
  620. 0x06, 0xbd, 0xeb, 0xc3, 0xb4, 0x9a, 0xdd, 0x75, 0xd8, 0x00, 0x55, 0x7b, 0x37, 0xdf, 0x37, 0xb3,
  621. 0xbb, 0x33, 0x9f, 0xbf, 0x5d, 0xc3, 0x96, 0x12, 0x71, 0x2e, 0x3f, 0x73, 0x31, 0xdf, 0x2f, 0x04,
  622. 0x57, 0x9c, 0x6d, 0x2c, 0x89, 0xf0, 0x10, 0x5a, 0xd7, 0x12, 0x45, 0x84, 0x77, 0x0b, 0x94, 0x8a,
  623. 0x75, 0xa0, 0x96, 0x26, 0x81, 0xd7, 0xf7, 0x06, 0x1b, 0x51, 0x2d, 0x4d, 0xd8, 0x0e, 0xd4, 0x8b,
  624. 0x1b, 0x9e, 0x63, 0x50, 0xd3, 0x94, 0x01, 0xe1, 0x77, 0x0f, 0xda, 0x66, 0x95, 0x2c, 0x78, 0x2e,
  625. 0xf1, 0xef, 0x96, 0x11, 0x2b, 0x78, 0x86, 0x32, 0xf0, 0x0d, 0xab, 0x01, 0xeb, 0x42, 0x43, 0xaa,
  626. 0x58, 0x2d, 0x64, 0xb0, 0xd6, 0xf7, 0x06, 0x7e, 0x64, 0x11, 0xeb, 0x43, 0x0b, 0x45, 0x11, 0xf1,
  627. 0x0c, 0x27, 0x65, 0x81, 0x41, 0x5d, 0x27, 0x5d, 0x8a, 0xf5, 0x60, 0x7d, 0x21, 0x51, 0x5c, 0xc4,
  628. 0x73, 0x0c, 0x1a, 0x7a, 0xcb, 0x25, 0xa6, 0xdc, 0x34, 0x55, 0xa5, 0xce, 0x35, 0x4d, 0xae, 0xc2,
  629. 0x74, 0xe2, 0x0c, 0xf3, 0x04, 0x45, 0xb0, 0x6e, 0x4e, 0x34, 0x28, 0xdc, 0x85, 0xf6, 0x84, 0xdf,
  630. 0x62, 0x5e, 0x89, 0xb1, 0x03, 0x75, 0x45, 0xd8, 0x0e, 0x66, 0x40, 0xf8, 0xd3, 0x83, 0x4d, 0x5b,
  631. 0x66, 0xa7, 0xef, 0x42, 0x83, 0xd4, 0x38, 0xab, 0x14, 0xb0, 0x88, 0x26, 0xd0, 0x2a, 0xf1, 0x0c,
  632. 0xcf, 0x12, 0x69, 0xb5, 0x70, 0x29, 0xb6, 0x0b, 0x9b, 0x04, 0xc7, 0xd3, 0x1b, 0xce, 0x33, 0xaa,
  633. 0x31, 0xca, 0xac, 0x92, 0x6c, 0x00, 0x5b, 0x44, 0x5c, 0x09, 0x7e, 0x9f, 0xe6, 0x53, 0xbd, 0xd7,
  634. 0x9a, 0xae, 0x7b, 0x4a, 0xb3, 0xd0, 0x7c, 0x97, 0x4b, 0x31, 0x8b, 0x73, 0x2a, 0xab, 0xeb, 0xb2,
  635. 0x15, 0x8e, 0xba, 0x1a, 0x97, 0xb2, 0xda, 0xdd, 0x0a, 0xe7, 0x52, 0xec, 0x3f, 0x80, 0x71, 0x29,
  636. 0xed, 0x02, 0xab, 0x9e, 0xc3, 0x84, 0x4d, 0xa8, 0x0f, 0xe7, 0x85, 0x2a, 0xc3, 0xd7, 0xb0, 0x31,
  637. 0x11, 0x88, 0x17, 0x3c, 0x41, 0xc9, 0xf6, 0xa0, 0x9e, 0x53, 0x10, 0x78, 0x7d, 0x7f, 0xd0, 0x3a,
  638. 0xf8, 0x67, 0xff, 0xd1, 0x75, 0x55, 0x51, 0x64, 0x2a, 0xc2, 0xaf, 0x1e, 0xac, 0x57, 0x9c, 0xe3,
  639. 0x1d, 0x5f, 0x7b, 0x87, 0xc1, 0x9a, 0xc2, 0x07, 0x65, 0xe5, 0xd2, 0x31, 0x29, 0x5c, 0xc4, 0x02,
  640. 0x73, 0xa5, 0x05, 0xf2, 0x23, 0x8b, 0x58, 0x1f, 0x7c, 0x15, 0xcf, 0xb4, 0x1a, 0xad, 0x83, 0x8e,
  641. 0x7b, 0x62, 0x3c, 0x8b, 0x28, 0xf5, 0xd8, 0x55, 0xfd, 0x8f, 0x5d, 0xed, 0x81, 0x3f, 0x89, 0x67,
  642. 0x2f, 0xf5, 0x93, 0x93, 0x8b, 0x6c, 0x3f, 0x14, 0x87, 0x21, 0xb4, 0x2f, 0x0b, 0x95, 0xd2, 0xd7,
  643. 0x57, 0x11, 0xde, 0x51, 0xcd, 0x94, 0x27, 0x68, 0xbf, 0xbf, 0x8e, 0xc3, 0x2f, 0xde, 0x4a, 0x91,
  644. 0x64, 0x6f, 0xa0, 0x39, 0x8f, 0x8b, 0x51, 0x2a, 0x95, 0x95, 0x68, 0xd7, 0x69, 0xc6, 0xad, 0xdc,
  645. 0x3f, 0x37, 0x65, 0xc3, 0x5c, 0x89, 0x32, 0xaa, 0x16, 0xf5, 0x8e, 0xa1, 0xed, 0x26, 0xd8, 0x36,
  646. 0xf8, 0xb7, 0x58, 0xda, 0x33, 0x29, 0x24, 0xc3, 0xde, 0xc7, 0xd9, 0x62, 0x79, 0xed, 0x34, 0x38,
  647. 0xae, 0x1d, 0x79, 0xe1, 0x0f, 0x0f, 0x5a, 0xc3, 0x87, 0x29, 0x66, 0x23, 0x3e, 0xa3, 0x86, 0xbb,
  648. 0xd0, 0x38, 0xe7, 0xc9, 0x22, 0xab, 0x5a, 0xb6, 0x88, 0x06, 0x39, 0xe1, 0x79, 0x52, 0x0d, 0x4b,
  649. 0x31, 0x5d, 0xa5, 0x13, 0x81, 0xb1, 0xc2, 0xf7, 0xa5, 0xf5, 0xe7, 0x12, 0x93, 0x55, 0x4c, 0x3c,
  650. 0x49, 0xe7, 0x68, 0x5d, 0xe9, 0x30, 0x64, 0xc8, 0x51, 0x2c, 0xd5, 0x75, 0x91, 0x98, 0xf5, 0xd6,
  651. 0x90, 0x2e, 0xc7, 0x5e, 0x41, 0xe7, 0x11, 0xeb, 0x7d, 0x8c, 0x27, 0x9f, 0xb0, 0x2c, 0x80, 0xe6,
  652. 0x07, 0xcc, 0x3e, 0x66, 0xf1, 0xcc, 0x7a, 0xb2, 0x82, 0xe1, 0xff, 0xee, 0x70, 0xfa, 0x45, 0x19,
  653. 0x9b, 0x17, 0xc5, 0x0e, 0x67, 0xd0, 0xc1, 0xb7, 0x1a, 0xf9, 0xd5, 0x2a, 0xce, 0x8e, 0xa1, 0x79,
  654. 0x8a, 0x8a, 0xae, 0x06, 0xeb, 0x3a, 0x1f, 0xc2, 0x79, 0x0d, 0x7b, 0xff, 0x3e, 0xe3, 0xed, 0x8d,
  655. 0x7f, 0x0b, 0x70, 0x15, 0x0b, 0x89, 0xfa, 0x1d, 0x60, 0x6e, 0x99, 0xfb, 0x80, 0xf4, 0x82, 0xe7,
  656. 0x09, 0xbb, 0xc1, 0x11, 0x74, 0x4e, 0x51, 0x0d, 0x45, 0x71, 0x92, 0xaa, 0x92, 0x8c, 0xc8, 0xb6,
  657. 0x9d, 0x5a, 0x7d, 0xbb, 0x7a, 0x3b, 0x2f, 0x78, 0x55, 0xb2, 0x77, 0xb0, 0x39, 0xe2, 0x71, 0xb2,
  658. 0xf4, 0xcb, 0xca, 0xe9, 0xae, 0x29, 0x7b, 0xbf, 0x49, 0x90, 0x11, 0xdb, 0x57, 0x5c, 0xaa, 0x4a,
  659. 0xb2, 0x95, 0xf1, 0x1d, 0x93, 0xf4, 0x5e, 0xe6, 0xe5, 0xa7, 0x86, 0xfe, 0x8b, 0x1c, 0xfe, 0x0a,
  660. 0x00, 0x00, 0xff, 0xff, 0xb6, 0x68, 0xe8, 0xf6, 0x58, 0x06, 0x00, 0x00,
  661. }
  662. // Reference imports to suppress errors if they are not otherwise used.
  663. var _ context.Context
  664. var _ grpc.ClientConn
  665. // This is a compile-time assertion to ensure that this generated file
  666. // is compatible with the grpc package it is being compiled against.
  667. const _ = grpc.SupportPackageIsVersion4
  668. // TransformClient is the client API for Transform service.
  669. //
  670. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  671. type TransformClient interface {
  672. GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
  673. ParseToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error)
  674. GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
  675. LoadOptionset(ctx context.Context, in *OptionsetReq, opts ...grpc.CallOption) (*OptionsetRes, error)
  676. PostExcelLog(ctx context.Context, in *ExcelLogReq, opts ...grpc.CallOption) (*ExcelLogRes, error)
  677. }
  678. type transformClient struct {
  679. cc *grpc.ClientConn
  680. }
  681. func NewTransformClient(cc *grpc.ClientConn) TransformClient {
  682. return &transformClient{cc}
  683. }
  684. func (c *transformClient) GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error) {
  685. out := new(UserResponse)
  686. err := c.cc.Invoke(ctx, "/transform.Transform/GetUser", in, out, opts...)
  687. if err != nil {
  688. return nil, err
  689. }
  690. return out, nil
  691. }
  692. func (c *transformClient) ParseToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) {
  693. out := new(TokenResponse)
  694. err := c.cc.Invoke(ctx, "/transform.Transform/ParseToken", in, out, opts...)
  695. if err != nil {
  696. return nil, err
  697. }
  698. return out, nil
  699. }
  700. func (c *transformClient) GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error) {
  701. out := new(TreeNodes)
  702. err := c.cc.Invoke(ctx, "/transform.Transform/GetErpCityTree", in, out, opts...)
  703. if err != nil {
  704. return nil, err
  705. }
  706. return out, nil
  707. }
  708. func (c *transformClient) LoadOptionset(ctx context.Context, in *OptionsetReq, opts ...grpc.CallOption) (*OptionsetRes, error) {
  709. out := new(OptionsetRes)
  710. err := c.cc.Invoke(ctx, "/transform.Transform/LoadOptionset", in, out, opts...)
  711. if err != nil {
  712. return nil, err
  713. }
  714. return out, nil
  715. }
  716. func (c *transformClient) PostExcelLog(ctx context.Context, in *ExcelLogReq, opts ...grpc.CallOption) (*ExcelLogRes, error) {
  717. out := new(ExcelLogRes)
  718. err := c.cc.Invoke(ctx, "/transform.Transform/PostExcelLog", in, out, opts...)
  719. if err != nil {
  720. return nil, err
  721. }
  722. return out, nil
  723. }
  724. // TransformServer is the server API for Transform service.
  725. type TransformServer interface {
  726. GetUser(context.Context, *UserRequest) (*UserResponse, error)
  727. ParseToken(context.Context, *TokenRequest) (*TokenResponse, error)
  728. GetErpCityTree(context.Context, *Empty) (*TreeNodes, error)
  729. LoadOptionset(context.Context, *OptionsetReq) (*OptionsetRes, error)
  730. PostExcelLog(context.Context, *ExcelLogReq) (*ExcelLogRes, error)
  731. }
  732. // UnimplementedTransformServer can be embedded to have forward compatible implementations.
  733. type UnimplementedTransformServer struct {
  734. }
  735. func (*UnimplementedTransformServer) GetUser(ctx context.Context, req *UserRequest) (*UserResponse, error) {
  736. return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
  737. }
  738. func (*UnimplementedTransformServer) ParseToken(ctx context.Context, req *TokenRequest) (*TokenResponse, error) {
  739. return nil, status.Errorf(codes.Unimplemented, "method ParseToken not implemented")
  740. }
  741. func (*UnimplementedTransformServer) GetErpCityTree(ctx context.Context, req *Empty) (*TreeNodes, error) {
  742. return nil, status.Errorf(codes.Unimplemented, "method GetErpCityTree not implemented")
  743. }
  744. func (*UnimplementedTransformServer) LoadOptionset(ctx context.Context, req *OptionsetReq) (*OptionsetRes, error) {
  745. return nil, status.Errorf(codes.Unimplemented, "method LoadOptionset not implemented")
  746. }
  747. func (*UnimplementedTransformServer) PostExcelLog(ctx context.Context, req *ExcelLogReq) (*ExcelLogRes, error) {
  748. return nil, status.Errorf(codes.Unimplemented, "method PostExcelLog not implemented")
  749. }
  750. func RegisterTransformServer(s *grpc.Server, srv TransformServer) {
  751. s.RegisterService(&_Transform_serviceDesc, srv)
  752. }
  753. func _Transform_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  754. in := new(UserRequest)
  755. if err := dec(in); err != nil {
  756. return nil, err
  757. }
  758. if interceptor == nil {
  759. return srv.(TransformServer).GetUser(ctx, in)
  760. }
  761. info := &grpc.UnaryServerInfo{
  762. Server: srv,
  763. FullMethod: "/transform.Transform/GetUser",
  764. }
  765. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  766. return srv.(TransformServer).GetUser(ctx, req.(*UserRequest))
  767. }
  768. return interceptor(ctx, in, info, handler)
  769. }
  770. func _Transform_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  771. in := new(TokenRequest)
  772. if err := dec(in); err != nil {
  773. return nil, err
  774. }
  775. if interceptor == nil {
  776. return srv.(TransformServer).ParseToken(ctx, in)
  777. }
  778. info := &grpc.UnaryServerInfo{
  779. Server: srv,
  780. FullMethod: "/transform.Transform/ParseToken",
  781. }
  782. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  783. return srv.(TransformServer).ParseToken(ctx, req.(*TokenRequest))
  784. }
  785. return interceptor(ctx, in, info, handler)
  786. }
  787. func _Transform_GetErpCityTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  788. in := new(Empty)
  789. if err := dec(in); err != nil {
  790. return nil, err
  791. }
  792. if interceptor == nil {
  793. return srv.(TransformServer).GetErpCityTree(ctx, in)
  794. }
  795. info := &grpc.UnaryServerInfo{
  796. Server: srv,
  797. FullMethod: "/transform.Transform/GetErpCityTree",
  798. }
  799. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  800. return srv.(TransformServer).GetErpCityTree(ctx, req.(*Empty))
  801. }
  802. return interceptor(ctx, in, info, handler)
  803. }
  804. func _Transform_LoadOptionset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  805. in := new(OptionsetReq)
  806. if err := dec(in); err != nil {
  807. return nil, err
  808. }
  809. if interceptor == nil {
  810. return srv.(TransformServer).LoadOptionset(ctx, in)
  811. }
  812. info := &grpc.UnaryServerInfo{
  813. Server: srv,
  814. FullMethod: "/transform.Transform/LoadOptionset",
  815. }
  816. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  817. return srv.(TransformServer).LoadOptionset(ctx, req.(*OptionsetReq))
  818. }
  819. return interceptor(ctx, in, info, handler)
  820. }
  821. func _Transform_PostExcelLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  822. in := new(ExcelLogReq)
  823. if err := dec(in); err != nil {
  824. return nil, err
  825. }
  826. if interceptor == nil {
  827. return srv.(TransformServer).PostExcelLog(ctx, in)
  828. }
  829. info := &grpc.UnaryServerInfo{
  830. Server: srv,
  831. FullMethod: "/transform.Transform/PostExcelLog",
  832. }
  833. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  834. return srv.(TransformServer).PostExcelLog(ctx, req.(*ExcelLogReq))
  835. }
  836. return interceptor(ctx, in, info, handler)
  837. }
  838. var _Transform_serviceDesc = grpc.ServiceDesc{
  839. ServiceName: "transform.Transform",
  840. HandlerType: (*TransformServer)(nil),
  841. Methods: []grpc.MethodDesc{
  842. {
  843. MethodName: "GetUser",
  844. Handler: _Transform_GetUser_Handler,
  845. },
  846. {
  847. MethodName: "ParseToken",
  848. Handler: _Transform_ParseToken_Handler,
  849. },
  850. {
  851. MethodName: "GetErpCityTree",
  852. Handler: _Transform_GetErpCityTree_Handler,
  853. },
  854. {
  855. MethodName: "LoadOptionset",
  856. Handler: _Transform_LoadOptionset_Handler,
  857. },
  858. {
  859. MethodName: "PostExcelLog",
  860. Handler: _Transform_PostExcelLog_Handler,
  861. },
  862. },
  863. Streams: []grpc.StreamDesc{},
  864. Metadata: "transform.proto",
  865. }