wanghuidong 4 tahun lalu
induk
melakukan
08ca84f0aa

+ 3 - 3
rpc/stdlib/stdlib.proto

@@ -8,9 +8,9 @@ message DocQueryRequest {
   string keyWords = 3; //检索词  文档名检索  模糊
   repeated string itemArr = 4;  // 分类 []string
   repeated string tagArr = 5;  // 标签 []string
-  int32 publishTimeSort = 6;  // 发布时间排序 1正序 2倒序
-  int32 downloadSort = 7;		// 下载次数排序 1正序 2倒序
-  int32	viewSort = 8;			// 浏览量排序 1正序 2倒序
+  int32 publishTimeSort = 6;  // 发布时间排序 1正序 -1倒序
+  int32 downloadSort = 7;		// 下载次数排序 1正序 -1倒序
+  int32	viewSort = 8;			// 浏览量排序 1正序 -1倒序
 }
 
 message DocQueryResponse {

+ 3 - 3
rpc/stdlib/stdlib/stdlib.pb.go

@@ -39,9 +39,9 @@ type DocQueryRequest struct {
 	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倒序
+	PublishTimeSort int32    `protobuf:"varint,6,opt,name=publishTimeSort,proto3" json:"publishTimeSort,omitempty"` // 发布时间排序 1正序 -1倒序
+	DownloadSort    int32    `protobuf:"varint,7,opt,name=downloadSort,proto3" json:"downloadSort,omitempty"`       // 下载次数排序 1正序 -1倒序
+	ViewSort        int32    `protobuf:"varint,8,opt,name=viewSort,proto3" json:"viewSort,omitempty"`               // 浏览量排序 1正序 -1倒序
 }
 
 func (x *DocQueryRequest) Reset() {

+ 5 - 5
rpc/stdlib/stdlibclient/stdlib.go

@@ -14,18 +14,18 @@ import (
 )
 
 type (
-	DocActivity       = stdlib.DocActivity
 	DocChangeReq      = stdlib.DocChangeReq
-	DocGetCheckReq    = stdlib.DocGetCheckReq
-	Doc               = stdlib.Doc
-	DocChangeResp     = stdlib.DocChangeResp
 	DocStatisticsReq  = stdlib.DocStatisticsReq
 	DocGetCheckResp   = stdlib.DocGetCheckResp
+	DocActivity       = stdlib.DocActivity
 	DocGetContentResp = stdlib.DocGetContentResp
 	DocActivityReq    = stdlib.DocActivityReq
+	DocActivityResp   = stdlib.DocActivityResp
 	DocQueryRequest   = stdlib.DocQueryRequest
 	DocQueryResponse  = stdlib.DocQueryResponse
-	DocActivityResp   = stdlib.DocActivityResp
+	Doc               = stdlib.Doc
+	DocChangeResp     = stdlib.DocChangeResp
+	DocGetCheckReq    = stdlib.DocGetCheckReq
 
 	Stdlib interface {
 		DocQuery(ctx context.Context, in *DocQueryRequest) (*DocQueryResponse, error)