1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.25.0
- // protoc v3.15.1
- // source: userlib.proto
- package userlib
- import (
- context "context"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- // This is a compile-time assertion that a sufficiently up-to-date version
- // of the legacy proto package is being used.
- const _ = proto.ProtoPackageIsVersion4
- //用户文档类别
- type UserDocCategory int32
- const (
- UserDocCategory_SelfUpload UserDocCategory = 0 //自己上传
- UserDocCategory_Download UserDocCategory = 1 //转存(下载)
- UserDocCategory_Collect UserDocCategory = 2 //收藏
- )
- // Enum value maps for UserDocCategory.
- var (
- UserDocCategory_name = map[int32]string{
- 0: "SelfUpload",
- 1: "Download",
- 2: "Collect",
- }
- UserDocCategory_value = map[string]int32{
- "SelfUpload": 0,
- "Download": 1,
- "Collect": 2,
- }
- )
- func (x UserDocCategory) Enum() *UserDocCategory {
- p := new(UserDocCategory)
- *p = x
- return p
- }
- func (x UserDocCategory) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (UserDocCategory) Descriptor() protoreflect.EnumDescriptor {
- return file_userlib_proto_enumTypes[0].Descriptor()
- }
- func (UserDocCategory) Type() protoreflect.EnumType {
- return &file_userlib_proto_enumTypes[0]
- }
- func (x UserDocCategory) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use UserDocCategory.Descriptor instead.
- func (UserDocCategory) EnumDescriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{0}
- }
- //文件类型
- type UserDocFileType int32
- const (
- UserDocFileType_Word UserDocFileType = 0
- UserDocFileType_PDF UserDocFileType = 1
- UserDocFileType_EXCEL UserDocFileType = 2
- UserDocFileType_PPT UserDocFileType = 3
- UserDocFileType_TXT UserDocFileType = 4
- UserDocFileType_Other UserDocFileType = 5
- )
- // Enum value maps for UserDocFileType.
- var (
- UserDocFileType_name = map[int32]string{
- 0: "Word",
- 1: "PDF",
- 2: "EXCEL",
- 3: "PPT",
- 4: "TXT",
- 5: "Other",
- }
- UserDocFileType_value = map[string]int32{
- "Word": 0,
- "PDF": 1,
- "EXCEL": 2,
- "PPT": 3,
- "TXT": 4,
- "Other": 5,
- }
- )
- func (x UserDocFileType) Enum() *UserDocFileType {
- p := new(UserDocFileType)
- *p = x
- return p
- }
- func (x UserDocFileType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (UserDocFileType) Descriptor() protoreflect.EnumDescriptor {
- return file_userlib_proto_enumTypes[1].Descriptor()
- }
- func (UserDocFileType) Type() protoreflect.EnumType {
- return &file_userlib_proto_enumTypes[1]
- }
- func (x UserDocFileType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use UserDocFileType.Descriptor instead.
- func (UserDocFileType) EnumDescriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{1}
- }
- type UserDocStatus int32
- const (
- UserDocStatus_Normal UserDocStatus = 0 //文件正常
- UserDocStatus_LogicDelete UserDocStatus = 1 //删除
- UserDocStatus_PermanentlyDelete UserDocStatus = 2 //永久删除
- )
- // Enum value maps for UserDocStatus.
- var (
- UserDocStatus_name = map[int32]string{
- 0: "Normal",
- 1: "LogicDelete",
- 2: "PermanentlyDelete",
- }
- UserDocStatus_value = map[string]int32{
- "Normal": 0,
- "LogicDelete": 1,
- "PermanentlyDelete": 2,
- }
- )
- func (x UserDocStatus) Enum() *UserDocStatus {
- p := new(UserDocStatus)
- *p = x
- return p
- }
- func (x UserDocStatus) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (UserDocStatus) Descriptor() protoreflect.EnumDescriptor {
- return file_userlib_proto_enumTypes[2].Descriptor()
- }
- func (UserDocStatus) Type() protoreflect.EnumType {
- return &file_userlib_proto_enumTypes[2]
- }
- func (x UserDocStatus) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use UserDocStatus.Descriptor instead.
- func (UserDocStatus) EnumDescriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{2}
- }
- //用户收藏|转存
- type UserCollectRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
- DocId string `protobuf:"bytes,2,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
- Cost int32 `protobuf:"varint,3,opt,name=cost,proto3" json:"cost,omitempty"` //收藏|转存费用
- AppId int64 `protobuf:"varint,4,opt,name=appId,proto3" json:"appId,omitempty"` //剑鱼标识
- }
- func (x *UserCollectRequest) Reset() {
- *x = UserCollectRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_userlib_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserCollectRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserCollectRequest) ProtoMessage() {}
- func (x *UserCollectRequest) ProtoReflect() protoreflect.Message {
- mi := &file_userlib_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserCollectRequest.ProtoReflect.Descriptor instead.
- func (*UserCollectRequest) Descriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{0}
- }
- func (x *UserCollectRequest) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *UserCollectRequest) GetDocId() string {
- if x != nil {
- return x.DocId
- }
- return ""
- }
- func (x *UserCollectRequest) GetCost() int32 {
- if x != nil {
- return x.Cost
- }
- return 0
- }
- func (x *UserCollectRequest) GetAppId() int64 {
- if x != nil {
- return x.AppId
- }
- return 0
- }
- type UserCollectResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- }
- func (x *UserCollectResponse) Reset() {
- *x = UserCollectResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_userlib_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserCollectResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserCollectResponse) ProtoMessage() {}
- func (x *UserCollectResponse) ProtoReflect() protoreflect.Message {
- mi := &file_userlib_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserCollectResponse.ProtoReflect.Descriptor instead.
- func (*UserCollectResponse) Descriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{1}
- }
- func (x *UserCollectResponse) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *UserCollectResponse) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- //用户删除
- type UserDeleteRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
- AppId int64 `protobuf:"varint,2,opt,name=appId,proto3" json:"appId,omitempty"` //剑鱼标识
- }
- func (x *UserDeleteRequest) Reset() {
- *x = UserDeleteRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_userlib_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserDeleteRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserDeleteRequest) ProtoMessage() {}
- func (x *UserDeleteRequest) ProtoReflect() protoreflect.Message {
- mi := &file_userlib_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserDeleteRequest.ProtoReflect.Descriptor instead.
- func (*UserDeleteRequest) Descriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{2}
- }
- func (x *UserDeleteRequest) GetDocId() string {
- if x != nil {
- return x.DocId
- }
- return ""
- }
- func (x *UserDeleteRequest) GetAppId() int64 {
- if x != nil {
- return x.AppId
- }
- return 0
- }
- type UserDeleteResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- }
- func (x *UserDeleteResponse) Reset() {
- *x = UserDeleteResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_userlib_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserDeleteResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserDeleteResponse) ProtoMessage() {}
- func (x *UserDeleteResponse) ProtoReflect() protoreflect.Message {
- mi := &file_userlib_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserDeleteResponse.ProtoReflect.Descriptor instead.
- func (*UserDeleteResponse) Descriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{3}
- }
- func (x *UserDeleteResponse) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *UserDeleteResponse) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- //用户恢复
- type UserRestoreRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
- }
- func (x *UserRestoreRequest) Reset() {
- *x = UserRestoreRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_userlib_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserRestoreRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserRestoreRequest) ProtoMessage() {}
- func (x *UserRestoreRequest) ProtoReflect() protoreflect.Message {
- mi := &file_userlib_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserRestoreRequest.ProtoReflect.Descriptor instead.
- func (*UserRestoreRequest) Descriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{4}
- }
- func (x *UserRestoreRequest) GetDocId() string {
- if x != nil {
- return x.DocId
- }
- return ""
- }
- type UserRestoreResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- }
- func (x *UserRestoreResponse) Reset() {
- *x = UserRestoreResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_userlib_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserRestoreResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserRestoreResponse) ProtoMessage() {}
- func (x *UserRestoreResponse) ProtoReflect() protoreflect.Message {
- mi := &file_userlib_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserRestoreResponse.ProtoReflect.Descriptor instead.
- func (*UserRestoreResponse) Descriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{5}
- }
- func (x *UserRestoreResponse) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *UserRestoreResponse) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- //用户文档列表
- type UserDocsRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
- AppId int64 `protobuf:"varint,2,opt,name=appId,proto3" json:"appId,omitempty"` //剑鱼标识
- UserDocCategory int64 `protobuf:"varint,3,opt,name=userDocCategory,proto3" json:"userDocCategory,omitempty"` //用户文档分类 0兑换的 1收藏的 2回收站的
- Page int64 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
- PageSize int64 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
- }
- func (x *UserDocsRequest) Reset() {
- *x = UserDocsRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_userlib_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserDocsRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserDocsRequest) ProtoMessage() {}
- func (x *UserDocsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_userlib_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserDocsRequest.ProtoReflect.Descriptor instead.
- func (*UserDocsRequest) Descriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{6}
- }
- func (x *UserDocsRequest) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *UserDocsRequest) GetAppId() int64 {
- if x != nil {
- return x.AppId
- }
- return 0
- }
- func (x *UserDocsRequest) GetUserDocCategory() int64 {
- if x != nil {
- return x.UserDocCategory
- }
- return 0
- }
- func (x *UserDocsRequest) GetPage() int64 {
- if x != nil {
- return x.Page
- }
- return 0
- }
- func (x *UserDocsRequest) GetPageSize() int64 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- type UserDocsResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` //总数
- Data []*UserDocs `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` //列表
- }
- func (x *UserDocsResponse) Reset() {
- *x = UserDocsResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_userlib_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserDocsResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserDocsResponse) ProtoMessage() {}
- func (x *UserDocsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_userlib_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserDocsResponse.ProtoReflect.Descriptor instead.
- func (*UserDocsResponse) Descriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{7}
- }
- func (x *UserDocsResponse) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *UserDocsResponse) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *UserDocsResponse) GetCount() int64 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- func (x *UserDocsResponse) GetData() []*UserDocs {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type UserRecoveryRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserDocId int32 `protobuf:"varint,1,opt,name=userDocId,proto3" json:"userDocId,omitempty"` //文档标识
- AppId int64 `protobuf:"varint,2,opt,name=appId,proto3" json:"appId,omitempty"` //剑鱼标识
- UserId string `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"` //用户标识
- }
- func (x *UserRecoveryRequest) Reset() {
- *x = UserRecoveryRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_userlib_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserRecoveryRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserRecoveryRequest) ProtoMessage() {}
- func (x *UserRecoveryRequest) ProtoReflect() protoreflect.Message {
- mi := &file_userlib_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserRecoveryRequest.ProtoReflect.Descriptor instead.
- func (*UserRecoveryRequest) Descriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{8}
- }
- func (x *UserRecoveryRequest) GetUserDocId() int32 {
- if x != nil {
- return x.UserDocId
- }
- return 0
- }
- func (x *UserRecoveryRequest) GetAppId() int64 {
- if x != nil {
- return x.AppId
- }
- return 0
- }
- func (x *UserRecoveryRequest) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- type UserDocs struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
- CreateAt string `protobuf:"bytes,2,opt,name=CreateAt,proto3" json:"CreateAt,omitempty"` //创建时间
- UpdateAt string `protobuf:"bytes,3,opt,name=UpdateAt,proto3" json:"UpdateAt,omitempty"` //修改时间
- DeletedAt string `protobuf:"bytes,4,opt,name=DeletedAt,proto3" json:"DeletedAt,omitempty"` //删除时间
- AppId int64 `protobuf:"varint,5,opt,name=AppId,proto3" json:"AppId,omitempty"` //剑鱼标识
- UserId string `protobuf:"bytes,6,opt,name=UserId,proto3" json:"UserId,omitempty"` //用户标识
- DocId string `protobuf:"bytes,7,opt,name=DocId,proto3" json:"DocId,omitempty"` //文档标识
- DocCategory int64 `protobuf:"varint,8,opt,name=DocCategory,proto3" json:"DocCategory,omitempty"`
- IsDelete int64 `protobuf:"varint,9,opt,name=IsDelete,proto3" json:"IsDelete,omitempty"` //是否删除,0 未删除 1 已逻辑删除 2永久删除
- DocName string `protobuf:"bytes,10,opt,name=DocName,proto3" json:"DocName,omitempty"` //文档名
- DocFileType int64 `protobuf:"varint,11,opt,name=DocFileType,proto3" json:"DocFileType,omitempty"` //文件类型,0-doc ,1-pdf ,2-xls 3 ppt 4- txt 5- 其他
- DocFileSuffix string `protobuf:"bytes,12,opt,name=DocFileSuffix,proto3" json:"DocFileSuffix,omitempty"` //文件后辍
- DocFileSize int64 `protobuf:"varint,13,opt,name=DocFileSize,proto3" json:"DocFileSize,omitempty"` //文件大小
- DocPageSize int64 `protobuf:"varint,14,opt,name=DocPageSize,proto3" json:"DocPageSize,omitempty"` //页数
- DocSummary string `protobuf:"bytes,15,opt,name=DocSummary,proto3" json:"DocSummary,omitempty"` //文档摘要
- DocSourceUserId string `protobuf:"bytes,16,opt,name=DocSourceUserId,proto3" json:"DocSourceUserId,omitempty"` //文档原用户id
- IsDownload int64 `protobuf:"varint,17,opt,name=IsDownload,proto3" json:"IsDownload,omitempty"` //是否转存0未转存1转存
- IsCollection int64 `protobuf:"varint,18,opt,name=IsCollection,proto3" json:"IsCollection,omitempty"` //是否收藏0未收藏1收藏
- }
- func (x *UserDocs) Reset() {
- *x = UserDocs{}
- if protoimpl.UnsafeEnabled {
- mi := &file_userlib_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserDocs) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserDocs) ProtoMessage() {}
- func (x *UserDocs) ProtoReflect() protoreflect.Message {
- mi := &file_userlib_proto_msgTypes[9]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserDocs.ProtoReflect.Descriptor instead.
- func (*UserDocs) Descriptor() ([]byte, []int) {
- return file_userlib_proto_rawDescGZIP(), []int{9}
- }
- func (x *UserDocs) GetID() int64 {
- if x != nil {
- return x.ID
- }
- return 0
- }
- func (x *UserDocs) GetCreateAt() string {
- if x != nil {
- return x.CreateAt
- }
- return ""
- }
- func (x *UserDocs) GetUpdateAt() string {
- if x != nil {
- return x.UpdateAt
- }
- return ""
- }
- func (x *UserDocs) GetDeletedAt() string {
- if x != nil {
- return x.DeletedAt
- }
- return ""
- }
- func (x *UserDocs) GetAppId() int64 {
- if x != nil {
- return x.AppId
- }
- return 0
- }
- func (x *UserDocs) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *UserDocs) GetDocId() string {
- if x != nil {
- return x.DocId
- }
- return ""
- }
- func (x *UserDocs) GetDocCategory() int64 {
- if x != nil {
- return x.DocCategory
- }
- return 0
- }
- func (x *UserDocs) GetIsDelete() int64 {
- if x != nil {
- return x.IsDelete
- }
- return 0
- }
- func (x *UserDocs) GetDocName() string {
- if x != nil {
- return x.DocName
- }
- return ""
- }
- func (x *UserDocs) GetDocFileType() int64 {
- if x != nil {
- return x.DocFileType
- }
- return 0
- }
- func (x *UserDocs) GetDocFileSuffix() string {
- if x != nil {
- return x.DocFileSuffix
- }
- return ""
- }
- func (x *UserDocs) GetDocFileSize() int64 {
- if x != nil {
- return x.DocFileSize
- }
- return 0
- }
- func (x *UserDocs) GetDocPageSize() int64 {
- if x != nil {
- return x.DocPageSize
- }
- return 0
- }
- func (x *UserDocs) GetDocSummary() string {
- if x != nil {
- return x.DocSummary
- }
- return ""
- }
- func (x *UserDocs) GetDocSourceUserId() string {
- if x != nil {
- return x.DocSourceUserId
- }
- return ""
- }
- func (x *UserDocs) GetIsDownload() int64 {
- if x != nil {
- return x.IsDownload
- }
- return 0
- }
- func (x *UserDocs) GetIsCollection() int64 {
- if x != nil {
- return x.IsCollection
- }
- return 0
- }
- var File_userlib_proto protoreflect.FileDescriptor
- var file_userlib_proto_rawDesc = []byte{
- 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
- 0x07, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x22, 0x6c, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72,
- 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,
- 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
- 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04,
- 0x63, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x73, 0x74,
- 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f,
- 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,
- 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64,
- 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x3f, 0x0a, 0x11, 0x55,
- 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x42, 0x0a, 0x12,
- 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
- 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
- 0x22, 0x2a, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x13,
- 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
- 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
- 0x65, 0x22, 0x99, 0x01, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a,
- 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x61, 0x70,
- 0x70, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61,
- 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x75, 0x73,
- 0x65, 0x72, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a,
- 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67,
- 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x7d, 0x0a,
- 0x10, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
- 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
- 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x75, 0x73,
- 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x61, 0x0a, 0x13,
- 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x49, 0x64,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x49,
- 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
- 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22,
- 0xa6, 0x04, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x12, 0x0e, 0x0a, 0x02,
- 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08,
- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x41, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41,
- 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64,
- 0x41, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x41, 0x70, 0x70, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x03, 0x52, 0x05, 0x41, 0x70, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72,
- 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
- 0x12, 0x14, 0x0a, 0x05, 0x44, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x05, 0x44, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74,
- 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x44, 0x6f, 0x63,
- 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x49, 0x73, 0x44, 0x65,
- 0x6c, 0x65, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x49, 0x73, 0x44, 0x65,
- 0x6c, 0x65, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18,
- 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x44, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20,
- 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x0b, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65,
- 0x12, 0x24, 0x0a, 0x0d, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x75, 0x66, 0x66, 0x69,
- 0x78, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65,
- 0x53, 0x75, 0x66, 0x66, 0x69, 0x78, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x46, 0x69, 0x6c,
- 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x44, 0x6f, 0x63,
- 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x50,
- 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x44,
- 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x44, 0x6f,
- 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
- 0x44, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x44, 0x6f,
- 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x10, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x0f, 0x44, 0x6f, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73,
- 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x49, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f,
- 0x61, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x49, 0x73, 0x44, 0x6f, 0x77, 0x6e,
- 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x49, 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
- 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x49, 0x73, 0x43, 0x6f,
- 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x3c, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72,
- 0x44, 0x6f, 0x63, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x0a, 0x53,
- 0x65, 0x6c, 0x66, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44,
- 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c,
- 0x6c, 0x65, 0x63, 0x74, 0x10, 0x02, 0x2a, 0x4c, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f,
- 0x63, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x6f, 0x72,
- 0x64, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x44, 0x46, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,
- 0x45, 0x58, 0x43, 0x45, 0x4c, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x50, 0x54, 0x10, 0x03,
- 0x12, 0x07, 0x0a, 0x03, 0x54, 0x58, 0x54, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x74, 0x68,
- 0x65, 0x72, 0x10, 0x05, 0x2a, 0x43, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x53,
- 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x10,
- 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
- 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c,
- 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10, 0x02, 0x32, 0x8e, 0x04, 0x0a, 0x07, 0x55, 0x73,
- 0x65, 0x72, 0x4c, 0x69, 0x62, 0x12, 0x3f, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63,
- 0x73, 0x12, 0x18, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72,
- 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x75, 0x73,
- 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x73, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x44, 0x6f, 0x63, 0x43, 0x6f, 0x6c,
- 0x6c, 0x65, 0x63, 0x74, 0x12, 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55,
- 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72,
- 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
- 0x4b, 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6f, 0x6c, 0x6c,
- 0x65, 0x63, 0x74, 0x12, 0x1a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73,
- 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
- 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65,
- 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x09,
- 0x44, 0x6f, 0x63, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72,
- 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69,
- 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70,
- 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0a, 0x44, 0x6f, 0x63, 0x52, 0x65, 0x73, 0x74, 0x6f,
- 0x72, 0x65, 0x12, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65,
- 0x72, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52,
- 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48,
- 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1b, 0x2e,
- 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c,
- 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75, 0x73, 0x65,
- 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x12, 0x44, 0x6f, 0x63, 0x50,
- 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1c,
- 0x2e, 0x75, 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x63,
- 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x75,
- 0x73, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x6c, 0x65,
- 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x33,
- }
- var (
- file_userlib_proto_rawDescOnce sync.Once
- file_userlib_proto_rawDescData = file_userlib_proto_rawDesc
- )
- func file_userlib_proto_rawDescGZIP() []byte {
- file_userlib_proto_rawDescOnce.Do(func() {
- file_userlib_proto_rawDescData = protoimpl.X.CompressGZIP(file_userlib_proto_rawDescData)
- })
- return file_userlib_proto_rawDescData
- }
- var file_userlib_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
- var file_userlib_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
- var file_userlib_proto_goTypes = []interface{}{
- (UserDocCategory)(0), // 0: userlib.UserDocCategory
- (UserDocFileType)(0), // 1: userlib.UserDocFileType
- (UserDocStatus)(0), // 2: userlib.UserDocStatus
- (*UserCollectRequest)(nil), // 3: userlib.UserCollectRequest
- (*UserCollectResponse)(nil), // 4: userlib.UserCollectResponse
- (*UserDeleteRequest)(nil), // 5: userlib.UserDeleteRequest
- (*UserDeleteResponse)(nil), // 6: userlib.UserDeleteResponse
- (*UserRestoreRequest)(nil), // 7: userlib.UserRestoreRequest
- (*UserRestoreResponse)(nil), // 8: userlib.UserRestoreResponse
- (*UserDocsRequest)(nil), // 9: userlib.UserDocsRequest
- (*UserDocsResponse)(nil), // 10: userlib.UserDocsResponse
- (*UserRecoveryRequest)(nil), // 11: userlib.UserRecoveryRequest
- (*UserDocs)(nil), // 12: userlib.userDocs
- }
- var file_userlib_proto_depIdxs = []int32{
- 12, // 0: userlib.UserDocsResponse.data:type_name -> userlib.userDocs
- 9, // 1: userlib.UserLib.UserDocs:input_type -> userlib.UserDocsRequest
- 3, // 2: userlib.UserLib.DocCollect:input_type -> userlib.UserCollectRequest
- 5, // 3: userlib.UserLib.DocCancelCollect:input_type -> userlib.UserDeleteRequest
- 11, // 4: userlib.UserLib.DocDelete:input_type -> userlib.UserRecoveryRequest
- 11, // 5: userlib.UserLib.DocRestore:input_type -> userlib.UserRecoveryRequest
- 3, // 6: userlib.UserLib.DocDownload:input_type -> userlib.UserCollectRequest
- 11, // 7: userlib.UserLib.DocPermanentDelete:input_type -> userlib.UserRecoveryRequest
- 10, // 8: userlib.UserLib.UserDocs:output_type -> userlib.UserDocsResponse
- 4, // 9: userlib.UserLib.DocCollect:output_type -> userlib.UserCollectResponse
- 6, // 10: userlib.UserLib.DocCancelCollect:output_type -> userlib.UserDeleteResponse
- 6, // 11: userlib.UserLib.DocDelete:output_type -> userlib.UserDeleteResponse
- 8, // 12: userlib.UserLib.DocRestore:output_type -> userlib.UserRestoreResponse
- 4, // 13: userlib.UserLib.DocDownload:output_type -> userlib.UserCollectResponse
- 4, // 14: userlib.UserLib.DocPermanentDelete:output_type -> userlib.UserCollectResponse
- 8, // [8:15] is the sub-list for method output_type
- 1, // [1:8] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] is the sub-list for field type_name
- }
- func init() { file_userlib_proto_init() }
- func file_userlib_proto_init() {
- if File_userlib_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_userlib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserCollectRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_userlib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserCollectResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_userlib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserDeleteRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_userlib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserDeleteResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_userlib_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserRestoreRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_userlib_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserRestoreResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_userlib_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserDocsRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_userlib_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserDocsResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_userlib_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserRecoveryRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_userlib_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserDocs); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_userlib_proto_rawDesc,
- NumEnums: 3,
- NumMessages: 10,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_userlib_proto_goTypes,
- DependencyIndexes: file_userlib_proto_depIdxs,
- EnumInfos: file_userlib_proto_enumTypes,
- MessageInfos: file_userlib_proto_msgTypes,
- }.Build()
- File_userlib_proto = out.File
- file_userlib_proto_rawDesc = nil
- file_userlib_proto_goTypes = nil
- file_userlib_proto_depIdxs = nil
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // UserLibClient is the client API for UserLib service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type UserLibClient interface {
- UserDocs(ctx context.Context, in *UserDocsRequest, opts ...grpc.CallOption) (*UserDocsResponse, error)
- DocCollect(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
- DocCancelCollect(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error)
- DocDelete(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error)
- DocRestore(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserRestoreResponse, error)
- DocDownload(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
- DocPermanentDelete(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserCollectResponse, error)
- }
- type userLibClient struct {
- cc grpc.ClientConnInterface
- }
- func NewUserLibClient(cc grpc.ClientConnInterface) UserLibClient {
- return &userLibClient{cc}
- }
- func (c *userLibClient) UserDocs(ctx context.Context, in *UserDocsRequest, opts ...grpc.CallOption) (*UserDocsResponse, error) {
- out := new(UserDocsResponse)
- err := c.cc.Invoke(ctx, "/userlib.UserLib/UserDocs", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userLibClient) DocCollect(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error) {
- out := new(UserCollectResponse)
- err := c.cc.Invoke(ctx, "/userlib.UserLib/DocCollect", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userLibClient) DocCancelCollect(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error) {
- out := new(UserDeleteResponse)
- err := c.cc.Invoke(ctx, "/userlib.UserLib/DocCancelCollect", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userLibClient) DocDelete(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error) {
- out := new(UserDeleteResponse)
- err := c.cc.Invoke(ctx, "/userlib.UserLib/DocDelete", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userLibClient) DocRestore(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserRestoreResponse, error) {
- out := new(UserRestoreResponse)
- err := c.cc.Invoke(ctx, "/userlib.UserLib/DocRestore", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userLibClient) DocDownload(ctx context.Context, in *UserCollectRequest, opts ...grpc.CallOption) (*UserCollectResponse, error) {
- out := new(UserCollectResponse)
- err := c.cc.Invoke(ctx, "/userlib.UserLib/DocDownload", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userLibClient) DocPermanentDelete(ctx context.Context, in *UserRecoveryRequest, opts ...grpc.CallOption) (*UserCollectResponse, error) {
- out := new(UserCollectResponse)
- err := c.cc.Invoke(ctx, "/userlib.UserLib/DocPermanentDelete", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // UserLibServer is the server API for UserLib service.
- type UserLibServer interface {
- UserDocs(context.Context, *UserDocsRequest) (*UserDocsResponse, error)
- DocCollect(context.Context, *UserCollectRequest) (*UserCollectResponse, error)
- DocCancelCollect(context.Context, *UserDeleteRequest) (*UserDeleteResponse, error)
- DocDelete(context.Context, *UserRecoveryRequest) (*UserDeleteResponse, error)
- DocRestore(context.Context, *UserRecoveryRequest) (*UserRestoreResponse, error)
- DocDownload(context.Context, *UserCollectRequest) (*UserCollectResponse, error)
- DocPermanentDelete(context.Context, *UserRecoveryRequest) (*UserCollectResponse, error)
- }
- // UnimplementedUserLibServer can be embedded to have forward compatible implementations.
- type UnimplementedUserLibServer struct {
- }
- func (*UnimplementedUserLibServer) UserDocs(context.Context, *UserDocsRequest) (*UserDocsResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserDocs not implemented")
- }
- func (*UnimplementedUserLibServer) DocCollect(context.Context, *UserCollectRequest) (*UserCollectResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocCollect not implemented")
- }
- func (*UnimplementedUserLibServer) DocCancelCollect(context.Context, *UserDeleteRequest) (*UserDeleteResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocCancelCollect not implemented")
- }
- func (*UnimplementedUserLibServer) DocDelete(context.Context, *UserRecoveryRequest) (*UserDeleteResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocDelete not implemented")
- }
- func (*UnimplementedUserLibServer) DocRestore(context.Context, *UserRecoveryRequest) (*UserRestoreResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocRestore not implemented")
- }
- func (*UnimplementedUserLibServer) DocDownload(context.Context, *UserCollectRequest) (*UserCollectResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocDownload not implemented")
- }
- func (*UnimplementedUserLibServer) DocPermanentDelete(context.Context, *UserRecoveryRequest) (*UserCollectResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocPermanentDelete not implemented")
- }
- func RegisterUserLibServer(s *grpc.Server, srv UserLibServer) {
- s.RegisterService(&_UserLib_serviceDesc, srv)
- }
- func _UserLib_UserDocs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserDocsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserLibServer).UserDocs(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/userlib.UserLib/UserDocs",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserLibServer).UserDocs(ctx, req.(*UserDocsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserLib_DocCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserCollectRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserLibServer).DocCollect(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/userlib.UserLib/DocCollect",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserLibServer).DocCollect(ctx, req.(*UserCollectRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserLib_DocCancelCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserDeleteRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserLibServer).DocCancelCollect(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/userlib.UserLib/DocCancelCollect",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserLibServer).DocCancelCollect(ctx, req.(*UserDeleteRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserLib_DocDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserRecoveryRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserLibServer).DocDelete(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/userlib.UserLib/DocDelete",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserLibServer).DocDelete(ctx, req.(*UserRecoveryRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserLib_DocRestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserRecoveryRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserLibServer).DocRestore(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/userlib.UserLib/DocRestore",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserLibServer).DocRestore(ctx, req.(*UserRecoveryRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserLib_DocDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserCollectRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserLibServer).DocDownload(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/userlib.UserLib/DocDownload",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserLibServer).DocDownload(ctx, req.(*UserCollectRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserLib_DocPermanentDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserRecoveryRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserLibServer).DocPermanentDelete(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/userlib.UserLib/DocPermanentDelete",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserLibServer).DocPermanentDelete(ctx, req.(*UserRecoveryRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _UserLib_serviceDesc = grpc.ServiceDesc{
- ServiceName: "userlib.UserLib",
- HandlerType: (*UserLibServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "UserDocs",
- Handler: _UserLib_UserDocs_Handler,
- },
- {
- MethodName: "DocCollect",
- Handler: _UserLib_DocCollect_Handler,
- },
- {
- MethodName: "DocCancelCollect",
- Handler: _UserLib_DocCancelCollect_Handler,
- },
- {
- MethodName: "DocDelete",
- Handler: _UserLib_DocDelete_Handler,
- },
- {
- MethodName: "DocRestore",
- Handler: _UserLib_DocRestore_Handler,
- },
- {
- MethodName: "DocDownload",
- Handler: _UserLib_DocDownload_Handler,
- },
- {
- MethodName: "DocPermanentDelete",
- Handler: _UserLib_DocPermanentDelete_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "userlib.proto",
- }
|