Files
EdgeCommon/pkg/rpc/protos/models/model_post.proto
2024-01-09 10:20:29 +08:00

22 lines
528 B
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; // 分类信息
}