common.pb.go 36 KB

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