Documentation ¶
Index ¶
- Constants
- Variables
- type TbTest
- func (receiver *TbTest) Columns() []string
- func (receiver *TbTest) CopyFrom(src tcode.Table)
- func (receiver *TbTest) NewInstance() tcode.Table
- func (receiver *TbTest) NewTable() tcode.Table
- func (receiver *TbTest) RawColumnContainer(columns ...string) []any
- func (receiver *TbTest) TableName() string
Constants ¶
View Source
const TableNameTbTest = "test.tb_test"
Variables ¶
View Source
var ColumnNamesTbTest = []string{"id", "user_id", "category_id", "article_cover", "article_title", "article_content", "type", "original_url", "is_top", "is_delete", "status", "sortno", "create_time", "update_time"}
Functions ¶
This section is empty.
Types ¶
type TbTest ¶
type TbTest struct { Id int32 `json:"id"` // Id UserId int32 `json:"userId"` // UserId 作者 CategoryId int32 `json:"categoryId"` // CategoryId 文章分类 ArticleCover string `json:"articleCover"` // ArticleCover 文章缩略图 ArticleTitle string `json:"articleTitle"` // ArticleTitle 标题 ArticleContent string `json:"articleContent"` // ArticleContent 内容 Type int8 `json:"type"` // Type 文章类型 1原创 2转载 3翻译 OriginalUrl string `json:"originalUrl"` // OriginalUrl 原文链接 IsTop int8 `json:"isTop"` // IsTop 是否置顶 0否 1是 IsDelete int8 `json:"isDelete"` // IsDelete 是否删除 0否 1是 Status int8 `json:"status"` // Status 状态值 1公开 2私密 3评论可见 Sortno int32 `json:"sortno"` // Sortno 自定义排序 CreateTime time.Time `json:"createTime"` // CreateTime 发表时间 UpdateTime time.Time `json:"updateTime"` // UpdateTime 更新时间 }
TbTest 测试表
func (*TbTest) NewInstance ¶
func (*TbTest) RawColumnContainer ¶
Click to show internal directories.
Click to hide internal directories.