visuddhinanda преди 3 години
родител
ревизия
7837396551

+ 4 - 1
documents/proto/article.proto

@@ -1,5 +1,8 @@
 syntax = "proto3";
 import "public.proto";
+
+package pcds.article.v1;
+
 /*
  * Article 服务
  * 
@@ -28,7 +31,7 @@ message ArticleListRequest{
 	string Search = 3;
 	EnumAllowingSearch SearchCol = 4;
 	int32  CurrentPage = 5;
-	int32  PageSize = 6;
+	int32  PerPage = 6;
 	EnumAllowingOrderby OrderBy = 7;
 	bool   Desc = 8;
 }

+ 4 - 2
documents/proto/channel.proto

@@ -1,7 +1,9 @@
 syntax = "proto3";
 import "public.proto";
 
-package channel;
+package pcds.channel.v1;
+
+
 /*
  * channel/版本 服务
  * Studio 建立的时候会建立一个默认channel 
@@ -20,7 +22,7 @@ message ChannelListRequest{
 	string Search = 3;
 	EnumAllowingSearch SearchCol = 4;
 	int32  CurrentPage = 5;
-	int32  PageSize = 6;
+	int32  PerPage = 6;
 	EnumAllowingOrderby OrderBy = 7;
 	bool   Desc = 8;
 }

+ 3 - 2
documents/proto/chapter.proto

@@ -1,7 +1,8 @@
 syntax = "proto3";
 import "public.proto";
 
-package chapter;
+package pcds.chapter.v1;
+
 /*
  * channel/版本 服务
  */
@@ -21,7 +22,7 @@ message ChapterListRequest{
 	string Search = 3;
 	EnumAllowingSearch SearchCol = 4;
 	int32  CurrentPage = 5;
-	int32  PageSize = 6;
+	int32  PerPage = 6;
 	EnumAllowingOrderby OrderBy = 7;
 	bool   Desc = 8;
 }

+ 3 - 2
documents/proto/course.proto

@@ -1,7 +1,8 @@
 syntax = "proto3";
 import "public.proto";
 
-package course;
+package pcds.course.v1;
+
 /*
  * 课程服务 
  */
@@ -19,7 +20,7 @@ message CourseListRequest{
 	string Search = 3;
 	EnumAllowingSearch SearchCol = 4;
 	int32  CurrentPage = 5; //current page number
-	int32  PageSize = 6; //The number of items to be shown per page.
+	int32  PerPage = 6; //The number of items to be shown per page.
 	EnumAllowingOrderby OrderBy = 7;
 	bool   Desc = 8;
 }

+ 18 - 14
documents/proto/dictionary.proto

@@ -1,13 +1,14 @@
 syntax = "proto3";
 import "public.proto";
 
