models

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CarTypeDict = map[interface{}]string{
	A: "suv",
}
View Source
var Dict = map[string]map[interface{}]string{

	"CarType": CarTypeDict,
}

Dict 字典值

View Source
var UserCol = struct {
	CreatedAt string
	Id        string
	OpenId    string
	UpdatedAt string
}{
	CreatedAt: "created_at",
	Id:        "id",
	OpenId:    "open_id",
	UpdatedAt: "updated_at",
}

Functions

This section is empty.

Types

type CarType

type CarType int
const (
	A CarType = 1
)

type User

type User struct {
	CreatedAt uint32 `json:"created_at" ` // 创建时间
	Id        uint32 `json:"id" `         // 主键
	OpenId    string `json:"open_id" `    // 微信openID
	UpdatedAt uint32 `json:"updated_at" ` // 更新时间
}

User 用户表 CREATE TABLE `user` (

`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`open_id` varchar(32) DEFAULT NULL COMMENT '微信openID',
`created_at` int unsigned DEFAULT NULL COMMENT '创建时间',
`updated_at` int unsigned DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `user_id_uindex` (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户表'

func (*User) TableName

func (*User) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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