visuddhinanda 3 år sedan
förälder
incheckning
5c80491bff

+ 3 - 2
documents/proto/article.proto

@@ -1,5 +1,5 @@
-syntax = "proto3"
-import "public.proto"
+syntax = "proto3";
+import "public.proto";
 /*
  * Article 服务
  * 
@@ -16,6 +16,7 @@ service Article{
 	rpc RemoveArticleFromAnthologye (ArticleRequest) returns (ArticleReply){}
 
 	rpc GetAnthologyListForStudio (ArticleListRequest) returns (AnthologyeListReply){}
+	rpc GetAnthologyListForArticle (ArticleListRequest) returns (AnthologyeListReply){}
 	rpc GetAnthologye (AnthologyeRequest) returns (AnthologyeReply){}
 	rpc SetAnthology (AnthologyeRequest) returns (AnthologyeReply){}
 	rpc AddAnthology (AnthologyeRequest) returns (AnthologyeReply){}

+ 4 - 2
documents/proto/channel.proto

@@ -1,5 +1,7 @@
-syntax = "proto3"
-import "public.proto"
+syntax = "proto3";
+import "public.proto";
+
+package channel;
 /*
  * channel/版本 服务
  */

+ 11 - 9
documents/proto/course.proto

@@ -1,7 +1,9 @@
-syntax = "proto3"
-import "public.proto"
+syntax = "proto3";
+import "public.proto";
+
+package course;
 /*
- * 课程服务
+ * 课程服务 
  */
 service Course{
 	rpc GetCourseListForStudio (CourseListRequest) returns (CourseListReply){}
@@ -37,11 +39,11 @@ message CourseRequest{
 	string Summary   = 4;	
 	string Cover     = 5;	
 	string Content   = 6;	
-	EnumContentType ContentType = 6;
+	EnumContentType ContentType = 7;
 	string Html = 8;
-	string StartAt     = 7;
-	string EndAt       = 8;
-	repeated Tag Tags = 6;
+	string StartAt     = 9;
+	string EndAt       = 10;
+	repeated Tag Tags = 11;
 
 	string Lang = 51;
 	string EditorId = 52;
@@ -55,8 +57,8 @@ message CourseList{
 	string Title = 2;
 	string Subtitle = 3;
 	string Summary = 4;						
-	date   Start = 5;
-	date   End   = 6;
+	string   Start = 5;
+	string   End   = 6;
 	string Cover = 7;
 	int32  Children = 8;
 }

+ 15 - 5
documents/proto/public.proto

@@ -1,4 +1,4 @@
-syntax = "proto3"
+syntax = "proto3";
 
 enum EnumContentType{
 	ECT_MARKDOWN = 0;
@@ -13,11 +13,21 @@ enum EnumPublicity{
 }
 
 message Tag{
-	string Id = 0;
-	string Name = 1;
+	string Id = 1;
+	string Name = 2;
 }
 
 message Channel{
-	string Id = 0;
-	string Name = 1;
+	string Id = 1;
+	string Name = 2;
+}
+
+message Studio{
+	string Id = 1;
+	string Name = 2;
+}
+message User{
+	string Id = 1;
+	string Name = 2;
+	string NickName = 3;
 }

+ 5 - 4
documents/proto/studio.proto

@@ -1,5 +1,6 @@
-syntax = "proto3"
-import "public.proto"
+syntax = "proto3";
+import "public.proto";
+
 /*
  * studio 服务
  * 每个用户注册时有一个默认studio。与用户名相同。
@@ -32,12 +33,12 @@ enum EnumAllowingOrderby{
 	EAO_CREATE_AT =  0;
 	EAO_NAME =  1;
 }
-
+ 
 message StudioRequest{
 	string Id        = 1;
 	string Name     = 2;
 	string Summary   = 3;	
-	string Cover     = 4;	
+	string Cover     = 4;
 	string Owner     = 5;
 	string CreatedAt = 6; 
 	string UpdatedAt = 7;