userlib.pb.go 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.15.5
  5. // source: userlib.proto
  6. package userlib
  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. //用户文档类别
  28. type UserDocCategory int32
  29. const (
  30. UserDocCategory_SelfUpload UserDocCategory = 0 //自己上传
  31. UserDocCategory_Download UserDocCategory = 1 //转存(下载)
  32. UserDocCategory_Collect UserDocCategory = 2 //收藏
  33. )
  34. // Enum value maps for UserDocCategory.
  35. var (
  36. UserDocCategory_name = map[int32]string{
  37. 0: "SelfUpload",
  38. 1: "Download",
  39. 2: "Collect",
  40. }
  41. UserDocCategory_value = map[string]int32{
  42. "SelfUpload": 0,
  43. "Download": 1,
  44. "Collect": 2,
  45. }
  46. )
  47. func (x UserDocCategory) Enum() *UserDocCategory {
  48. p := new(UserDocCategory)
  49. *p = x
  50. return p
  51. }
  52. func (x UserDocCategory) String() string {
  53. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  54. }
  55. func (UserDocCategory) Descriptor() protoreflect.EnumDescriptor {
  56. return file_userlib_proto_enumTypes[0].Descriptor()
  57. }
  58. func (UserDocCategory) Type() protoreflect.EnumType {
  59. return &file_userlib_proto_enumTypes[0]
  60. }
  61. func (x UserDocCategory) Number() protoreflect.EnumNumber {
  62. return protoreflect.EnumNumber(x)
  63. }
  64. // Deprecated: Use UserDocCategory.Descriptor instead.
  65. func (UserDocCategory) EnumDescriptor() ([]byte, []int) {
  66. return file_userlib_proto_rawDescGZIP(), []int{0}
  67. }
  68. //文件类型
  69. type UserDocFileType int32
  70. const (
  71. UserDocFileType_Doc UserDocFileType = 0
  72. UserDocFileType_Pdf UserDocFileType = 1
  73. UserDocFileType_Xls UserDocFileType = 2
  74. UserDocFileType_Ppt UserDocFileType = 3
  75. UserDocFileType_Txt UserDocFileType = 4
  76. UserDocFileType_Other UserDocFileType = 5
  77. )
  78. // Enum value maps for UserDocFileType.
  79. var (
  80. UserDocFileType_name = map[int32]string{
  81. 0: "Doc",
  82. 1: "Pdf",
  83. 2: "Xls",
  84. 3: "Ppt",
  85. 4: "Txt",
  86. 5: "Other",
  87. }
  88. UserDocFileType_value = map[string]int32{
  89. "Doc": 0,
  90. "Pdf": 1,
  91. "Xls": 2,
  92. "Ppt": 3,
  93. "Txt": 4,
  94. "Other": 5,
  95. }
  96. )
  97. func (x UserDocFileType) Enum() *UserDocFileType {
  98. p := new(UserDocFileType)
  99. *p = x
  100. return p
  101. }
  102. func (x UserDocFileType) String() string {
  103. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  104. }
  105. func (UserDocFileType) Descriptor() protoreflect.EnumDescriptor {
  106. return file_userlib_proto_enumTypes[1].Descriptor()
  107. }
  108. func (UserDocFileType) Type() protoreflect.EnumType {
  109. return &file_userlib_proto_enumTypes[1]
  110. }
  111. func (x UserDocFileType) Number() protoreflect.EnumNumber {
  112. return protoreflect.EnumNumber(x)
  113. }
  114. // Deprecated: Use UserDocFileType.Descriptor instead.
  115. func (UserDocFileType) EnumDescriptor() ([]byte, []int) {
  116. return file_userlib_proto_rawDescGZIP(), []int{1}
  117. }
  118. type UserDocStatus int32
  119. const (
  120. UserDocStatus_Normal UserDocStatus = 0 //文件正常
  121. UserDocStatus_LogicDelete UserDocStatus = 1 //删除
  122. UserDocStatus_PermanentlyDelete UserDocStatus = 2 //永久删除
  123. )
  124. // Enum value maps for UserDocStatus.
  125. var (
  126. UserDocStatus_name = map[int32]string{
  127. 0: "Normal",
  128. 1: "LogicDelete",
  129. 2: "PermanentlyDelete",
  130. }
  131. UserDocStatus_value = map[string]int32{
  132. "Normal": 0,
  133. "LogicDelete": 1,
  134. "PermanentlyDelete": 2,
  135. }
  136. )
  137. func (x UserDocStatus) Enum() *UserDocStatus {
  138. p := new(UserDocStatus)
  139. *p = x
  140. return p
  141. }
  142. func (x UserDocStatus) String() string {
  143. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  144. }
  145. func (UserDocStatus) Descriptor() protoreflect.EnumDescriptor {
  146. return file_userlib_proto_enumTypes[2].Descriptor()
  147. }
  148. func (UserDocStatus) Type() protoreflect.EnumType {
  149. return &file_userlib_proto_enumTypes[2]
  150. }
  151. func (x UserDocStatus) Number() protoreflect.EnumNumber {
  152. return protoreflect.EnumNumber(x)
  153. }
  154. // Deprecated: Use UserDocStatus.Descriptor instead.
  155. func (UserDocStatus) EnumDescriptor() ([]byte, []int) {
  156. return file_userlib_proto_rawDescGZIP(), []int{2}
  157. }
  158. //用户收藏|转存
  159. type UserCollectRequest struct {
  160. state protoimpl.MessageState
  161. sizeCache protoimpl.SizeCache
  162. unknownFields protoimpl.UnknownFields
  163. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
  164. DocId string `protobuf:"bytes,2,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  165. SourceUserId string `protobuf:"bytes,3,opt,name=sourceUserId,proto3" json:"sourceUserId,omitempty"` //原文档用户id
  166. DocCategory UserDocCategory `protobuf:"varint,4,opt,name=docCategory,proto3,enum=userlib.UserDocCategory" json:"docCategory,omitempty"` //文档类别
  167. DocName string `protobuf:"bytes,5,opt,name=docName,proto3" json:"docName,omitempty"` //文档名称
  168. DocFileType UserDocFileType `protobuf:"varint,6,opt,name=docFileType,proto3,enum=userlib.UserDocFileType" json:"docFileType,omitempty"` //文档类型
  169. DocFileSuffix string `protobuf:"bytes,7,opt,name=docFileSuffix,proto3" json:"docFileSuffix,omitempty"` //文档后缀
  170. DocFileSize int32 `protobuf:"varint,8,opt,name=docFileSize,proto3" json:"docFileSize,omitempty"` //文档大小
  171. DocPageSize int32 `protobuf:"varint,9,opt,name=docPageSize,proto3" json:"docPageSize,omitempty"` //页码数目
  172. DocSummary string `protobuf:"bytes,10,opt,name=docSummary,proto3" json:"docSummary,omitempty"` //文档摘要
  173. Cost int32 `protobuf:"varint,11,opt,name=cost,proto3" json:"cost,omitempty"` //收藏|转存费用
  174. }
  175. func (x *UserCollectRequest) Reset() {
  176. *x = UserCollectRequest{}
  177. if protoimpl.UnsafeEnabled {
  178. mi := &file_userlib_proto_msgTypes[0]
  179. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  180. ms.StoreMessageInfo(mi)
  181. }
  182. }
  183. func (x *UserCollectRequest) String() string {
  184. return protoimpl.X.MessageStringOf(x)
  185. }
  186. func (*UserCollectRequest) ProtoMessage() {}
  187. func (x *UserCollectRequest) ProtoReflect() protoreflect.Message {
  188. mi := &file_userlib_proto_msgTypes[0]
  189. if protoimpl.UnsafeEnabled && x != nil {
  190. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  191. if ms.LoadMessageInfo() == nil {
  192. ms.StoreMessageInfo(mi)
  193. }
  194. return ms
  195. }
  196. return mi.MessageOf(x)
  197. }
  198. // Deprecated: Use UserCollectRequest.ProtoReflect.Descriptor instead.
  199. func (*UserCollectRequest) Descriptor() ([]byte, []int) {
  200. return file_userlib_proto_rawDescGZIP(), []int{0}
  201. }
  202. func (x *UserCollectRequest) GetUserId() string {
  203. if x != nil {
  204. return x.UserId
  205. }
  206. return ""
  207. }
  208. func (x *UserCollectRequest) GetDocId() string {
  209. if x != nil {
  210. return x.DocId
  211. }
  212. return ""
  213. }
  214. func (x *UserCollectRequest) GetSourceUserId() string {
  215. if x != nil {
  216. return x.SourceUserId
  217. }
  218. return ""
  219. }
  220. func (x *UserCollectRequest) GetDocCategory() UserDocCategory {
  221. if x != nil {
  222. return x.DocCategory
  223. }
  224. return UserDocCategory_SelfUpload
  225. }
  226. func (x *UserCollectRequest) GetDocName() string {
  227. if x != nil {
  228. return x.DocName
  229. }
  230. return ""
  231. }
  232. func (x *UserCollectRequest) GetDocFileType() UserDocFileType {
  233. if x != nil {
  234. return x.DocFileType
  235. }
  236. return UserDocFileType_Doc
  237. }
  238. func (x *UserCollectRequest) GetDocFileSuffix() string {
  239. if x != nil {
  240. return x.DocFileSuffix
  241. }
  242. return ""
  243. }
  244. func (x *UserCollectRequest) GetDocFileSize() int32 {
  245. if x != nil {
  246. return x.DocFileSize
  247. }
  248. return 0
  249. }
  250. func (x *UserCollectRequest) GetDocPageSize() int32 {
  251. if x != nil {
  252. return x.DocPageSize
  253. }
  254. return 0
  255. }
  256. func (x *UserCollectRequest) GetDocSummary() string {
  257. if x != nil {
  258. return x.DocSummary
  259. }
  260. return ""
  261. }
  262. func (x *UserCollectRequest) GetCost() int32 {
  263. if x != nil {
  264. return x.Cost
  265. }
  266. return 0
  267. }
  268. type UserCollectResponse struct {
  269. state protoimpl.MessageState
  270. sizeCache protoimpl.SizeCache
  271. unknownFields protoimpl.UnknownFields
  272. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  273. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  274. }
  275. func (x *UserCollectResponse) Reset() {
  276. *x = UserCollectResponse{}
  277. if protoimpl.UnsafeEnabled {
  278. mi := &file_userlib_proto_msgTypes[1]
  279. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  280. ms.StoreMessageInfo(mi)
  281. }
  282. }
  283. func (x *UserCollectResponse) String() string {
  284. return protoimpl.X.MessageStringOf(x)
  285. }
  286. func (*UserCollectResponse) ProtoMessage() {}
  287. func (x *UserCollectResponse) ProtoReflect() protoreflect.Message {
  288. mi := &file_userlib_proto_msgTypes[1]
  289. if protoimpl.UnsafeEnabled && x != nil {
  290. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  291. if ms.LoadMessageInfo() == nil {
  292. ms.StoreMessageInfo(mi)
  293. }
  294. return ms
  295. }
  296. return mi.MessageOf(x)
  297. }
  298. // Deprecated: Use UserCollectResponse.ProtoReflect.Descriptor instead.
  299. func (*UserCollectResponse) Descriptor() ([]byte, []int) {
  300. return file_userlib_proto_rawDescGZIP(), []int{1}
  301. }
  302. func (x *UserCollectResponse) GetCode() int32 {
  303. if x != nil {
  304. return x.Code
  305. }
  306. return 0
  307. }
  308. func (x *UserCollectResponse) GetMessage() string {
  309. if x != nil {
  310. return x.Message
  311. }
  312. return ""
  313. }
  314. //用户删除
  315. type UserDeleteRequest struct {
  316. state protoimpl.MessageState
  317. sizeCache protoimpl.SizeCache
  318. unknownFields protoimpl.UnknownFields
  319. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  320. }
  321. func (x *UserDeleteRequest) Reset() {
  322. *x = UserDeleteRequest{}
  323. if protoimpl.UnsafeEnabled {
  324. mi := &file_userlib_proto_msgTypes[2]
  325. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  326. ms.StoreMessageInfo(mi)
  327. }
  328. }
  329. func (x *UserDeleteRequest) String() string {
  330. return protoimpl.X.MessageStringOf(x)
  331. }
  332. func (*UserDeleteRequest) ProtoMessage() {}
  333. func (x *UserDeleteRequest) ProtoReflect() protoreflect.Message {
  334. mi := &file_userlib_proto_msgTypes[2]
  335. if protoimpl.UnsafeEnabled && x != nil {
  336. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  337. if ms.LoadMessageInfo() == nil {
  338. ms.StoreMessageInfo(mi)
  339. }
  340. return ms
  341. }
  342. return mi.MessageOf(x)
  343. }
  344. // Deprecated: Use UserDeleteRequest.ProtoReflect.Descriptor instead.
  345. func (*UserDeleteRequest) Descriptor() ([]byte, []int) {
  346. return file_userlib_proto_rawDescGZIP(), []int{2}
  347. }
  348. func (x *UserDeleteRequest) GetDocId() string {
  349. if x != nil {
  350. return x.DocId
  351. }
  352. return ""
  353. }
  354. type UserDeleteResponse struct {
  355. state protoimpl.MessageState
  356. sizeCache protoimpl.SizeCache
  357. unknownFields protoimpl.UnknownFields
  358. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  359. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  360. }
  361. func (x *UserDeleteResponse) Reset() {
  362. *x = UserDeleteResponse{}
  363. if protoimpl.UnsafeEnabled {
  364. mi := &file_userlib_proto_msgTypes[3]
  365. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  366. ms.StoreMessageInfo(mi)
  367. }
  368. }
  369. func (x *UserDeleteResponse) String() string {
  370. return protoimpl.X.MessageStringOf(x)
  371. }
  372. func (*UserDeleteResponse) ProtoMessage() {}
  373. func (x *UserDeleteResponse) ProtoReflect() protoreflect.Message {
  374. mi := &file_userlib_proto_msgTypes[3]
  375. if protoimpl.UnsafeEnabled && x != nil {
  376. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  377. if ms.LoadMessageInfo() == nil {
  378. ms.StoreMessageInfo(mi)
  379. }
  380. return ms
  381. }
  382. return mi.MessageOf(x)
  383. }
  384. // Deprecated: Use UserDeleteResponse.ProtoReflect.Descriptor instead.
  385. func (*UserDeleteResponse) Descriptor() ([]byte, []int) {
  386. return file_userlib_proto_rawDescGZIP(), []int{3}
  387. }
  388. func (x *UserDeleteResponse) GetCode() int32 {
  389. if x != nil {
  390. return x.Code
  391. }
  392. return 0
  393. }
  394. func (x *UserDeleteResponse) GetMessage() string {
  395. if x != nil {
  396. return x.Message
  397. }
  398. return ""
  399. }
  400. //用户恢复
  401. type UserRestoreRequest struct {
  402. state protoimpl.MessageState
  403. sizeCache protoimpl.SizeCache
  404. unknownFields protoimpl.UnknownFields
  405. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  406. }
  407. func (x *UserRestoreRequest) Reset() {
  408. *x = UserRestoreRequest{}
  409. if protoimpl.UnsafeEnabled {
  410. mi := &file_userlib_proto_msgTypes[4]
  411. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  412. ms.StoreMessageInfo(mi)
  413. }
  414. }
  415. func (x *UserRestoreRequest) String() string {
  416. return protoimpl.X.MessageStringOf(x)
  417. }
  418. func (*UserRestoreRequest) ProtoMessage() {}
  419. func (x *UserRestoreRequest) ProtoReflect() protoreflect.Message {
  420. mi := &file_userlib_proto_msgTypes[4]
  421. if protoimpl.UnsafeEnabled && x != nil {
  422. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  423. if ms.LoadMessageInfo() == nil {
  424. ms.StoreMessageInfo(mi)
  425. }
  426. return ms
  427. }
  428. return mi.MessageOf(x)
  429. }
  430. // Deprecated: Use UserRestoreRequest.ProtoReflect.Descriptor instead.
  431. func (*UserRestoreRequest) Descriptor() ([]byte, []int) {
  432. return file_userlib_proto_rawDescGZIP(), []int{4}
  433. }
  434. func (x *UserRestoreRequest) GetDocId() string {
  435. if x != nil {
  436. return x.DocId
  437. }
  438. return ""
  439. }
  440. type UserRestoreResponse struct {
  441. state protoimpl.MessageState
  442. sizeCache protoimpl.SizeCache
  443. unknownFields protoimpl.UnknownFields
  444. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  445. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  446. }
  447. func (x *UserRestoreResponse) Reset() {
  448. *x = UserRestoreResponse{}
  449. if protoimpl.UnsafeEnabled {
  450. mi := &file_userlib_proto_msgTypes[5]
  451. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  452. ms.StoreMessageInfo(mi)
  453. }
  454. }
  455. func (x *UserRestoreResponse) String() string {
  456. return protoimpl.X.MessageStringOf(x)
  457. }
  458. func (*UserRestoreResponse) ProtoMessage() {}
  459. func (x *UserRestoreResponse) ProtoReflect() protoreflect.Message {
  460. mi := &file_userlib_proto_msgTypes[5]
  461. if protoimpl.UnsafeEnabled && x != nil {
  462. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  463. if ms.LoadMessageInfo() == nil {
  464. ms.StoreMessageInfo(mi)
  465. }
  466. return ms
  467. }
  468. return mi.MessageOf(x)
  469. }
  470. // Deprecated: Use UserRestoreResponse.ProtoReflect.Descriptor instead.
  471. func (*UserRestoreResponse) Descriptor() ([]byte, []int) {
  472. return file_userlib_proto_rawDescGZIP(), []int{5}
  473. }
  474. func (x *UserRestoreResponse) GetCode() int32 {
  475. if x != nil {
  476. return x.Code
  477. }
  478. return 0
  479. }
  480. func (x *UserRestoreResponse) GetMessage() string {
  481. if x != nil {
  482. return x.Message
  483. }
  484. return ""
  485. }
  486. //用户文档列表
  487. type UserDocsRequest struct {
  488. state protoimpl.MessageState
  489. sizeCache protoimpl.SizeCache
  490. unknownFields protoimpl.UnknownFields
  491. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
  492. UserDocCategory UserDocCategory `protobuf:"varint,2,opt,name=userDocCategory,proto3,enum=userlib.UserDocCategory" json:"userDocCategory,omitempty"` //用户文档分类
  493. }
  494. func (x *UserDocsRequest) Reset() {
  495. *x = UserDocsRequest{}
  496. if protoimpl.UnsafeEnabled {
  497. mi := &file_userlib_proto_msgTypes[6]
  498. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  499. ms.StoreMessageInfo(mi)
  500. }
  501. }
  502. func (x *UserDocsRequest) String() string {
  503. return protoimpl.X.MessageStringOf(x)
  504. }
  505. func (*UserDocsRequest) ProtoMessage() {}
  506. func (x *UserDocsRequest) ProtoReflect() protoreflect.Message {
  507. mi := &file_userlib_proto_msgTypes[6]
  508. if protoimpl.UnsafeEnabled && x != nil {
  509. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  510. if ms.LoadMessageInfo() == nil {
  511. ms.StoreMessageInfo(mi)
  512. }
  513. return ms
  514. }
  515. return mi.MessageOf(x)
  516. }
  517. // Deprecated: Use UserDocsRequest.ProtoReflect.Descriptor instead.
  518. func (*UserDocsRequest) Descriptor() ([]byte, []int) {
  519. return file_userlib_proto_rawDescGZIP(), []int{6}
  520. }
  521. func (x *UserDocsRequest) GetUserId() string {
  522. if x != nil {
  523. return x.UserId
  524. }
  525. return ""
  526. }
  527. func (x *UserDocsRequest) GetUserDocCategory() UserDocCategory {
  528. if x != nil {
  529. return x.UserDocCategory
  530. }
  531. return UserDocCategory_SelfUpload
  532. }
  533. type UserDocsResponse struct {
  534. state protoimpl.MessageState
  535. sizeCache protoimpl.SizeCache
  536. unknownFields protoimpl.UnknownFields
  537. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  538. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  539. Docs []*UserDoc `protobuf:"bytes,3,rep,name=docs,proto3" json:"docs,omitempty"` //用户文档列表
  540. }
  541. func (x *UserDocsResponse) Reset() {
  542. *x = UserDocsResponse{}
  543. if protoimpl.UnsafeEnabled {
  544. mi := &file_userlib_proto_msgTypes[7]
  545. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  546. ms.StoreMessageInfo(mi)
  547. }
  548. }
  549. func (x *UserDocsResponse) String() string {
  550. return protoimpl.X.MessageStringOf(x)
  551. }
  552. func (*UserDocsResponse) ProtoMessage() {}
  553. func (x *UserDocsResponse) ProtoReflect() protoreflect.Message {
  554. mi := &file_userlib_proto_msgTypes[7]
  555. if protoimpl.UnsafeEnabled && x != nil {
  556. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  557. if ms.LoadMessageInfo() == nil {
  558. ms.StoreMessageInfo(mi)
  559. }
  560. return ms
  561. }
  562. return mi.MessageOf(x)
  563. }
  564. // Deprecated: Use UserDocsResponse.ProtoReflect.Descriptor instead.
  565. func (*UserDocsResponse) Descriptor() ([]byte, []int) {
  566. return file_userlib_proto_rawDescGZIP(), []int{7}
  567. }
  568. func (x *UserDocsResponse) GetCode() int32 {
  569. if x != nil {
  570. return x.Code
  571. }
  572. return 0
  573. }
  574. func (x *UserDocsResponse) GetMessage() string {
  575. if x != nil {
  576. return x.Message
  577. }
  578. return ""
  579. }
  580. func (x *UserDocsResponse) GetDocs() []*UserDoc {
  581. if x != nil {
  582. return x.Docs
  583. }
  584. return nil
  585. }
  586. type UserDoc struct {
  587. state protoimpl.MessageState
  588. sizeCache protoimpl.SizeCache
  589. unknownFields protoimpl.UnknownFields
  590. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
  591. DocId string `protobuf:"bytes,2,opt,name=docId,proto3" json:"docId,omitempty"`
  592. DocName string `protobuf:"bytes,3,opt,name=docName,proto3" json:"docName,omitempty"`
  593. }
  594. func (x *UserDoc) Reset() {
  595. *x = UserDoc{}
  596. if protoimpl.UnsafeEnabled {
  597. mi := &file_userlib_proto_msgTypes[8]
  598. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  599. ms.StoreMessageInfo(mi)
  600. }
  601. }
  602. func (x *UserDoc) String() string {
  603. return protoimpl.X.MessageStringOf(x)
  604. }
  605. func (*UserDoc) ProtoMessage() {}
  606. func (x *UserDoc) ProtoReflect() protoreflect.Message {
  607. mi := &file_userlib_proto_msgTypes[8]
  608. if protoimpl.UnsafeEnabled && x != nil {
  609. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  610. if ms.LoadMessageInfo() == nil {
  611. ms.StoreMessageInfo(mi)
  612. }
  613. return ms
  614. }
  615. return mi.MessageOf(x)
  616. }
  617. // Deprecated: Use UserDoc.ProtoReflect.Descriptor instead.
  618. func (*UserDoc) Descriptor() ([]byte, []int) {
  619. return file_userlib_proto_rawDescGZIP(), []int{8}
  620. }
  621. func (x *UserDoc) GetUserId() string {
  622. if x != nil {
  623. return x.UserId
  624. }
  625. return ""
  626. }
  627. func (x *UserDoc) GetDocId() string {
  628. if x != nil {
  629. return x.DocId
  630. }
  631. return ""
  632. }
  633. func (x *UserDoc) GetDocName() string {
  634. if x != nil {
  635. return x.DocName
  636. }
  637. return ""
  638. }
  639. var File_userlib_proto protoreflect.FileDescriptor
  640. var file_userlib_proto_rawDesc = []byte{
  641. 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  642. 0x07, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x22, 0x96, 0x03, 0x0a, 0x12, 0x55, 0x73, 0x65,
  643. 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  644. 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  645. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64,
  646. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x22, 0x0a,
  647. 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20,
  648. 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  649. 0x64, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,
  650. 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62,
  651. 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,
  652. 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x18, 0x0a,
  653. 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  654. 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69,
  655. 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x75,
  656. 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x46, 0x69,
  657. 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54,
  658. 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x75,
  659. 0x66, 0x66, 0x69, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6f, 0x63, 0x46,
  660. 0x69, 0x6c, 0x65, 0x53, 0x75, 0x66, 0x66, 0x69, 0x78, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x63,
  661. 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b,
  662. 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64,
  663. 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05,
  664. 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1e, 0x0a,
  665. 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28,
  666. 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x12, 0x0a,
  667. 0x04, 0x63, 0x6f, 0x73, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x73,
  668. 0x74, 0x22, 0x43, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
  669. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
  670. 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07,
  671. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
  672. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x29, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65,
  673. 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x64,
  674. 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49,
  675. 0x64, 0x22, 0x42, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52,
  676. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
  677. 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  678. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
  679. 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x2a, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73,
  680. 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x64,
  681. 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49,
  682. 0x64, 0x22, 0x43, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65,
  683. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
  684. 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07,
  685. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
  686. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x6d, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f,
  687. 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65,
  688. 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
  689. 0x64, 0x12, 0x42, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65,
  690. 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x75, 0x73, 0x65,
  691. 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65,
  692. 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74,
  693. 0x65, 0x67, 0x6f, 0x72, 0x79, 0x22, 0x66, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63,
  694. 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
  695. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a,
  696. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  697. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x18,
  698. 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e,
  699. 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x52, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x22, 0x51, 0x0a,
  700. 0x07, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
  701. 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  702. 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  703. 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d,
  704. 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65,
  705. 0x2a, 0x3c, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65, 0x67,
  706. 0x6f, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x65, 0x6c, 0x66, 0x55, 0x70, 0x6c, 0x6f, 0x61,
  707. 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x10,
  708. 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x10, 0x02, 0x2a, 0x49,
  709. 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70,
  710. 0x65, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x6f, 0x63, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x64,
  711. 0x66, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x58, 0x6c, 0x73, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03,
  712. 0x50, 0x70, 0x74, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x78, 0x74, 0x10, 0x04, 0x12, 0x09,
  713. 0x0a, 0x05, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x10, 0x05, 0x2a, 0x43, 0x0a, 0x0d, 0x55, 0x73, 0x65,
  714. 0x72, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x6f,
  715. 0x72, 0x6d, 0x61, 0x6c, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x44,
  716. 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x65, 0x72, 0x6d, 0x61,
  717. 0x6e, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10, 0x02, 0x32, 0xa2,
  718. 0x02, 0x0a, 0x07, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x62, 0x12, 0x3f, 0x0a, 0x08, 0x55, 0x73,
  719. 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x12, 0x18, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62,
  720. 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  721. 0x1a, 0x19, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44,
  722. 0x6f, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x44,
  723. 0x6f, 0x63, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72,
  724. 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52,
  725. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62,
  726. 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70,
  727. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x44, 0x6f, 0x63, 0x44, 0x65, 0x6c, 0x65, 0x74,
  728. 0x65, 0x12, 0x1a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72,
  729. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e,
  730. 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65,
  731. 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x44, 0x6f,
  732. 0x63, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c,
  733. 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65,
  734. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e,
  735. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
  736. 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  737. }
  738. var (
  739. file_userlib_proto_rawDescOnce sync.Once
  740. file_userlib_proto_rawDescData = file_userlib_proto_rawDesc
  741. )
  742. func file_userlib_proto_rawDescGZIP() []byte {
  743. file_userlib_proto_rawDescOnce.Do(func() {
  744. file_userlib_proto_rawDescData = protoimpl.X.CompressGZIP(file_userlib_proto_rawDescData)
  745. })
  746. return file_userlib_proto_rawDescData
  747. }
  748. var file_userlib_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  749. var file_userlib_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  750. var file_userlib_proto_goTypes = []interface{}{
  751. (UserDocCategory)(0), // 0: userlib.UserDocCategory
  752. (UserDocFileType)(0), // 1: userlib.UserDocFileType
  753. (UserDocStatus)(0), // 2: userlib.UserDocStatus
  754. (*UserCollectRequest)(nil), // 3: userlib.UserCollectRequest
  755. (*UserCollectResponse)(nil), // 4: userlib.UserCollectResponse
  756. (*UserDeleteRequest)(nil), // 5: userlib.UserDeleteRequest
  757. (*UserDeleteResponse)(nil), // 6: userlib.UserDeleteResponse
  758. (*UserRestoreRequest)(nil), // 7: userlib.UserRestoreRequest
  759. (*UserRestoreResponse)(nil), // 8: userlib.UserRestoreResponse
  760. (*UserDocsRequest)(nil), // 9: userlib.UserDocsRequest
  761. (*UserDocsResponse)(nil), // 10: userlib.UserDocsResponse
  762. (*UserDoc)(nil), // 11: userlib.UserDoc
  763. }
  764. var file_userlib_proto_depIdxs = []int32{
  765. 0, // 0: userlib.UserCollectRequest.docCategory:type_name -> userlib.UserDocCategory
  766. 1, // 1: userlib.UserCollectRequest.docFileType:type_name -> userlib.UserDocFileType
  767. 0, // 2: userlib.UserDocsRequest.userDocCategory:type_name -> userlib.UserDocCategory
  768. 11, // 3: userlib.UserDocsResponse.docs:type_name -> userlib.UserDoc
  769. 9, // 4: userlib.UserLib.UserDocs:input_type -> userlib.UserDocsRequest
  770. 3, // 5: userlib.UserLib.DocCollect:input_type -> userlib.UserCollectRequest
  771. 5, // 6: userlib.UserLib.DocDelete:input_type -> userlib.UserDeleteRequest
  772. 7, // 7: userlib.UserLib.DocRestore:input_type -> userlib.UserRestoreRequest
  773. 10, // 8: userlib.UserLib.UserDocs:output_type -> userlib.UserDocsResponse
  774. 4, // 9: userlib.UserLib.DocCollect:output_type -> userlib.UserCollectResponse
  775. 6, // 10: userlib.UserLib.DocDelete:output_type -> userlib.UserDeleteResponse
  776. 8, // 11: userlib.UserLib.DocRestore:output_type -> userlib.UserRestoreResponse
  777. 8, // [8:12] is the sub-list for method output_type
  778. 4, // [4:8] is the sub-list for method input_type
  779. 4, // [4:4] is the sub-list for extension type_name
  780. 4, // [4:4] is the sub-list for extension extendee
  781. 0, // [0:4] is the sub-list for field type_name
  782. }
  783. func init() { file_userlib_proto_init() }
  784. func file_userlib_proto_init() {
  785. if File_userlib_proto != nil {
  786. return
  787. }
  788. if !protoimpl.UnsafeEnabled {
  789. file_userlib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  790. switch v := v.(*UserCollectRequest); i {
  791. case 0:
  792. return &v.state
  793. case 1:
  794. return &v.sizeCache
  795. case 2:
  796. return &v.unknownFields
  797. default:
  798. return nil
  799. }
  800. }
  801. file_userlib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  802. switch v := v.(*UserCollectResponse); i {
  803. case 0:
  804. return &v.state
  805. case 1:
  806. return &v.sizeCache
  807. case 2:
  808. return &v.unknownFields
  809. default:
  810. return nil
  811. }
  812. }
  813. file_userlib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  814. switch v := v.(*UserDeleteRequest); i {
  815. case 0:
  816. return &v.state
  817. case 1:
  818. return &v.sizeCache
  819. case 2:
  820. return &v.unknownFields
  821. default:
  822. return nil
  823. }
  824. }
  825. file_userlib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  826. switch v := v.(*UserDeleteResponse); i {
  827. case 0:
  828. return &v.state
  829. case 1:
  830. return &v.sizeCache
  831. case 2:
  832. return &v.unknownFields
  833. default:
  834. return nil
  835. }
  836. }
  837. file_userlib_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  838. switch v := v.(*UserRestoreRequest); i {
  839. case 0:
  840. return &v.state
  841. case 1:
  842. return &v.sizeCache
  843. case 2:
  844. return &v.unknownFields
  845. default:
  846. return nil
  847. }
  848. }
  849. file_userlib_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  850. switch v := v.(*UserRestoreResponse); i {
  851. case 0:
  852. return &v.state
  853. case 1:
  854. return &v.sizeCache
  855. case 2:
  856. return &v.unknownFields
  857. default:
  858. return nil
  859. }
  860. }
  861. file_userlib_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  862. switch v := v.(*UserDocsRequest); i {
  863. case 0:
  864. return &v.state
  865. case 1:
  866. return &v.sizeCache
  867. case 2:
  868. return &v.unknownFields
  869. default:
  870. return nil
  871. }
  872. }
  873. file_userlib_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  874. switch v := v.(*UserDocsResponse); i {
  875. case 0:
  876. return &v.state
  877. case 1:
  878. return &v.sizeCache
  879. case 2:
  880. return &v.unknownFields
  881. default:
  882. return nil
  883. }
  884. }
  885. file_userlib_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  886. switch v := v.(*UserDoc); i {
  887. case 0:
  888. return &v.state
  889. case 1:
  890. return &v.sizeCache
  891. case 2:
  892. return &v.unknownFields
  893. default:
  894. return nil
  895. }
  896. }
  897. }
  898. type x struct{}
  899. out := protoimpl.TypeBuilder{
  900. File: protoimpl.DescBuilder{
  901. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  902. RawDescriptor: file_userlib_proto_rawDesc,
  903. NumEnums: 3,
  904. NumMessages: 9,
  905. NumExtensions: 0,
  906. NumServices: 1,
  907. },
  908. GoTypes: file_userlib_proto_goTypes,
  909. DependencyIndexes: file_userlib_proto_depIdxs,
  910. EnumInfos: file_userlib_proto_enumTypes,
  911. MessageInfos: file_userlib_proto_msgTypes,
  912. }.Build()
  913. File_userlib_proto = out.File
  914. file_userlib_proto_rawDesc = nil
  915. file_userlib_proto_goTypes = nil
  916. file_userlib_proto_depIdxs = nil
  917. }
  918. // Reference imports to suppress errors if they are not otherwise used.
  919. var _ context.Context
  920. var _ grpc.ClientConnInterface
  921. // This is a compile-time assertion to ensure that this generated file
  922. // is compatible with the grpc package it is being compiled against.
  923. const _ = grpc.SupportPackageIsVersion6
  924. // UserLibClient is the client API for UserLib service.
  925. //
  926. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  927. type UserLibClient interface {
  928. UserDocs(ctx context.Context, in *UserDocsRequest, opts ...grpc.CallOption) (*UserDocsResponse, error)
  929. DocCollect(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
  930. DocDelete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error)
  931. DocRestore(ctx context.Context, in *UserRestoreRequest, opts ...grpc.CallOption) (*UserRestoreResponse, error)
  932. }
  933. type userLibClient struct {
  934. cc grpc.ClientConnInterface
  935. }
  936. func NewUserLibClient(cc grpc.ClientConnInterface) UserLibClient {
  937. return &userLibClient{cc}
  938. }
  939. func (c *userLibClient) UserDocs(ctx context.Context, in *UserDocsRequest, opts ...grpc.CallOption) (*UserDocsResponse, error) {
  940. out := new(UserDocsResponse)
  941. err := c.cc.Invoke(ctx, "/userlib.UserLib/UserDocs", in, out, opts...)
  942. if err != nil {
  943. return nil, err
  944. }
  945. return out, nil
  946. }
  947. func (c *userLibClient) DocCollect(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error) {
  948. out := new(UserCollectResponse)
  949. err := c.cc.Invoke(ctx, "/userlib.UserLib/DocCollect", in, out, opts...)
  950. if err != nil {
  951. return nil, err
  952. }
  953. return out, nil
  954. }
  955. func (c *userLibClient) DocDelete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error) {
  956. out := new(UserDeleteResponse)
  957. err := c.cc.Invoke(ctx, "/userlib.UserLib/DocDelete", in, out, opts...)
  958. if err != nil {
  959. return nil, err
  960. }
  961. return out, nil
  962. }
  963. func (c *userLibClient) DocRestore(ctx context.Context, in *UserRestoreRequest, opts ...grpc.CallOption) (*UserRestoreResponse, error) {
  964. out := new(UserRestoreResponse)
  965. err := c.cc.Invoke(ctx, "/userlib.UserLib/DocRestore", in, out, opts...)
  966. if err != nil {
  967. return nil, err
  968. }
  969. return out, nil
  970. }
  971. // UserLibServer is the server API for UserLib service.
  972. type UserLibServer interface {
  973. UserDocs(context.Context, *UserDocsRequest) (*UserDocsResponse, error)
  974. DocCollect(context.Context, *UserCollectRequest) (*UserCollectResponse, error)
  975. DocDelete(context.Context, *UserDeleteRequest) (*UserDeleteResponse, error)
  976. DocRestore(context.Context, *UserRestoreRequest) (*UserRestoreResponse, error)
  977. }
  978. // UnimplementedUserLibServer can be embedded to have forward compatible implementations.
  979. type UnimplementedUserLibServer struct {
  980. }
  981. func (*UnimplementedUserLibServer) UserDocs(context.Context, *UserDocsRequest) (*UserDocsResponse, error) {
  982. return nil, status.Errorf(codes.Unimplemented, "method UserDocs not implemented")
  983. }
  984. func (*UnimplementedUserLibServer) DocCollect(context.Context, *UserCollectRequest) (*UserCollectResponse, error) {
  985. return nil, status.Errorf(codes.Unimplemented, "method DocCollect not implemented")
  986. }
  987. func (*UnimplementedUserLibServer) DocDelete(context.Context, *UserDeleteRequest) (*UserDeleteResponse, error) {
  988. return nil, status.Errorf(codes.Unimplemented, "method DocDelete not implemented")
  989. }
  990. func (*UnimplementedUserLibServer) DocRestore(context.Context, *UserRestoreRequest) (*UserRestoreResponse, error) {
  991. return nil, status.Errorf(codes.Unimplemented, "method DocRestore not implemented")
  992. }
  993. func RegisterUserLibServer(s *grpc.Server, srv UserLibServer) {
  994. s.RegisterService(&_UserLib_serviceDesc, srv)
  995. }
  996. func _UserLib_UserDocs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  997. in := new(UserDocsRequest)
  998. if err := dec(in); err != nil {
  999. return nil, err
  1000. }
  1001. if interceptor == nil {
  1002. return srv.(UserLibServer).UserDocs(ctx, in)
  1003. }
  1004. info := &grpc.UnaryServerInfo{
  1005. Server: srv,
  1006. FullMethod: "/userlib.UserLib/UserDocs",
  1007. }
  1008. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1009. return srv.(UserLibServer).UserDocs(ctx, req.(*UserDocsRequest))
  1010. }
  1011. return interceptor(ctx, in, info, handler)
  1012. }
  1013. func _UserLib_DocCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1014. in := new(UserCollectRequest)
  1015. if err := dec(in); err != nil {
  1016. return nil, err
  1017. }
  1018. if interceptor == nil {
  1019. return srv.(UserLibServer).DocCollect(ctx, in)
  1020. }
  1021. info := &grpc.UnaryServerInfo{
  1022. Server: srv,
  1023. FullMethod: "/userlib.UserLib/DocCollect",
  1024. }
  1025. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1026. return srv.(UserLibServer).DocCollect(ctx, req.(*UserCollectRequest))
  1027. }
  1028. return interceptor(ctx, in, info, handler)
  1029. }
  1030. func _UserLib_DocDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1031. in := new(UserDeleteRequest)
  1032. if err := dec(in); err != nil {
  1033. return nil, err
  1034. }
  1035. if interceptor == nil {
  1036. return srv.(UserLibServer).DocDelete(ctx, in)
  1037. }
  1038. info := &grpc.UnaryServerInfo{
  1039. Server: srv,
  1040. FullMethod: "/userlib.UserLib/DocDelete",
  1041. }
  1042. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1043. return srv.(UserLibServer).DocDelete(ctx, req.(*UserDeleteRequest))
  1044. }
  1045. return interceptor(ctx, in, info, handler)
  1046. }
  1047. func _UserLib_DocRestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1048. in := new(UserRestoreRequest)
  1049. if err := dec(in); err != nil {
  1050. return nil, err
  1051. }
  1052. if interceptor == nil {
  1053. return srv.(UserLibServer).DocRestore(ctx, in)
  1054. }
  1055. info := &grpc.UnaryServerInfo{
  1056. Server: srv,
  1057. FullMethod: "/userlib.UserLib/DocRestore",
  1058. }
  1059. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1060. return srv.(UserLibServer).DocRestore(ctx, req.(*UserRestoreRequest))
  1061. }
  1062. return interceptor(ctx, in, info, handler)
  1063. }
  1064. var _UserLib_serviceDesc = grpc.ServiceDesc{
  1065. ServiceName: "userlib.UserLib",
  1066. HandlerType: (*UserLibServer)(nil),
  1067. Methods: []grpc.MethodDesc{
  1068. {
  1069. MethodName: "UserDocs",
  1070. Handler: _UserLib_UserDocs_Handler,
  1071. },
  1072. {
  1073. MethodName: "DocCollect",
  1074. Handler: _UserLib_DocCollect_Handler,
  1075. },
  1076. {
  1077. MethodName: "DocDelete",
  1078. Handler: _UserLib_DocDelete_Handler,
  1079. },
  1080. {
  1081. MethodName: "DocRestore",
  1082. Handler: _UserLib_DocRestore_Handler,
  1083. },
  1084. },
  1085. Streams: []grpc.StreamDesc{},
  1086. Metadata: "userlib.proto",
  1087. }