userlib.pb.go 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.15.1
  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_Word UserDocFileType = 0
  72. UserDocFileType_PDF UserDocFileType = 1
  73. UserDocFileType_EXCEL 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: "Word",
  82. 1: "PDF",
  83. 2: "EXCEL",
  84. 3: "PPT",
  85. 4: "TXT",
  86. 5: "Other",
  87. }
  88. UserDocFileType_value = map[string]int32{
  89. "Word": 0,
  90. "PDF": 1,
  91. "EXCEL": 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. Cost int32 `protobuf:"varint,3,opt,name=cost,proto3" json:"cost,omitempty"` //收藏|转存费用
  166. AppId int64 `protobuf:"varint,4,opt,name=appId,proto3" json:"appId,omitempty"` //剑鱼标识
  167. }
  168. func (x *UserCollectRequest) Reset() {
  169. *x = UserCollectRequest{}
  170. if protoimpl.UnsafeEnabled {
  171. mi := &file_userlib_proto_msgTypes[0]
  172. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  173. ms.StoreMessageInfo(mi)
  174. }
  175. }
  176. func (x *UserCollectRequest) String() string {
  177. return protoimpl.X.MessageStringOf(x)
  178. }
  179. func (*UserCollectRequest) ProtoMessage() {}
  180. func (x *UserCollectRequest) ProtoReflect() protoreflect.Message {
  181. mi := &file_userlib_proto_msgTypes[0]
  182. if protoimpl.UnsafeEnabled && x != nil {
  183. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  184. if ms.LoadMessageInfo() == nil {
  185. ms.StoreMessageInfo(mi)
  186. }
  187. return ms
  188. }
  189. return mi.MessageOf(x)
  190. }
  191. // Deprecated: Use UserCollectRequest.ProtoReflect.Descriptor instead.
  192. func (*UserCollectRequest) Descriptor() ([]byte, []int) {
  193. return file_userlib_proto_rawDescGZIP(), []int{0}
  194. }
  195. func (x *UserCollectRequest) GetUserId() string {
  196. if x != nil {
  197. return x.UserId
  198. }
  199. return ""
  200. }
  201. func (x *UserCollectRequest) GetDocId() string {
  202. if x != nil {
  203. return x.DocId
  204. }
  205. return ""
  206. }
  207. func (x *UserCollectRequest) GetCost() int32 {
  208. if x != nil {
  209. return x.Cost
  210. }
  211. return 0
  212. }
  213. func (x *UserCollectRequest) GetAppId() int64 {
  214. if x != nil {
  215. return x.AppId
  216. }
  217. return 0
  218. }
  219. type UserCollectResponse struct {
  220. state protoimpl.MessageState
  221. sizeCache protoimpl.SizeCache
  222. unknownFields protoimpl.UnknownFields
  223. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  224. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  225. }
  226. func (x *UserCollectResponse) Reset() {
  227. *x = UserCollectResponse{}
  228. if protoimpl.UnsafeEnabled {
  229. mi := &file_userlib_proto_msgTypes[1]
  230. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  231. ms.StoreMessageInfo(mi)
  232. }
  233. }
  234. func (x *UserCollectResponse) String() string {
  235. return protoimpl.X.MessageStringOf(x)
  236. }
  237. func (*UserCollectResponse) ProtoMessage() {}
  238. func (x *UserCollectResponse) ProtoReflect() protoreflect.Message {
  239. mi := &file_userlib_proto_msgTypes[1]
  240. if protoimpl.UnsafeEnabled && x != nil {
  241. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  242. if ms.LoadMessageInfo() == nil {
  243. ms.StoreMessageInfo(mi)
  244. }
  245. return ms
  246. }
  247. return mi.MessageOf(x)
  248. }
  249. // Deprecated: Use UserCollectResponse.ProtoReflect.Descriptor instead.
  250. func (*UserCollectResponse) Descriptor() ([]byte, []int) {
  251. return file_userlib_proto_rawDescGZIP(), []int{1}
  252. }
  253. func (x *UserCollectResponse) GetCode() int32 {
  254. if x != nil {
  255. return x.Code
  256. }
  257. return 0
  258. }
  259. func (x *UserCollectResponse) GetMessage() string {
  260. if x != nil {
  261. return x.Message
  262. }
  263. return ""
  264. }
  265. //用户删除
  266. type UserDeleteRequest struct {
  267. state protoimpl.MessageState
  268. sizeCache protoimpl.SizeCache
  269. unknownFields protoimpl.UnknownFields
  270. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  271. AppId int64 `protobuf:"varint,2,opt,name=appId,proto3" json:"appId,omitempty"` //剑鱼标识
  272. }
  273. func (x *UserDeleteRequest) Reset() {
  274. *x = UserDeleteRequest{}
  275. if protoimpl.UnsafeEnabled {
  276. mi := &file_userlib_proto_msgTypes[2]
  277. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  278. ms.StoreMessageInfo(mi)
  279. }
  280. }
  281. func (x *UserDeleteRequest) String() string {
  282. return protoimpl.X.MessageStringOf(x)
  283. }
  284. func (*UserDeleteRequest) ProtoMessage() {}
  285. func (x *UserDeleteRequest) ProtoReflect() protoreflect.Message {
  286. mi := &file_userlib_proto_msgTypes[2]
  287. if protoimpl.UnsafeEnabled && x != nil {
  288. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  289. if ms.LoadMessageInfo() == nil {
  290. ms.StoreMessageInfo(mi)
  291. }
  292. return ms
  293. }
  294. return mi.MessageOf(x)
  295. }
  296. // Deprecated: Use UserDeleteRequest.ProtoReflect.Descriptor instead.
  297. func (*UserDeleteRequest) Descriptor() ([]byte, []int) {
  298. return file_userlib_proto_rawDescGZIP(), []int{2}
  299. }
  300. func (x *UserDeleteRequest) GetDocId() string {
  301. if x != nil {
  302. return x.DocId
  303. }
  304. return ""
  305. }
  306. func (x *UserDeleteRequest) GetAppId() int64 {
  307. if x != nil {
  308. return x.AppId
  309. }
  310. return 0
  311. }
  312. type UserDeleteResponse struct {
  313. state protoimpl.MessageState
  314. sizeCache protoimpl.SizeCache
  315. unknownFields protoimpl.UnknownFields
  316. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  317. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  318. }
  319. func (x *UserDeleteResponse) Reset() {
  320. *x = UserDeleteResponse{}
  321. if protoimpl.UnsafeEnabled {
  322. mi := &file_userlib_proto_msgTypes[3]
  323. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  324. ms.StoreMessageInfo(mi)
  325. }
  326. }
  327. func (x *UserDeleteResponse) String() string {
  328. return protoimpl.X.MessageStringOf(x)
  329. }
  330. func (*UserDeleteResponse) ProtoMessage() {}
  331. func (x *UserDeleteResponse) ProtoReflect() protoreflect.Message {
  332. mi := &file_userlib_proto_msgTypes[3]
  333. if protoimpl.UnsafeEnabled && x != nil {
  334. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  335. if ms.LoadMessageInfo() == nil {
  336. ms.StoreMessageInfo(mi)
  337. }
  338. return ms
  339. }
  340. return mi.MessageOf(x)
  341. }
  342. // Deprecated: Use UserDeleteResponse.ProtoReflect.Descriptor instead.
  343. func (*UserDeleteResponse) Descriptor() ([]byte, []int) {
  344. return file_userlib_proto_rawDescGZIP(), []int{3}
  345. }
  346. func (x *UserDeleteResponse) GetCode() int32 {
  347. if x != nil {
  348. return x.Code
  349. }
  350. return 0
  351. }
  352. func (x *UserDeleteResponse) GetMessage() string {
  353. if x != nil {
  354. return x.Message
  355. }
  356. return ""
  357. }
  358. //用户恢复
  359. type UserRestoreRequest struct {
  360. state protoimpl.MessageState
  361. sizeCache protoimpl.SizeCache
  362. unknownFields protoimpl.UnknownFields
  363. DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
  364. }
  365. func (x *UserRestoreRequest) Reset() {
  366. *x = UserRestoreRequest{}
  367. if protoimpl.UnsafeEnabled {
  368. mi := &file_userlib_proto_msgTypes[4]
  369. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  370. ms.StoreMessageInfo(mi)
  371. }
  372. }
  373. func (x *UserRestoreRequest) String() string {
  374. return protoimpl.X.MessageStringOf(x)
  375. }
  376. func (*UserRestoreRequest) ProtoMessage() {}
  377. func (x *UserRestoreRequest) ProtoReflect() protoreflect.Message {
  378. mi := &file_userlib_proto_msgTypes[4]
  379. if protoimpl.UnsafeEnabled && x != nil {
  380. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  381. if ms.LoadMessageInfo() == nil {
  382. ms.StoreMessageInfo(mi)
  383. }
  384. return ms
  385. }
  386. return mi.MessageOf(x)
  387. }
  388. // Deprecated: Use UserRestoreRequest.ProtoReflect.Descriptor instead.
  389. func (*UserRestoreRequest) Descriptor() ([]byte, []int) {
  390. return file_userlib_proto_rawDescGZIP(), []int{4}
  391. }
  392. func (x *UserRestoreRequest) GetDocId() string {
  393. if x != nil {
  394. return x.DocId
  395. }
  396. return ""
  397. }
  398. type UserRestoreResponse struct {
  399. state protoimpl.MessageState
  400. sizeCache protoimpl.SizeCache
  401. unknownFields protoimpl.UnknownFields
  402. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  403. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  404. }
  405. func (x *UserRestoreResponse) Reset() {
  406. *x = UserRestoreResponse{}
  407. if protoimpl.UnsafeEnabled {
  408. mi := &file_userlib_proto_msgTypes[5]
  409. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  410. ms.StoreMessageInfo(mi)
  411. }
  412. }
  413. func (x *UserRestoreResponse) String() string {
  414. return protoimpl.X.MessageStringOf(x)
  415. }
  416. func (*UserRestoreResponse) ProtoMessage() {}
  417. func (x *UserRestoreResponse) ProtoReflect() protoreflect.Message {
  418. mi := &file_userlib_proto_msgTypes[5]
  419. if protoimpl.UnsafeEnabled && x != nil {
  420. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  421. if ms.LoadMessageInfo() == nil {
  422. ms.StoreMessageInfo(mi)
  423. }
  424. return ms
  425. }
  426. return mi.MessageOf(x)
  427. }
  428. // Deprecated: Use UserRestoreResponse.ProtoReflect.Descriptor instead.
  429. func (*UserRestoreResponse) Descriptor() ([]byte, []int) {
  430. return file_userlib_proto_rawDescGZIP(), []int{5}
  431. }
  432. func (x *UserRestoreResponse) GetCode() int32 {
  433. if x != nil {
  434. return x.Code
  435. }
  436. return 0
  437. }
  438. func (x *UserRestoreResponse) GetMessage() string {
  439. if x != nil {
  440. return x.Message
  441. }
  442. return ""
  443. }
  444. //用户文档列表
  445. type UserDocsRequest struct {
  446. state protoimpl.MessageState
  447. sizeCache protoimpl.SizeCache
  448. unknownFields protoimpl.UnknownFields
  449. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
  450. AppId int64 `protobuf:"varint,2,opt,name=appId,proto3" json:"appId,omitempty"` //剑鱼标识
  451. UserDocCategory int64 `protobuf:"varint,3,opt,name=userDocCategory,proto3" json:"userDocCategory,omitempty"` //用户文档分类 0兑换的 1收藏的 2回收站的
  452. Page int64 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
  453. PageSize int64 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
  454. }
  455. func (x *UserDocsRequest) Reset() {
  456. *x = UserDocsRequest{}
  457. if protoimpl.UnsafeEnabled {
  458. mi := &file_userlib_proto_msgTypes[6]
  459. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  460. ms.StoreMessageInfo(mi)
  461. }
  462. }
  463. func (x *UserDocsRequest) String() string {
  464. return protoimpl.X.MessageStringOf(x)
  465. }
  466. func (*UserDocsRequest) ProtoMessage() {}
  467. func (x *UserDocsRequest) ProtoReflect() protoreflect.Message {
  468. mi := &file_userlib_proto_msgTypes[6]
  469. if protoimpl.UnsafeEnabled && x != nil {
  470. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  471. if ms.LoadMessageInfo() == nil {
  472. ms.StoreMessageInfo(mi)
  473. }
  474. return ms
  475. }
  476. return mi.MessageOf(x)
  477. }
  478. // Deprecated: Use UserDocsRequest.ProtoReflect.Descriptor instead.
  479. func (*UserDocsRequest) Descriptor() ([]byte, []int) {
  480. return file_userlib_proto_rawDescGZIP(), []int{6}
  481. }
  482. func (x *UserDocsRequest) GetUserId() string {
  483. if x != nil {
  484. return x.UserId
  485. }
  486. return ""
  487. }
  488. func (x *UserDocsRequest) GetAppId() int64 {
  489. if x != nil {
  490. return x.AppId
  491. }
  492. return 0
  493. }
  494. func (x *UserDocsRequest) GetUserDocCategory() int64 {
  495. if x != nil {
  496. return x.UserDocCategory
  497. }
  498. return 0
  499. }
  500. func (x *UserDocsRequest) GetPage() int64 {
  501. if x != nil {
  502. return x.Page
  503. }
  504. return 0
  505. }
  506. func (x *UserDocsRequest) GetPageSize() int64 {
  507. if x != nil {
  508. return x.PageSize
  509. }
  510. return 0
  511. }
  512. type UserDocsResponse struct {
  513. state protoimpl.MessageState
  514. sizeCache protoimpl.SizeCache
  515. unknownFields protoimpl.UnknownFields
  516. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  517. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  518. Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` //总数
  519. Data []*UserDocs `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` //列表
  520. }
  521. func (x *UserDocsResponse) Reset() {
  522. *x = UserDocsResponse{}
  523. if protoimpl.UnsafeEnabled {
  524. mi := &file_userlib_proto_msgTypes[7]
  525. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  526. ms.StoreMessageInfo(mi)
  527. }
  528. }
  529. func (x *UserDocsResponse) String() string {
  530. return protoimpl.X.MessageStringOf(x)
  531. }
  532. func (*UserDocsResponse) ProtoMessage() {}
  533. func (x *UserDocsResponse) ProtoReflect() protoreflect.Message {
  534. mi := &file_userlib_proto_msgTypes[7]
  535. if protoimpl.UnsafeEnabled && x != nil {
  536. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  537. if ms.LoadMessageInfo() == nil {
  538. ms.StoreMessageInfo(mi)
  539. }
  540. return ms
  541. }
  542. return mi.MessageOf(x)
  543. }
  544. // Deprecated: Use UserDocsResponse.ProtoReflect.Descriptor instead.
  545. func (*UserDocsResponse) Descriptor() ([]byte, []int) {
  546. return file_userlib_proto_rawDescGZIP(), []int{7}
  547. }
  548. func (x *UserDocsResponse) GetCode() int32 {
  549. if x != nil {
  550. return x.Code
  551. }
  552. return 0
  553. }
  554. func (x *UserDocsResponse) GetMessage() string {
  555. if x != nil {
  556. return x.Message
  557. }
  558. return ""
  559. }
  560. func (x *UserDocsResponse) GetCount() int64 {
  561. if x != nil {
  562. return x.Count
  563. }
  564. return 0
  565. }
  566. func (x *UserDocsResponse) GetData() []*UserDocs {
  567. if x != nil {
  568. return x.Data
  569. }
  570. return nil
  571. }
  572. type UserRecoveryRequest struct {
  573. state protoimpl.MessageState
  574. sizeCache protoimpl.SizeCache
  575. unknownFields protoimpl.UnknownFields
  576. UserDocId int32 `protobuf:"varint,1,opt,name=userDocId,proto3" json:"userDocId,omitempty"` //文档标识
  577. AppId int64 `protobuf:"varint,2,opt,name=appId,proto3" json:"appId,omitempty"` //剑鱼标识
  578. UserId string `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"` //用户标识
  579. }
  580. func (x *UserRecoveryRequest) Reset() {
  581. *x = UserRecoveryRequest{}
  582. if protoimpl.UnsafeEnabled {
  583. mi := &file_userlib_proto_msgTypes[8]
  584. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  585. ms.StoreMessageInfo(mi)
  586. }
  587. }
  588. func (x *UserRecoveryRequest) String() string {
  589. return protoimpl.X.MessageStringOf(x)
  590. }
  591. func (*UserRecoveryRequest) ProtoMessage() {}
  592. func (x *UserRecoveryRequest) ProtoReflect() protoreflect.Message {
  593. mi := &file_userlib_proto_msgTypes[8]
  594. if protoimpl.UnsafeEnabled && x != nil {
  595. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  596. if ms.LoadMessageInfo() == nil {
  597. ms.StoreMessageInfo(mi)
  598. }
  599. return ms
  600. }
  601. return mi.MessageOf(x)
  602. }
  603. // Deprecated: Use UserRecoveryRequest.ProtoReflect.Descriptor instead.
  604. func (*UserRecoveryRequest) Descriptor() ([]byte, []int) {
  605. return file_userlib_proto_rawDescGZIP(), []int{8}
  606. }
  607. func (x *UserRecoveryRequest) GetUserDocId() int32 {
  608. if x != nil {
  609. return x.UserDocId
  610. }
  611. return 0
  612. }
  613. func (x *UserRecoveryRequest) GetAppId() int64 {
  614. if x != nil {
  615. return x.AppId
  616. }
  617. return 0
  618. }
  619. func (x *UserRecoveryRequest) GetUserId() string {
  620. if x != nil {
  621. return x.UserId
  622. }
  623. return ""
  624. }
  625. type UserDocs struct {
  626. state protoimpl.MessageState
  627. sizeCache protoimpl.SizeCache
  628. unknownFields protoimpl.UnknownFields
  629. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
  630. CreateAt string `protobuf:"bytes,2,opt,name=CreateAt,proto3" json:"CreateAt,omitempty"` //创建时间
  631. UpdateAt string `protobuf:"bytes,3,opt,name=UpdateAt,proto3" json:"UpdateAt,omitempty"` //修改时间
  632. DeletedAt string `protobuf:"bytes,4,opt,name=DeletedAt,proto3" json:"DeletedAt,omitempty"` //删除时间
  633. AppId int64 `protobuf:"varint,5,opt,name=AppId,proto3" json:"AppId,omitempty"` //剑鱼标识
  634. UserId string `protobuf:"bytes,6,opt,name=UserId,proto3" json:"UserId,omitempty"` //用户标识
  635. DocId string `protobuf:"bytes,7,opt,name=DocId,proto3" json:"DocId,omitempty"` //文档标识
  636. DocCategory int64 `protobuf:"varint,8,opt,name=DocCategory,proto3" json:"DocCategory,omitempty"`
  637. IsDelete int64 `protobuf:"varint,9,opt,name=IsDelete,proto3" json:"IsDelete,omitempty"` //是否删除,0 未删除 1 已逻辑删除 2永久删除
  638. DocName string `protobuf:"bytes,10,opt,name=DocName,proto3" json:"DocName,omitempty"` //文档名
  639. DocFileType int64 `protobuf:"varint,11,opt,name=DocFileType,proto3" json:"DocFileType,omitempty"` //文件类型,0-doc ,1-pdf ,2-xls 3 ppt 4- txt 5- 其他
  640. DocFileSuffix string `protobuf:"bytes,12,opt,name=DocFileSuffix,proto3" json:"DocFileSuffix,omitempty"` //文件后辍
  641. DocFileSize int64 `protobuf:"varint,13,opt,name=DocFileSize,proto3" json:"DocFileSize,omitempty"` //文件大小
  642. DocPageSize int64 `protobuf:"varint,14,opt,name=DocPageSize,proto3" json:"DocPageSize,omitempty"` //页数
  643. DocSummary string `protobuf:"bytes,15,opt,name=DocSummary,proto3" json:"DocSummary,omitempty"` //文档摘要
  644. DocSourceUserId string `protobuf:"bytes,16,opt,name=DocSourceUserId,proto3" json:"DocSourceUserId,omitempty"` //文档原用户id
  645. IsDownload int64 `protobuf:"varint,17,opt,name=IsDownload,proto3" json:"IsDownload,omitempty"` //是否转存0未转存1转存
  646. IsCollection int64 `protobuf:"varint,18,opt,name=IsCollection,proto3" json:"IsCollection,omitempty"` //是否收藏0未收藏1收藏
  647. }
  648. func (x *UserDocs) Reset() {
  649. *x = UserDocs{}
  650. if protoimpl.UnsafeEnabled {
  651. mi := &file_userlib_proto_msgTypes[9]
  652. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  653. ms.StoreMessageInfo(mi)
  654. }
  655. }
  656. func (x *UserDocs) String() string {
  657. return protoimpl.X.MessageStringOf(x)
  658. }
  659. func (*UserDocs) ProtoMessage() {}
  660. func (x *UserDocs) ProtoReflect() protoreflect.Message {
  661. mi := &file_userlib_proto_msgTypes[9]
  662. if protoimpl.UnsafeEnabled && x != nil {
  663. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  664. if ms.LoadMessageInfo() == nil {
  665. ms.StoreMessageInfo(mi)
  666. }
  667. return ms
  668. }
  669. return mi.MessageOf(x)
  670. }
  671. // Deprecated: Use UserDocs.ProtoReflect.Descriptor instead.
  672. func (*UserDocs) Descriptor() ([]byte, []int) {
  673. return file_userlib_proto_rawDescGZIP(), []int{9}
  674. }
  675. func (x *UserDocs) GetID() int64 {
  676. if x != nil {
  677. return x.ID
  678. }
  679. return 0
  680. }
  681. func (x *UserDocs) GetCreateAt() string {
  682. if x != nil {
  683. return x.CreateAt
  684. }
  685. return ""
  686. }
  687. func (x *UserDocs) GetUpdateAt() string {
  688. if x != nil {
  689. return x.UpdateAt
  690. }
  691. return ""
  692. }
  693. func (x *UserDocs) GetDeletedAt() string {
  694. if x != nil {
  695. return x.DeletedAt
  696. }
  697. return ""
  698. }
  699. func (x *UserDocs) GetAppId() int64 {
  700. if x != nil {
  701. return x.AppId
  702. }
  703. return 0
  704. }
  705. func (x *UserDocs) GetUserId() string {
  706. if x != nil {
  707. return x.UserId
  708. }
  709. return ""
  710. }
  711. func (x *UserDocs) GetDocId() string {
  712. if x != nil {
  713. return x.DocId
  714. }
  715. return ""
  716. }
  717. func (x *UserDocs) GetDocCategory() int64 {
  718. if x != nil {
  719. return x.DocCategory
  720. }
  721. return 0
  722. }
  723. func (x *UserDocs) GetIsDelete() int64 {
  724. if x != nil {
  725. return x.IsDelete
  726. }
  727. return 0
  728. }
  729. func (x *UserDocs) GetDocName() string {
  730. if x != nil {
  731. return x.DocName
  732. }
  733. return ""
  734. }
  735. func (x *UserDocs) GetDocFileType() int64 {
  736. if x != nil {
  737. return x.DocFileType
  738. }
  739. return 0
  740. }
  741. func (x *UserDocs) GetDocFileSuffix() string {
  742. if x != nil {
  743. return x.DocFileSuffix
  744. }
  745. return ""
  746. }
  747. func (x *UserDocs) GetDocFileSize() int64 {
  748. if x != nil {
  749. return x.DocFileSize
  750. }
  751. return 0
  752. }
  753. func (x *UserDocs) GetDocPageSize() int64 {
  754. if x != nil {
  755. return x.DocPageSize
  756. }
  757. return 0
  758. }
  759. func (x *UserDocs) GetDocSummary() string {
  760. if x != nil {
  761. return x.DocSummary
  762. }
  763. return ""
  764. }
  765. func (x *UserDocs) GetDocSourceUserId() string {
  766. if x != nil {
  767. return x.DocSourceUserId
  768. }
  769. return ""
  770. }
  771. func (x *UserDocs) GetIsDownload() int64 {
  772. if x != nil {
  773. return x.IsDownload
  774. }
  775. return 0
  776. }
  777. func (x *UserDocs) GetIsCollection() int64 {
  778. if x != nil {
  779. return x.IsCollection
  780. }
  781. return 0
  782. }
  783. var File_userlib_proto protoreflect.FileDescriptor
  784. var file_userlib_proto_rawDesc = []byte{
  785. 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  786. 0x07, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x22, 0x6c, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72,
  787. 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,
  788. 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
  789. 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18,
  790. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04,
  791. 0x63, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x73, 0x74,
  792. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
  793. 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f,
  794. 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,
  795. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64,
  796. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
  797. 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x3f, 0x0a, 0x11, 0x55,
  798. 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  799. 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  800. 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18,
  801. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x42, 0x0a, 0x12,
  802. 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  803. 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
  804. 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  805. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  806. 0x22, 0x2a, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52,
  807. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18,
  808. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x13,
  809. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
  810. 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  811. 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
  812. 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  813. 0x65, 0x22, 0x99, 0x01, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65,
  814. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
  815. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a,
  816. 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x61, 0x70,
  817. 0x70, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61,
  818. 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x75, 0x73,
  819. 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a,
  820. 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67,
  821. 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20,
  822. 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x7d, 0x0a,
  823. 0x10, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  824. 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
  825. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  826. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  827. 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
  828. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20,
  829. 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x75, 0x73,
  830. 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x61, 0x0a, 0x13,
  831. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
  832. 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x49, 0x64,
  833. 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x49,
  834. 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
  835. 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
  836. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22,
  837. 0xa6, 0x04, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x12, 0x0e, 0x0a, 0x02,
  838. 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08,
  839. 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
  840. 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x55, 0x70, 0x64, 0x61,
  841. 0x74, 0x65, 0x41, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x55, 0x70, 0x64, 0x61,
  842. 0x74, 0x65, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41,
  843. 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64,
  844. 0x41, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x41, 0x70, 0x70, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
  845. 0x03, 0x52, 0x05, 0x41, 0x70, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72,
  846. 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
  847. 0x12, 0x14, 0x0a, 0x05, 0x44, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
  848. 0x05, 0x44, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74,
  849. 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x44, 0x6f, 0x63,
  850. 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x49, 0x73, 0x44, 0x65,
  851. 0x6c, 0x65, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x49, 0x73, 0x44, 0x65,
  852. 0x6c, 0x65, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18,
  853. 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x44, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20,
  854. 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20,
  855. 0x01, 0x28, 0x03, 0x52, 0x0b, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65,
  856. 0x12, 0x24, 0x0a, 0x0d, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x75, 0x66, 0x66, 0x69,
  857. 0x78, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65,
  858. 0x53, 0x75, 0x66, 0x66, 0x69, 0x78, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c,
  859. 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x44, 0x6f, 0x63,
  860. 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x50,
  861. 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x44,
  862. 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x44, 0x6f,
  863. 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
  864. 0x44, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x44, 0x6f,
  865. 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x10, 0x20,
  866. 0x01, 0x28, 0x09, 0x52, 0x0f, 0x44, 0x6f, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73,
  867. 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x49, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f,
  868. 0x61, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x49, 0x73, 0x44, 0x6f, 0x77, 0x6e,
  869. 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x49, 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
  870. 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x49, 0x73, 0x43, 0x6f,
  871. 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x3c, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72,
  872. 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x0a, 0x53,
  873. 0x65, 0x6c, 0x66, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44,
  874. 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c,
  875. 0x6c, 0x65, 0x63, 0x74, 0x10, 0x02, 0x2a, 0x4c, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f,
  876. 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x6f, 0x72,
  877. 0x64, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x44, 0x46, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,
  878. 0x45, 0x58, 0x43, 0x45, 0x4c, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x50, 0x54, 0x10, 0x03,
  879. 0x12, 0x07, 0x0a, 0x03, 0x54, 0x58, 0x54, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x74, 0x68,
  880. 0x65, 0x72, 0x10, 0x05, 0x2a, 0x43, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x53,
  881. 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x10,
  882. 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
  883. 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c,
  884. 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10, 0x02, 0x32, 0x8e, 0x04, 0x0a, 0x07, 0x55, 0x73,
  885. 0x65, 0x72, 0x4c, 0x69, 0x62, 0x12, 0x3f, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63,
  886. 0x73, 0x12, 0x18, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72,
  887. 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x75, 0x73,
  888. 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65,
  889. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x44, 0x6f, 0x63, 0x43, 0x6f, 0x6c,
  890. 0x6c, 0x65, 0x63, 0x74, 0x12, 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55,
  891. 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  892. 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72,
  893. 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  894. 0x4b, 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6f, 0x6c, 0x6c,
  895. 0x65, 0x63, 0x74, 0x12, 0x1a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73,
  896. 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  897. 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65,
  898. 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x09,
  899. 0x44, 0x6f, 0x63, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72,
  900. 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79,
  901. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69,
  902. 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70,
  903. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0a, 0x44, 0x6f, 0x63, 0x52, 0x65, 0x73, 0x74, 0x6f,
  904. 0x72, 0x65, 0x12, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65,
  905. 0x72, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  906. 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52,
  907. 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48,
  908. 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1b, 0x2e,
  909. 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c,
  910. 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65,
  911. 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
  912. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x12, 0x44, 0x6f, 0x63, 0x50,
  913. 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1c,
  914. 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x63,
  915. 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75,
  916. 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65,
  917. 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  918. 0x6f, 0x33,
  919. }
  920. var (
  921. file_userlib_proto_rawDescOnce sync.Once
  922. file_userlib_proto_rawDescData = file_userlib_proto_rawDesc
  923. )
  924. func file_userlib_proto_rawDescGZIP() []byte {
  925. file_userlib_proto_rawDescOnce.Do(func() {
  926. file_userlib_proto_rawDescData = protoimpl.X.CompressGZIP(file_userlib_proto_rawDescData)
  927. })
  928. return file_userlib_proto_rawDescData
  929. }
  930. var file_userlib_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  931. var file_userlib_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  932. var file_userlib_proto_goTypes = []interface{}{
  933. (UserDocCategory)(0), // 0: userlib.UserDocCategory
  934. (UserDocFileType)(0), // 1: userlib.UserDocFileType
  935. (UserDocStatus)(0), // 2: userlib.UserDocStatus
  936. (*UserCollectRequest)(nil), // 3: userlib.UserCollectRequest
  937. (*UserCollectResponse)(nil), // 4: userlib.UserCollectResponse
  938. (*UserDeleteRequest)(nil), // 5: userlib.UserDeleteRequest
  939. (*UserDeleteResponse)(nil), // 6: userlib.UserDeleteResponse
  940. (*UserRestoreRequest)(nil), // 7: userlib.UserRestoreRequest
  941. (*UserRestoreResponse)(nil), // 8: userlib.UserRestoreResponse
  942. (*UserDocsRequest)(nil), // 9: userlib.UserDocsRequest
  943. (*UserDocsResponse)(nil), // 10: userlib.UserDocsResponse
  944. (*UserRecoveryRequest)(nil), // 11: userlib.UserRecoveryRequest
  945. (*UserDocs)(nil), // 12: userlib.userDocs
  946. }
  947. var file_userlib_proto_depIdxs = []int32{
  948. 12, // 0: userlib.UserDocsResponse.data:type_name -> userlib.userDocs
  949. 9, // 1: userlib.UserLib.UserDocs:input_type -> userlib.UserDocsRequest
  950. 3, // 2: userlib.UserLib.DocCollect:input_type -> userlib.UserCollectRequest
  951. 5, // 3: userlib.UserLib.DocCancelCollect:input_type -> userlib.UserDeleteRequest
  952. 11, // 4: userlib.UserLib.DocDelete:input_type -> userlib.UserRecoveryRequest
  953. 11, // 5: userlib.UserLib.DocRestore:input_type -> userlib.UserRecoveryRequest
  954. 3, // 6: userlib.UserLib.DocDownload:input_type -> userlib.UserCollectRequest
  955. 11, // 7: userlib.UserLib.DocPermanentDelete:input_type -> userlib.UserRecoveryRequest
  956. 10, // 8: userlib.UserLib.UserDocs:output_type -> userlib.UserDocsResponse
  957. 4, // 9: userlib.UserLib.DocCollect:output_type -> userlib.UserCollectResponse
  958. 6, // 10: userlib.UserLib.DocCancelCollect:output_type -> userlib.UserDeleteResponse
  959. 6, // 11: userlib.UserLib.DocDelete:output_type -> userlib.UserDeleteResponse
  960. 8, // 12: userlib.UserLib.DocRestore:output_type -> userlib.UserRestoreResponse
  961. 4, // 13: userlib.UserLib.DocDownload:output_type -> userlib.UserCollectResponse
  962. 4, // 14: userlib.UserLib.DocPermanentDelete:output_type -> userlib.UserCollectResponse
  963. 8, // [8:15] is the sub-list for method output_type
  964. 1, // [1:8] is the sub-list for method input_type
  965. 1, // [1:1] is the sub-list for extension type_name
  966. 1, // [1:1] is the sub-list for extension extendee
  967. 0, // [0:1] is the sub-list for field type_name
  968. }
  969. func init() { file_userlib_proto_init() }
  970. func file_userlib_proto_init() {
  971. if File_userlib_proto != nil {
  972. return
  973. }
  974. if !protoimpl.UnsafeEnabled {
  975. file_userlib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  976. switch v := v.(*UserCollectRequest); i {
  977. case 0:
  978. return &v.state
  979. case 1:
  980. return &v.sizeCache
  981. case 2:
  982. return &v.unknownFields
  983. default:
  984. return nil
  985. }
  986. }
  987. file_userlib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  988. switch v := v.(*UserCollectResponse); i {
  989. case 0:
  990. return &v.state
  991. case 1:
  992. return &v.sizeCache
  993. case 2:
  994. return &v.unknownFields
  995. default:
  996. return nil
  997. }
  998. }
  999. file_userlib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1000. switch v := v.(*UserDeleteRequest); i {
  1001. case 0:
  1002. return &v.state
  1003. case 1:
  1004. return &v.sizeCache
  1005. case 2:
  1006. return &v.unknownFields
  1007. default:
  1008. return nil
  1009. }
  1010. }
  1011. file_userlib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1012. switch v := v.(*UserDeleteResponse); i {
  1013. case 0:
  1014. return &v.state
  1015. case 1:
  1016. return &v.sizeCache
  1017. case 2:
  1018. return &v.unknownFields
  1019. default:
  1020. return nil
  1021. }
  1022. }
  1023. file_userlib_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1024. switch v := v.(*UserRestoreRequest); i {
  1025. case 0:
  1026. return &v.state
  1027. case 1:
  1028. return &v.sizeCache
  1029. case 2:
  1030. return &v.unknownFields
  1031. default:
  1032. return nil
  1033. }
  1034. }
  1035. file_userlib_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1036. switch v := v.(*UserRestoreResponse); i {
  1037. case 0:
  1038. return &v.state
  1039. case 1:
  1040. return &v.sizeCache
  1041. case 2:
  1042. return &v.unknownFields
  1043. default:
  1044. return nil
  1045. }
  1046. }
  1047. file_userlib_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1048. switch v := v.(*UserDocsRequest); i {
  1049. case 0:
  1050. return &v.state
  1051. case 1:
  1052. return &v.sizeCache
  1053. case 2:
  1054. return &v.unknownFields
  1055. default:
  1056. return nil
  1057. }
  1058. }
  1059. file_userlib_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1060. switch v := v.(*UserDocsResponse); i {
  1061. case 0:
  1062. return &v.state
  1063. case 1:
  1064. return &v.sizeCache
  1065. case 2:
  1066. return &v.unknownFields
  1067. default:
  1068. return nil
  1069. }
  1070. }
  1071. file_userlib_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1072. switch v := v.(*UserRecoveryRequest); i {
  1073. case 0:
  1074. return &v.state
  1075. case 1:
  1076. return &v.sizeCache
  1077. case 2:
  1078. return &v.unknownFields
  1079. default:
  1080. return nil
  1081. }
  1082. }
  1083. file_userlib_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1084. switch v := v.(*UserDocs); i {
  1085. case 0:
  1086. return &v.state
  1087. case 1:
  1088. return &v.sizeCache
  1089. case 2:
  1090. return &v.unknownFields
  1091. default:
  1092. return nil
  1093. }
  1094. }
  1095. }
  1096. type x struct{}
  1097. out := protoimpl.TypeBuilder{
  1098. File: protoimpl.DescBuilder{
  1099. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1100. RawDescriptor: file_userlib_proto_rawDesc,
  1101. NumEnums: 3,
  1102. NumMessages: 10,
  1103. NumExtensions: 0,
  1104. NumServices: 1,
  1105. },
  1106. GoTypes: file_userlib_proto_goTypes,
  1107. DependencyIndexes: file_userlib_proto_depIdxs,
  1108. EnumInfos: file_userlib_proto_enumTypes,
  1109. MessageInfos: file_userlib_proto_msgTypes,
  1110. }.Build()
  1111. File_userlib_proto = out.File
  1112. file_userlib_proto_rawDesc = nil
  1113. file_userlib_proto_goTypes = nil
  1114. file_userlib_proto_depIdxs = nil
  1115. }
  1116. // Reference imports to suppress errors if they are not otherwise used.
  1117. var _ context.Context
  1118. var _ grpc.ClientConnInterface
  1119. // This is a compile-time assertion to ensure that this generated file
  1120. // is compatible with the grpc package it is being compiled against.
  1121. const _ = grpc.SupportPackageIsVersion6
  1122. // UserLibClient is the client API for UserLib service.
  1123. //
  1124. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1125. type UserLibClient interface {
  1126. UserDocs(ctx context.Context, in *UserDocsRequest, opts ...grpc.CallOption) (*UserDocsResponse, error)
  1127. DocCollect(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
  1128. DocCancelCollect(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error)
  1129. DocDelete(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error)
  1130. DocRestore(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserRestoreResponse, error)
  1131. DocDownload(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
  1132. DocPermanentDelete(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
  1133. }
  1134. type userLibClient struct {
  1135. cc grpc.ClientConnInterface
  1136. }
  1137. func NewUserLibClient(cc grpc.ClientConnInterface) UserLibClient {
  1138. return &userLibClient{cc}
  1139. }
  1140. func (c *userLibClient) UserDocs(ctx context.Context, in *UserDocsRequest, opts ...grpc.CallOption) (*UserDocsResponse, error) {
  1141. out := new(UserDocsResponse)
  1142. err := c.cc.Invoke(ctx, "/userlib.UserLib/UserDocs", in, out, opts...)
  1143. if err != nil {
  1144. return nil, err
  1145. }
  1146. return out, nil
  1147. }
  1148. func (c *userLibClient) DocCollect(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error) {
  1149. out := new(UserCollectResponse)
  1150. err := c.cc.Invoke(ctx, "/userlib.UserLib/DocCollect", in, out, opts...)
  1151. if err != nil {
  1152. return nil, err
  1153. }
  1154. return out, nil
  1155. }
  1156. func (c *userLibClient) DocCancelCollect(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error) {
  1157. out := new(UserDeleteResponse)
  1158. err := c.cc.Invoke(ctx, "/userlib.UserLib/DocCancelCollect", in, out, opts...)
  1159. if err != nil {
  1160. return nil, err
  1161. }
  1162. return out, nil
  1163. }
  1164. func (c *userLibClient) DocDelete(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error) {
  1165. out := new(UserDeleteResponse)
  1166. err := c.cc.Invoke(ctx, "/userlib.UserLib/DocDelete", in, out, opts...)
  1167. if err != nil {
  1168. return nil, err
  1169. }
  1170. return out, nil
  1171. }
  1172. func (c *userLibClient) DocRestore(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserRestoreResponse, error) {
  1173. out := new(UserRestoreResponse)
  1174. err := c.cc.Invoke(ctx, "/userlib.UserLib/DocRestore", in, out, opts...)
  1175. if err != nil {
  1176. return nil, err
  1177. }
  1178. return out, nil
  1179. }
  1180. func (c *userLibClient) DocDownload(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error) {
  1181. out := new(UserCollectResponse)
  1182. err := c.cc.Invoke(ctx, "/userlib.UserLib/DocDownload", in, out, opts...)
  1183. if err != nil {
  1184. return nil, err
  1185. }
  1186. return out, nil
  1187. }
  1188. func (c *userLibClient) DocPermanentDelete(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserCollectResponse, error) {
  1189. out := new(UserCollectResponse)
  1190. err := c.cc.Invoke(ctx, "/userlib.UserLib/DocPermanentDelete", in, out, opts...)
  1191. if err != nil {
  1192. return nil, err
  1193. }
  1194. return out, nil
  1195. }
  1196. // UserLibServer is the server API for UserLib service.
  1197. type UserLibServer interface {
  1198. UserDocs(context.Context, *UserDocsRequest) (*UserDocsResponse, error)
  1199. DocCollect(context.Context, *UserCollectRequest) (*UserCollectResponse, error)
  1200. DocCancelCollect(context.Context, *UserDeleteRequest) (*UserDeleteResponse, error)
  1201. DocDelete(context.Context, *UserRecoveryRequest) (*UserDeleteResponse, error)
  1202. DocRestore(context.Context, *UserRecoveryRequest) (*UserRestoreResponse, error)
  1203. DocDownload(context.Context, *UserCollectRequest) (*UserCollectResponse, error)
  1204. DocPermanentDelete(context.Context, *UserRecoveryRequest) (*UserCollectResponse, error)
  1205. }
  1206. // UnimplementedUserLibServer can be embedded to have forward compatible implementations.
  1207. type UnimplementedUserLibServer struct {
  1208. }
  1209. func (*UnimplementedUserLibServer) UserDocs(context.Context, *UserDocsRequest) (*UserDocsResponse, error) {
  1210. return nil, status.Errorf(codes.Unimplemented, "method UserDocs not implemented")
  1211. }
  1212. func (*UnimplementedUserLibServer) DocCollect(context.Context, *UserCollectRequest) (*UserCollectResponse, error) {
  1213. return nil, status.Errorf(codes.Unimplemented, "method DocCollect not implemented")
  1214. }
  1215. func (*UnimplementedUserLibServer) DocCancelCollect(context.Context, *UserDeleteRequest) (*UserDeleteResponse, error) {
  1216. return nil, status.Errorf(codes.Unimplemented, "method DocCancelCollect not implemented")
  1217. }
  1218. func (*UnimplementedUserLibServer) DocDelete(context.Context, *UserRecoveryRequest) (*UserDeleteResponse, error) {
  1219. return nil, status.Errorf(codes.Unimplemented, "method DocDelete not implemented")
  1220. }
  1221. func (*UnimplementedUserLibServer) DocRestore(context.Context, *UserRecoveryRequest) (*UserRestoreResponse, error) {
  1222. return nil, status.Errorf(codes.Unimplemented, "method DocRestore not implemented")
  1223. }
  1224. func (*UnimplementedUserLibServer) DocDownload(context.Context, *UserCollectRequest) (*UserCollectResponse, error) {
  1225. return nil, status.Errorf(codes.Unimplemented, "method DocDownload not implemented")
  1226. }
  1227. func (*UnimplementedUserLibServer) DocPermanentDelete(context.Context, *UserRecoveryRequest) (*UserCollectResponse, error) {
  1228. return nil, status.Errorf(codes.Unimplemented, "method DocPermanentDelete not implemented")
  1229. }
  1230. func RegisterUserLibServer(s *grpc.Server, srv UserLibServer) {
  1231. s.RegisterService(&_UserLib_serviceDesc, srv)
  1232. }
  1233. func _UserLib_UserDocs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1234. in := new(UserDocsRequest)
  1235. if err := dec(in); err != nil {
  1236. return nil, err
  1237. }
  1238. if interceptor == nil {
  1239. return srv.(UserLibServer).UserDocs(ctx, in)
  1240. }
  1241. info := &grpc.UnaryServerInfo{
  1242. Server: srv,
  1243. FullMethod: "/userlib.UserLib/UserDocs",
  1244. }
  1245. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1246. return srv.(UserLibServer).UserDocs(ctx, req.(*UserDocsRequest))
  1247. }
  1248. return interceptor(ctx, in, info, handler)
  1249. }
  1250. func _UserLib_DocCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1251. in := new(UserCollectRequest)
  1252. if err := dec(in); err != nil {
  1253. return nil, err
  1254. }
  1255. if interceptor == nil {
  1256. return srv.(UserLibServer).DocCollect(ctx, in)
  1257. }
  1258. info := &grpc.UnaryServerInfo{
  1259. Server: srv,
  1260. FullMethod: "/userlib.UserLib/DocCollect",
  1261. }
  1262. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1263. return srv.(UserLibServer).DocCollect(ctx, req.(*UserCollectRequest))
  1264. }
  1265. return interceptor(ctx, in, info, handler)
  1266. }
  1267. func _UserLib_DocCancelCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1268. in := new(UserDeleteRequest)
  1269. if err := dec(in); err != nil {
  1270. return nil, err
  1271. }
  1272. if interceptor == nil {
  1273. return srv.(UserLibServer).DocCancelCollect(ctx, in)
  1274. }
  1275. info := &grpc.UnaryServerInfo{
  1276. Server: srv,
  1277. FullMethod: "/userlib.UserLib/DocCancelCollect",
  1278. }
  1279. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1280. return srv.(UserLibServer).DocCancelCollect(ctx, req.(*UserDeleteRequest))
  1281. }
  1282. return interceptor(ctx, in, info, handler)
  1283. }
  1284. func _UserLib_DocDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1285. in := new(UserRecoveryRequest)
  1286. if err := dec(in); err != nil {
  1287. return nil, err
  1288. }
  1289. if interceptor == nil {
  1290. return srv.(UserLibServer).DocDelete(ctx, in)
  1291. }
  1292. info := &grpc.UnaryServerInfo{
  1293. Server: srv,
  1294. FullMethod: "/userlib.UserLib/DocDelete",
  1295. }
  1296. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1297. return srv.(UserLibServer).DocDelete(ctx, req.(*UserRecoveryRequest))
  1298. }
  1299. return interceptor(ctx, in, info, handler)
  1300. }
  1301. func _UserLib_DocRestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1302. in := new(UserRecoveryRequest)
  1303. if err := dec(in); err != nil {
  1304. return nil, err
  1305. }
  1306. if interceptor == nil {
  1307. return srv.(UserLibServer).DocRestore(ctx, in)
  1308. }
  1309. info := &grpc.UnaryServerInfo{
  1310. Server: srv,
  1311. FullMethod: "/userlib.UserLib/DocRestore",
  1312. }
  1313. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1314. return srv.(UserLibServer).DocRestore(ctx, req.(*UserRecoveryRequest))
  1315. }
  1316. return interceptor(ctx, in, info, handler)
  1317. }
  1318. func _UserLib_DocDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1319. in := new(UserCollectRequest)
  1320. if err := dec(in); err != nil {
  1321. return nil, err
  1322. }
  1323. if interceptor == nil {
  1324. return srv.(UserLibServer).DocDownload(ctx, in)
  1325. }
  1326. info := &grpc.UnaryServerInfo{
  1327. Server: srv,
  1328. FullMethod: "/userlib.UserLib/DocDownload",
  1329. }
  1330. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1331. return srv.(UserLibServer).DocDownload(ctx, req.(*UserCollectRequest))
  1332. }
  1333. return interceptor(ctx, in, info, handler)
  1334. }
  1335. func _UserLib_DocPermanentDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1336. in := new(UserRecoveryRequest)
  1337. if err := dec(in); err != nil {
  1338. return nil, err
  1339. }
  1340. if interceptor == nil {
  1341. return srv.(UserLibServer).DocPermanentDelete(ctx, in)
  1342. }
  1343. info := &grpc.UnaryServerInfo{
  1344. Server: srv,
  1345. FullMethod: "/userlib.UserLib/DocPermanentDelete",
  1346. }
  1347. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1348. return srv.(UserLibServer).DocPermanentDelete(ctx, req.(*UserRecoveryRequest))
  1349. }
  1350. return interceptor(ctx, in, info, handler)
  1351. }
  1352. var _UserLib_serviceDesc = grpc.ServiceDesc{
  1353. ServiceName: "userlib.UserLib",
  1354. HandlerType: (*UserLibServer)(nil),
  1355. Methods: []grpc.MethodDesc{
  1356. {
  1357. MethodName: "UserDocs",
  1358. Handler: _UserLib_UserDocs_Handler,
  1359. },
  1360. {
  1361. MethodName: "DocCollect",
  1362. Handler: _UserLib_DocCollect_Handler,
  1363. },
  1364. {
  1365. MethodName: "DocCancelCollect",
  1366. Handler: _UserLib_DocCancelCollect_Handler,
  1367. },
  1368. {
  1369. MethodName: "DocDelete",
  1370. Handler: _UserLib_DocDelete_Handler,
  1371. },
  1372. {
  1373. MethodName: "DocRestore",
  1374. Handler: _UserLib_DocRestore_Handler,
  1375. },
  1376. {
  1377. MethodName: "DocDownload",
  1378. Handler: _UserLib_DocDownload_Handler,
  1379. },
  1380. {
  1381. MethodName: "DocPermanentDelete",
  1382. Handler: _UserLib_DocPermanentDelete_Handler,
  1383. },
  1384. },
  1385. Streams: []grpc.StreamDesc{},
  1386. Metadata: "userlib.proto",
  1387. }