models

package
v0.0.0-...-4ea7438 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Faq

type Faq struct {
	Id         int64  `redis_orm:"pk autoincr sync2db comment 'ID'"`
	Unique     int64  `redis_orm:"unique comment '唯一'"`
	Type       int    `redis_orm:"index dft 1 comment '类型'"`
	Title      string `redis_orm:"dft 'faqtitle' index comment '标题'"`
	Content    string `redis_orm:"dft 'cnt' comment '内容'"`
	Hearts     int    `redis_orm:"index dft 10 comment '点赞数'"`
	Category   string `redis_orm:"dft '一类' enum '一类,二类,三类'"`
	CreatedAt  int64  `redis_orm:"created_at comment '创建时间'"`
	UpdatedAt  int64  `redis_orm:"updated_at comment '修改时间'"`
	TypeTitle  string `redis_orm:"combinedindex Type&Title comment '组合索引(类型&标题)'"`
	TypeHearts int64  `redis_orm:"combinedindex Type&Hearts comment '组合索引(类型&赞数)'"`
}

type FaqTb

type FaqTb struct {
	Id        int64  `redis_orm:"pk autoincr sync2db comment 'ID'" xorm:"pk autoincr BIGINT(20)"`
	Type      int    `redis_orm:"index dft 1 comment '类型'" xorm:"default 1 TINYINT(4)"`
	Title     string `redis_orm:"dft 'faqtitle' index comment '标题'" xorm:"default 'faqtitle' VARCHAR(64)"`
	Content   string `redis_orm:"dft 'cnt' comment '内容'" xorm:"default 'cnt' VARCHAR(200)"`
	Hearts    int    `redis_orm:"index dft 10 comment '点赞数'" xorm:"default 20 INT(11)"`
	CreatedAt int64  `redis_orm:"created_at comment '创建时间'" xorm:"-> created not null BIGINT(20)"`
	UpdatedAt int64  `redis_orm:"updated_at comment '修改时间'" xorm:"-> updated not null BIGINT(20)"`
}

type FaqTestTb

type FaqTestTb struct {
	Fid     int64  `redis_orm:"pk"`
	Title   string `redis_orm:"dft 'faqtitle' index comment '标题'" xorm:"default 'faqtitle' VARCHAR(64)"`
	Content string `redis_orm:"dft 'cnt' comment '内容'" xorm:"default 'cnt' VARCHAR(200)"`
}

Jump to

Keyboard shortcuts

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