-package dictionary;
+package pcds.dictionary.v1;
+
 
 /*
  * dictionary 服务
- * 逐词译数据推送到社区字典,当这个channel是公开channel的时候。以channel的名义公开。不是公开channel ,推送到该studio默认channel
- * 每个channel对应一个且仅一个用户字典
- * 协作用户使用公共channel干活。公开的社区词典数据进到这个channel ,以及自己的默认channel
+ * 
+ * 
+ * 
  */
 service Dictionary{
 	//词典管理
@@ -33,7 +34,7 @@ message DictListRequest{
 	string Search = 3;
 	EnumAllowingSearch SearchCol = 4;
 	int32  CurrentPage = 5;
-	int32  PageSize = 6;
+	int32  PerPage = 6;
 	EnumAllowingOrderby OrderBy = 7;
 	bool   Desc = 8;
 }
@@ -87,18 +88,21 @@ message DictListReply{
 
 
 message WordListRequest{
-	string Id = 1;
-	string Search = 3;
-	EnumAllowingSearch SearchCol = 4;
-	int32  CurrentPage = 5;
-	int32  PageSize = 6;
-	EnumAllowingOrderby OrderBy = 7;
-	bool   Desc = 8;
+	string Id       = 1;
+
+	EnumAllowingSearch SearchCol = 2;
+	string Search                = 3;
+	EnumAllowingOrderby OrderBy  = 4;
+	bool   Desc                  = 5;
+
+	int32  CurrentPage = 6;
+	int32  PerPage     = 7;
 }
 
 enum EnumWordAllowingSearch{
-	EWAS_WORD = 0;
-	EWAS_NOTE = 1;
+	EWAS_ALL = 0;
+	EWAS_WORD = 1;
+	EWAS_NOTE = 2;
 }
 enum EnumWordAllowingOrderby{
 	EWAO_UPDATED_AT = 0;	

+ 5 - 4
documents/proto/group.proto

@@ -1,7 +1,8 @@
 syntax = "proto3";
 import "public.proto";
 
-package group;
+package pcds.group.v1;
+
 /*
  * Group/群组 服务
  */
@@ -23,7 +24,7 @@ message GroupListRequest{
 	string Search = 3;
 	EnumAllowingSearch SearchCol = 4;
 	int32  CurrentPage = 5; //current page number
-	int32  PageSize = 6; //The number of items to be shown per page.
+	int32  PerPage = 6; //The number of items to be shown per page.
 	EnumAllowingOrderby OrderBy = 7;
 	bool   Desc = 8;
 }
@@ -63,8 +64,8 @@ message GroupListReply{
 	message data{
 		repeated GroupRequest rows = 1;
 		int32    Count = 2;
-		int32    PageNo = 3;
-		int32    PageSize = 4;
+		int32    CurrentPage = 3;
+		int32    PerPage = 4;
 	}
 }
 message MemberReply{

+ 10 - 0
documents/proto/public.proto

@@ -1,10 +1,20 @@
 syntax = "proto3";
 
+
+
 enum EnumContentType{
 	ECT_MARKDOWN = 0;
 	ECT_HTML = 1;
 	ECT_TEXT = 2;
 }
+
+enum EnumResType{
+	ERT_CHANNEL = 0;
+	ERT_TRANSLATION = 1;
+	ERT_CHAPTER = 2;
+	ERT_ARTICLE = 3;
+}
+
 enum EnumPublicity{
 	EP_PRIVATE = 0;
 	EP_PUBLIC = 1;

+ 6 - 3
documents/proto/studio.proto

@@ -1,6 +1,9 @@
 syntax = "proto3";
 import "public.proto";
 
+package pcds.studio.v1;
+
+
 /*
  * studio 服务
  * 每个用户注册时有一个默认studio。与用户名相同。
@@ -21,7 +24,7 @@ message StudioListRequest{
 	string Search = 3;
 	EnumAllowingSearch SearchCol = 4;
 	int32  CurrentPage = 5;
-	int32  PageSize = 6;
+	int32  PerPage = 6;
 	EnumAllowingOrderby OrderBy = 7;
 	bool   Desc = 8;
 }
@@ -57,7 +60,7 @@ message StudioListReply{
 	message data{
 		repeated StudioRequest rows = 1;
 		int32    Count = 2;
-		int32    PageNo = 3;
-		int32    PageSize = 4;
+		int32    CurrentPage = 3;
+		int32    PerPage = 4;
 	}
 }

+ 5 - 4
documents/proto/term.proto

@@ -1,7 +1,8 @@
 syntax = "proto3";
 import "public.proto";
 
-package term;
+package pcds.term.v1;
+
 
 /*
  * Term 服务
@@ -24,7 +25,7 @@ message TermListRequest{
 	string Search = 3;
 	EnumAllowingSearch SearchCol = 4;
 	int32  CurrentPage = 5;
-	int32  PageSize = 6;
+	int32  PerPage = 6;
 	EnumAllowingOrderby OrderBy = 7;
 	bool   Desc = 8;
 }
@@ -70,7 +71,7 @@ message TermListReply{
 	message data{
 		repeated TermRequest rows = 1;
 		int32    Count = 2;
-		int32    PageNo = 3;
-		int32    PageSize = 4;
+		int32    CurrentPage = 3;
+		int32    PerPage = 4;
 	}
 }