tables

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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) Columns

func (receiver *TbTest) Columns() []string

func (*TbTest) CopyFrom

func (receiver *TbTest) CopyFrom(src tcode.Table)

func (*TbTest) NewInstance

func (receiver *TbTest) NewInstance() tcode.Table

func (*TbTest) NewTable

func (receiver *TbTest) NewTable() tcode.Table

func (*TbTest) RawColumnContainer

func (receiver *TbTest) RawColumnContainer(columns ...string) []any

func (*TbTest) TableName

func (receiver *TbTest) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL