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 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='用户表'
Click to show internal directories.
Click to hide internal directories.