123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.23.0
- // protoc v3.11.4
- // source: stdlib.proto
- package stdlib
- 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 DocQueryRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- PageNum int32 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"` //页码
- PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数量
- KeyWords string `protobuf:"bytes,3,opt,name=keyWords,proto3" json:"keyWords,omitempty"` //检索词 文档名检索 模糊
- ItemArr []string `protobuf:"bytes,4,rep,name=itemArr,proto3" json:"itemArr,omitempty"` // 分类 []string
- TagArr []string `protobuf:"bytes,5,rep,name=tagArr,proto3" json:"tagArr,omitempty"` // 标签 []string
- PublishTimeSort int32 `protobuf:"varint,6,opt,name=publishTimeSort,proto3" json:"publishTimeSort,omitempty"` // 发布时间排序 1正序 2倒序
- DownloadSort int32 `protobuf:"varint,7,opt,name=downloadSort,proto3" json:"downloadSort,omitempty"` // 下载次数排序 1正序 2倒序
- ViewSort int32 `protobuf:"varint,8,opt,name=viewSort,proto3" json:"viewSort,omitempty"` // 浏览量排序 1正序 2倒序
- }
- func (x *DocQueryRequest) Reset() {
- *x = DocQueryRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocQueryRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocQueryRequest) ProtoMessage() {}
- func (x *DocQueryRequest) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocQueryRequest.ProtoReflect.Descriptor instead.
- func (*DocQueryRequest) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{0}
- }
- func (x *DocQueryRequest) GetPageNum() int32 {
- if x != nil {
- return x.PageNum
- }
- return 0
- }
- func (x *DocQueryRequest) GetPageSize() int32 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- func (x *DocQueryRequest) GetKeyWords() string {
- if x != nil {
- return x.KeyWords
- }
- return ""
- }
- func (x *DocQueryRequest) GetItemArr() []string {
- if x != nil {
- return x.ItemArr
- }
- return nil
- }
- func (x *DocQueryRequest) GetTagArr() []string {
- if x != nil {
- return x.TagArr
- }
- return nil
- }
- func (x *DocQueryRequest) GetPublishTimeSort() int32 {
- if x != nil {
- return x.PublishTimeSort
- }
- return 0
- }
- func (x *DocQueryRequest) GetDownloadSort() int32 {
- if x != nil {
- return x.DownloadSort
- }
- return 0
- }
- func (x *DocQueryRequest) GetViewSort() int32 {
- if x != nil {
- return x.ViewSort
- }
- return 0
- }
- type DocQueryResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
- Docs []*Doc `protobuf:"bytes,3,rep,name=docs,proto3" json:"docs,omitempty"` //文档列表集合,没有分页参数
- Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` //总数
- }
- func (x *DocQueryResponse) Reset() {
- *x = DocQueryResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocQueryResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocQueryResponse) ProtoMessage() {}
- func (x *DocQueryResponse) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocQueryResponse.ProtoReflect.Descriptor instead.
- func (*DocQueryResponse) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{1}
- }
- func (x *DocQueryResponse) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *DocQueryResponse) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- func (x *DocQueryResponse) GetDocs() []*Doc {
- if x != nil {
- return x.Docs
- }
- return nil
- }
- func (x *DocQueryResponse) GetTotal() int32 {
- if x != nil {
- return x.Total
- }
- return 0
- }
- type Doc struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
- DocName string `protobuf:"bytes,2,opt,name=docName,proto3" json:"docName,omitempty"` //文档名称
- DocType int32 `protobuf:"varint,3,opt,name=docType,proto3" json:"docType,omitempty"` //文档类型
- DocFileSize int32 `protobuf:"varint,4,opt,name=docFileSize,proto3" json:"docFileSize,omitempty"` //文档大小
- DocPageSize int32 `protobuf:"varint,5,opt,name=docPageSize,proto3" json:"docPageSize,omitempty"` //文档页码数
- Tags string `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"` //文档标签
- UserId string `protobuf:"bytes,7,opt,name=userId,proto3" json:"userId,omitempty"` //上传人id
- DocSummary string `protobuf:"bytes,8,opt,name=docSummary,proto3" json:"docSummary,omitempty"` //摘要
- }
- func (x *Doc) Reset() {
- *x = Doc{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Doc) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Doc) ProtoMessage() {}
- func (x *Doc) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 Doc.ProtoReflect.Descriptor instead.
- func (*Doc) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{2}
- }
- func (x *Doc) GetDocId() string {
- if x != nil {
- return x.DocId
- }
- return ""
- }
- func (x *Doc) GetDocName() string {
- if x != nil {
- return x.DocName
- }
- return ""
- }
- func (x *Doc) GetDocType() int32 {
- if x != nil {
- return x.DocType
- }
- return 0
- }
- func (x *Doc) GetDocFileSize() int32 {
- if x != nil {
- return x.DocFileSize
- }
- return 0
- }
- func (x *Doc) GetDocPageSize() int32 {
- if x != nil {
- return x.DocPageSize
- }
- return 0
- }
- func (x *Doc) GetTags() string {
- if x != nil {
- return x.Tags
- }
- return ""
- }
- func (x *Doc) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *Doc) GetDocSummary() string {
- if x != nil {
- return x.DocSummary
- }
- return ""
- }
- type DocChangeReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //文档id
- Reason int32 `protobuf:"varint,2,opt,name=reason,proto3" json:"reason,omitempty"` //处理原因 1机审通过上架 2人审通过上加 10投诉下架 11过期下架
- }
- func (x *DocChangeReq) Reset() {
- *x = DocChangeReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocChangeReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocChangeReq) ProtoMessage() {}
- func (x *DocChangeReq) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocChangeReq.ProtoReflect.Descriptor instead.
- func (*DocChangeReq) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{3}
- }
- func (x *DocChangeReq) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *DocChangeReq) GetReason() int32 {
- if x != nil {
- return x.Reason
- }
- return 0
- }
- type DocChangeResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` //是否成功
- }
- func (x *DocChangeResp) Reset() {
- *x = DocChangeResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocChangeResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocChangeResp) ProtoMessage() {}
- func (x *DocChangeResp) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocChangeResp.ProtoReflect.Descriptor instead.
- func (*DocChangeResp) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{4}
- }
- func (x *DocChangeResp) GetState() bool {
- if x != nil {
- return x.State
- }
- return false
- }
- type DocStatisticsReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
- DocStatisticsType int32 `protobuf:"varint,2,opt,name=DocStatisticsType,proto3" json:"DocStatisticsType,omitempty"` //文档统计类型 1增加下载次数 2增加浏览次数 3评分
- }
- func (x *DocStatisticsReq) Reset() {
- *x = DocStatisticsReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocStatisticsReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocStatisticsReq) ProtoMessage() {}
- func (x *DocStatisticsReq) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocStatisticsReq.ProtoReflect.Descriptor instead.
- func (*DocStatisticsReq) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{5}
- }
- func (x *DocStatisticsReq) GetDocId() string {
- if x != nil {
- return x.DocId
- }
- return ""
- }
- func (x *DocStatisticsReq) GetDocStatisticsType() int32 {
- if x != nil {
- return x.DocStatisticsType
- }
- return 0
- }
- type DocGetCheckReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- DocId string `protobuf:"bytes,1,opt,name=docId,proto3" json:"docId,omitempty"` //文档id
- UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
- }
- func (x *DocGetCheckReq) Reset() {
- *x = DocGetCheckReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocGetCheckReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocGetCheckReq) ProtoMessage() {}
- func (x *DocGetCheckReq) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocGetCheckReq.ProtoReflect.Descriptor instead.
- func (*DocGetCheckReq) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{6}
- }
- func (x *DocGetCheckReq) GetDocId() string {
- if x != nil {
- return x.DocId
- }
- return ""
- }
- func (x *DocGetCheckReq) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- type DocGetCheckResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
- DocName string `protobuf:"bytes,3,opt,name=docName,proto3" json:"docName,omitempty"` //文档名称
- DocType int32 `protobuf:"varint,4,opt,name=docType,proto3" json:"docType,omitempty"` //文档类型
- DocFileSize int32 `protobuf:"varint,5,opt,name=docFileSize,proto3" json:"docFileSize,omitempty"` //文档大小
- DocPageSize int32 `protobuf:"varint,6,opt,name=docPageSize,proto3" json:"docPageSize,omitempty"` //文档页码数
- Tags string `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"` //文档标签
- UserId string `protobuf:"bytes,8,opt,name=userId,proto3" json:"userId,omitempty"` //上传人id
- DocSummary string `protobuf:"bytes,9,opt,name=docSummary,proto3" json:"docSummary,omitempty"` //摘要
- }
- func (x *DocGetCheckResp) Reset() {
- *x = DocGetCheckResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocGetCheckResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocGetCheckResp) ProtoMessage() {}
- func (x *DocGetCheckResp) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocGetCheckResp.ProtoReflect.Descriptor instead.
- func (*DocGetCheckResp) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{7}
- }
- func (x *DocGetCheckResp) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *DocGetCheckResp) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- func (x *DocGetCheckResp) GetDocName() string {
- if x != nil {
- return x.DocName
- }
- return ""
- }
- func (x *DocGetCheckResp) GetDocType() int32 {
- if x != nil {
- return x.DocType
- }
- return 0
- }
- func (x *DocGetCheckResp) GetDocFileSize() int32 {
- if x != nil {
- return x.DocFileSize
- }
- return 0
- }
- func (x *DocGetCheckResp) GetDocPageSize() int32 {
- if x != nil {
- return x.DocPageSize
- }
- return 0
- }
- func (x *DocGetCheckResp) GetTags() string {
- if x != nil {
- return x.Tags
- }
- return ""
- }
- func (x *DocGetCheckResp) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *DocGetCheckResp) GetDocSummary() string {
- if x != nil {
- return x.DocSummary
- }
- return ""
- }
- type DocGetContentResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` //响应消息
- DocContent []byte `protobuf:"bytes,3,opt,name=docContent,proto3" json:"docContent,omitempty"` //文件内容
- }
- func (x *DocGetContentResp) Reset() {
- *x = DocGetContentResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocGetContentResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocGetContentResp) ProtoMessage() {}
- func (x *DocGetContentResp) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocGetContentResp.ProtoReflect.Descriptor instead.
- func (*DocGetContentResp) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{8}
- }
- func (x *DocGetContentResp) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *DocGetContentResp) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- func (x *DocGetContentResp) GetDocContent() []byte {
- if x != nil {
- return x.DocContent
- }
- return nil
- }
- type DocActivityReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- PageNum int32 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"` //页码
- PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数量
- }
- func (x *DocActivityReq) Reset() {
- *x = DocActivityReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_stdlib_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DocActivityReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DocActivityReq) ProtoMessage() {}
- func (x *DocActivityReq) ProtoReflect() protoreflect.Message {
- mi := &file_stdlib_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 DocActivityReq.ProtoReflect.Descriptor instead.
- func (*DocActivityReq) Descriptor() ([]byte, []int) {
- return file_stdlib_proto_rawDescGZIP(), []int{9}
- }
- func (x *DocActivityReq) GetPageNum() int32 {
- if x != nil {
- return x.PageNum
- }
- return 0
- }
- func (x *DocActivityReq) GetPageSize() int32 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- var File_stdlib_proto protoreflect.FileDescriptor
- var file_stdlib_proto_rawDesc = []byte{
- 0x0a, 0x0c, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
- 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x22, 0xff, 0x01, 0x0a, 0x0f, 0x44, 0x6f, 0x63, 0x51, 0x75,
- 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61,
- 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x70, 0x61, 0x67,
- 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
- 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x18, 0x0a, 0x07,
- 0x69, 0x74, 0x65, 0x6d, 0x41, 0x72, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x69,
- 0x74, 0x65, 0x6d, 0x41, 0x72, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x67, 0x41, 0x72, 0x72,
- 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x67, 0x41, 0x72, 0x72, 0x12, 0x28,
- 0x0a, 0x0f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x6f, 0x72,
- 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68,
- 0x54, 0x69, 0x6d, 0x65, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x6f, 0x77, 0x6e,
- 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x6f, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c,
- 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08,
- 0x76, 0x69, 0x65, 0x77, 0x53, 0x6f, 0x72, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,
- 0x76, 0x69, 0x65, 0x77, 0x53, 0x6f, 0x72, 0x74, 0x22, 0x6f, 0x0a, 0x10, 0x44, 0x6f, 0x63, 0x51,
- 0x75, 0x65, 0x72, 0x79, 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, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d,
- 0x73, 0x67, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x6f, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
- 0x32, 0x0b, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x52, 0x04, 0x64,
- 0x6f, 0x63, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0xdf, 0x01, 0x0a, 0x03, 0x44, 0x6f,
- 0x63, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61,
- 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d,
- 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x05, 0x52, 0x07, 0x64, 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64,
- 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
- 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a,
- 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01,
- 0x28, 0x05, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
- 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
- 0x61, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x07, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
- 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x36, 0x0a, 0x0c, 0x44,
- 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69,
- 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72,
- 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, 0x65, 0x61,
- 0x73, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0d, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
- 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x56, 0x0a, 0x10, 0x44, 0x6f,
- 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x12, 0x14,
- 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64,
- 0x6f, 0x63, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69,
- 0x73, 0x74, 0x69, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
- 0x11, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x54, 0x79,
- 0x70, 0x65, 0x22, 0x3e, 0x0a, 0x0e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63,
- 0x6b, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73,
- 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
- 0x49, 0x64, 0x22, 0xfb, 0x01, 0x0a, 0x0f, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65,
- 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73,
- 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x18, 0x0a, 0x07,
- 0x64, 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64,
- 0x6f, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x54, 0x79, 0x70,
- 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x64, 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65,
- 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69,
- 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
- 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x64, 0x6f, 0x63, 0x50, 0x61, 0x67, 0x65,
- 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x07, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
- 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
- 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x09,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x63, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79,
- 0x22, 0x59, 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
- 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
- 0x6f, 0x63, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
- 0x0a, 0x64, 0x6f, 0x63, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x46, 0x0a, 0x0e, 0x44,
- 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a,
- 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
- 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
- 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
- 0x69, 0x7a, 0x65, 0x32, 0xbb, 0x03, 0x0a, 0x06, 0x53, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x12, 0x3d,
- 0x0a, 0x08, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x17, 0x2e, 0x73, 0x74, 0x64,
- 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63,
- 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a,
- 0x05, 0x44, 0x6f, 0x63, 0x4f, 0x6e, 0x12, 0x14, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e,
- 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73,
- 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52,
- 0x65, 0x73, 0x70, 0x12, 0x35, 0x0a, 0x06, 0x44, 0x6f, 0x63, 0x4f, 0x66, 0x66, 0x12, 0x14, 0x2e,
- 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
- 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63,
- 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x0d, 0x44, 0x6f,
- 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x18, 0x2e, 0x73, 0x74,
- 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69,
- 0x63, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44,
- 0x6f, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3e, 0x0a, 0x0b,
- 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x16, 0x2e, 0x73, 0x74,
- 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b,
- 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63,
- 0x47, 0x65, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42, 0x0a, 0x0d,
- 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x2e,
- 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x68, 0x65,
- 0x63, 0x6b, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44,
- 0x6f, 0x63, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70,
- 0x12, 0x3f, 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12,
- 0x16, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62, 0x2e, 0x44, 0x6f, 0x63, 0x41, 0x63, 0x74, 0x69,
- 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x73, 0x74, 0x64, 0x6c, 0x69, 0x62,
- 0x2e, 0x44, 0x6f, 0x63, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_stdlib_proto_rawDescOnce sync.Once
- file_stdlib_proto_rawDescData = file_stdlib_proto_rawDesc
- )
- func file_stdlib_proto_rawDescGZIP() []byte {
- file_stdlib_proto_rawDescOnce.Do(func() {
- file_stdlib_proto_rawDescData = protoimpl.X.CompressGZIP(file_stdlib_proto_rawDescData)
- })
- return file_stdlib_proto_rawDescData
- }
- var file_stdlib_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
- var file_stdlib_proto_goTypes = []interface{}{
- (*DocQueryRequest)(nil), // 0: stdlib.DocQueryRequest
- (*DocQueryResponse)(nil), // 1: stdlib.DocQueryResponse
- (*Doc)(nil), // 2: stdlib.Doc
- (*DocChangeReq)(nil), // 3: stdlib.DocChangeReq
- (*DocChangeResp)(nil), // 4: stdlib.DocChangeResp
- (*DocStatisticsReq)(nil), // 5: stdlib.DocStatisticsReq
- (*DocGetCheckReq)(nil), // 6: stdlib.DocGetCheckReq
- (*DocGetCheckResp)(nil), // 7: stdlib.DocGetCheckResp
- (*DocGetContentResp)(nil), // 8: stdlib.DocGetContentResp
- (*DocActivityReq)(nil), // 9: stdlib.DocActivityReq
- }
- var file_stdlib_proto_depIdxs = []int32{
- 2, // 0: stdlib.DocQueryResponse.docs:type_name -> stdlib.Doc
- 0, // 1: stdlib.Stdlib.DocQuery:input_type -> stdlib.DocQueryRequest
- 3, // 2: stdlib.Stdlib.DocOn:input_type -> stdlib.DocChangeReq
- 3, // 3: stdlib.Stdlib.DocOff:input_type -> stdlib.DocChangeReq
- 5, // 4: stdlib.Stdlib.DocStatistics:input_type -> stdlib.DocStatisticsReq
- 6, // 5: stdlib.Stdlib.DocGetCheck:input_type -> stdlib.DocGetCheckReq
- 6, // 6: stdlib.Stdlib.DocGetContent:input_type -> stdlib.DocGetCheckReq
- 9, // 7: stdlib.Stdlib.DocActivity:input_type -> stdlib.DocActivityReq
- 1, // 8: stdlib.Stdlib.DocQuery:output_type -> stdlib.DocQueryResponse
- 4, // 9: stdlib.Stdlib.DocOn:output_type -> stdlib.DocChangeResp
- 4, // 10: stdlib.Stdlib.DocOff:output_type -> stdlib.DocChangeResp
- 4, // 11: stdlib.Stdlib.DocStatistics:output_type -> stdlib.DocChangeResp
- 7, // 12: stdlib.Stdlib.DocGetCheck:output_type -> stdlib.DocGetCheckResp
- 8, // 13: stdlib.Stdlib.DocGetContent:output_type -> stdlib.DocGetContentResp
- 1, // 14: stdlib.Stdlib.DocActivity:output_type -> stdlib.DocQueryResponse
- 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_stdlib_proto_init() }
- func file_stdlib_proto_init() {
- if File_stdlib_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_stdlib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocQueryRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocQueryResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Doc); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocChangeReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocChangeResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocStatisticsReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocGetCheckReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocGetCheckResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocGetContentResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_stdlib_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DocActivityReq); 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_stdlib_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 10,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_stdlib_proto_goTypes,
- DependencyIndexes: file_stdlib_proto_depIdxs,
- MessageInfos: file_stdlib_proto_msgTypes,
- }.Build()
- File_stdlib_proto = out.File
- file_stdlib_proto_rawDesc = nil
- file_stdlib_proto_goTypes = nil
- file_stdlib_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
- // StdlibClient is the client API for Stdlib service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type StdlibClient interface {
- DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error)
- DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error)
- DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error)
- DocStatistics(ctx context.Context, in *DocStatisticsReq, opts ...grpc.CallOption) (*DocChangeResp, error)
- DocGetCheck(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetCheckResp, error)
- DocGetContent(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetContentResp, error)
- DocActivity(ctx context.Context, in *DocActivityReq, opts ...grpc.CallOption) (*DocQueryResponse, error)
- }
- type stdlibClient struct {
- cc grpc.ClientConnInterface
- }
- func NewStdlibClient(cc grpc.ClientConnInterface) StdlibClient {
- return &stdlibClient{cc}
- }
- func (c *stdlibClient) DocQuery(ctx context.Context, in *DocQueryRequest, opts ...grpc.CallOption) (*DocQueryResponse, error) {
- out := new(DocQueryResponse)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocQuery", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocOn(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
- out := new(DocChangeResp)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOn", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocOff(ctx context.Context, in *DocChangeReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
- out := new(DocChangeResp)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocOff", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocStatistics(ctx context.Context, in *DocStatisticsReq, opts ...grpc.CallOption) (*DocChangeResp, error) {
- out := new(DocChangeResp)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocStatistics", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocGetCheck(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetCheckResp, error) {
- out := new(DocGetCheckResp)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocGetCheck", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocGetContent(ctx context.Context, in *DocGetCheckReq, opts ...grpc.CallOption) (*DocGetContentResp, error) {
- out := new(DocGetContentResp)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocGetContent", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *stdlibClient) DocActivity(ctx context.Context, in *DocActivityReq, opts ...grpc.CallOption) (*DocQueryResponse, error) {
- out := new(DocQueryResponse)
- err := c.cc.Invoke(ctx, "/stdlib.Stdlib/DocActivity", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // StdlibServer is the server API for Stdlib service.
- type StdlibServer interface {
- DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error)
- DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error)
- DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error)
- DocStatistics(context.Context, *DocStatisticsReq) (*DocChangeResp, error)
- DocGetCheck(context.Context, *DocGetCheckReq) (*DocGetCheckResp, error)
- DocGetContent(context.Context, *DocGetCheckReq) (*DocGetContentResp, error)
- DocActivity(context.Context, *DocActivityReq) (*DocQueryResponse, error)
- }
- // UnimplementedStdlibServer can be embedded to have forward compatible implementations.
- type UnimplementedStdlibServer struct {
- }
- func (*UnimplementedStdlibServer) DocQuery(context.Context, *DocQueryRequest) (*DocQueryResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocQuery not implemented")
- }
- func (*UnimplementedStdlibServer) DocOn(context.Context, *DocChangeReq) (*DocChangeResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocOn not implemented")
- }
- func (*UnimplementedStdlibServer) DocOff(context.Context, *DocChangeReq) (*DocChangeResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocOff not implemented")
- }
- func (*UnimplementedStdlibServer) DocStatistics(context.Context, *DocStatisticsReq) (*DocChangeResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocStatistics not implemented")
- }
- func (*UnimplementedStdlibServer) DocGetCheck(context.Context, *DocGetCheckReq) (*DocGetCheckResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocGetCheck not implemented")
- }
- func (*UnimplementedStdlibServer) DocGetContent(context.Context, *DocGetCheckReq) (*DocGetContentResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocGetContent not implemented")
- }
- func (*UnimplementedStdlibServer) DocActivity(context.Context, *DocActivityReq) (*DocQueryResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DocActivity not implemented")
- }
- func RegisterStdlibServer(s *grpc.Server, srv StdlibServer) {
- s.RegisterService(&_Stdlib_serviceDesc, srv)
- }
- func _Stdlib_DocQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocQueryRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocQuery(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocQuery",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocQuery(ctx, req.(*DocQueryRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocOn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocChangeReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocOn(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocOn",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocOn(ctx, req.(*DocChangeReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocOff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocChangeReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocOff(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocOff",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocOff(ctx, req.(*DocChangeReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocStatisticsReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocStatistics(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocStatistics",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocStatistics(ctx, req.(*DocStatisticsReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocGetCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocGetCheckReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocGetCheck(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocGetCheck",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocGetCheck(ctx, req.(*DocGetCheckReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocGetContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocGetCheckReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocGetContent(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocGetContent",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocGetContent(ctx, req.(*DocGetCheckReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Stdlib_DocActivity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DocActivityReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StdlibServer).DocActivity(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/stdlib.Stdlib/DocActivity",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StdlibServer).DocActivity(ctx, req.(*DocActivityReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Stdlib_serviceDesc = grpc.ServiceDesc{
- ServiceName: "stdlib.Stdlib",
- HandlerType: (*StdlibServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "DocQuery",
- Handler: _Stdlib_DocQuery_Handler,
- },
- {
- MethodName: "DocOn",
- Handler: _Stdlib_DocOn_Handler,
- },
- {
- MethodName: "DocOff",
- Handler: _Stdlib_DocOff_Handler,
- },
- {
- MethodName: "DocStatistics",
- Handler: _Stdlib_DocStatistics_Handler,
- },
- {
- MethodName: "DocGetCheck",
- Handler: _Stdlib_DocGetCheck_Handler,
- },
- {
- MethodName: "DocGetContent",
- Handler: _Stdlib_DocGetContent_Handler,
- },
- {
- MethodName: "DocActivity",
- Handler: _Stdlib_DocActivity_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "stdlib.proto",
- }
|