增加用户系统门户页、文章相关管理

This commit is contained in:
刘祥超
2024-01-09 10:20:29 +08:00
parent ea991f5a97
commit 6a671f67bc
16 changed files with 3481 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_post_category.proto";
// 文章
message Post {
int64 id = 1; // ID
int64 postCategoryId = 2; // 分类ID
string productCode = 3; // 产品代号
string type = 4; // 类型normal, url
string subject = 5; // 标题
string url = 6; // URL
string body = 7; // 内容
int64 createdAt = 8; // 创建时间
bool isPublished = 9; // 是否已发布
int64 publishedAt = 10; // 发布时间
PostCategory postCategory = 30; // 分类信息
}

View File

@@ -0,0 +1,12 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// 文章分类
message PostCategory {
int64 id = 1; // ID
string name = 2; // 名称
string code = 3; // 文章代号
bool isOn = 4; // 是否启用
}