Documentation
¶
Index ¶
- Constants
- type Author
- type Book
- type Category
- type Chapter
- type Comment
- type Feedback
- type GoadminMenu
- type GoadminOperationLog
- type GoadminPermission
- type GoadminRole
- type GoadminRoleMenu
- type GoadminRolePermission
- type GoadminRoleUser
- type GoadminSession
- type GoadminSite
- type GoadminUser
- type GoadminUserPermission
- type Member
- type MemberReader
- type MemberShelf
Constants ¶
const TableNameAuthor = "author"
const TableNameBook = "book"
const TableNameCategory = "category"
const TableNameChapter = "chapter"
const TableNameComment = "comment"
const TableNameFeedback = "feedback"
const TableNameGoadminMenu = "goadmin_menu"
const TableNameGoadminOperationLog = "goadmin_operation_log"
const TableNameGoadminPermission = "goadmin_permissions"
const TableNameGoadminRole = "goadmin_roles"
const TableNameGoadminRoleMenu = "goadmin_role_menu"
const TableNameGoadminRolePermission = "goadmin_role_permissions"
const TableNameGoadminRoleUser = "goadmin_role_users"
const TableNameGoadminSession = "goadmin_session"
const TableNameGoadminSite = "goadmin_site"
const TableNameGoadminUser = "goadmin_users"
const TableNameGoadminUserPermission = "goadmin_user_permissions"
const TableNameMember = "member"
const TableNameMemberReader = "member_reader"
const TableNameMemberShelf = "member_shelf"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Author ¶
type Author struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` AuthorName string `gorm:"column:author_name;not null;comment:作者姓名" json:"author_name"` // 作者姓名 AuthorDesc string `gorm:"column:author_desc;not null;comment:作者简介" json:"author_desc"` // 作者简介 AuthorDay string `gorm:"column:author_day;not null;comment:作者入住时间" json:"author_day"` // 作者入住时间 AuthorSex string `gorm:"column:author_sex;comment:作者性别" json:"author_sex"` // 作者性别 }
Author mapped from table <author>
type Book ¶
type Book struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:书籍id" json:"id"` // 书籍id BookTitle string `gorm:"column:book_title;not null;comment:书籍标题" json:"book_title"` // 书籍标题 BookDesc string `gorm:"column:book_desc;not null;comment:书籍描述" json:"book_desc"` // 书籍描述 AuthorID int32 `gorm:"column:author_id;comment:作者id" json:"author_id"` // 作者id ChapterTotal int32 `gorm:"column:chapter_total;comment:总章节数量" json:"chapter_total"` // 总章节数量 Copyright string `gorm:"column:copyright;comment:版权方 出版社" json:"copyright"` // 版权方 出版社 State int32 `gorm:"column:state;default:1;comment:状态 默认1 待上架 5 已上架 0 删除" json:"state"` // 状态 默认1 待上架 5 已上架 0 删除 CategoryID int32 `gorm:"column:category_id;default:1;comment:分类id" json:"category_id"` // 分类id }
Book mapped from table <book>
type Category ¶
type Category struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CategoryName string `gorm:"column:category_name;comment:分类名称" json:"category_name"` // 分类名称 ParentID int32 `gorm:"column:parent_id;not null;comment:父分类" json:"parent_id"` // 父分类 CategoryDesc string `gorm:"column:category_desc;not null;comment:分类简介" json:"category_desc"` // 分类简介 IsDel bool `gorm:"column:is_del;not null;comment:是否删除 1 是" json:"is_del"` // 是否删除 1 是 }
Category mapped from table <category>
type Chapter ¶
type Chapter struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` BookID int32 `gorm:"column:book_id;not null" json:"book_id"` ChapterName string `gorm:"column:chapter_name;comment:章节标题" json:"chapter_name"` // 章节标题 ChapterContent string `gorm:"column:chapter_content;comment:章节内容" json:"chapter_content"` // 章节内容 ChapterRank int32 `gorm:"column:chapter_rank;comment:章节排序" json:"chapter_rank"` // 章节排序 }
Chapter mapped from table <chapter>
type Comment ¶
type Comment struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` BookID int32 `gorm:"column:book_id;not null" json:"book_id"` ChapterID int32 `gorm:"column:chapter_id;not null" json:"chapter_id"` MemberID int32 `gorm:"column:member_id;not null" json:"member_id"` CommentDesc string `gorm:"column:comment_desc;comment:评论内容" json:"comment_desc"` // 评论内容 CommentLike int32 `gorm:"column:comment_like;not null;comment:评论点赞" json:"comment_like"` // 评论点赞 }
Comment mapped from table <comment>
type Feedback ¶
type Feedback struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` MemberID int32 `gorm:"column:member_id;comment:用户id" json:"member_id"` // 用户id Feed string `gorm:"column:feed;comment:反馈内容" json:"feed"` // 反馈内容 FeedDay string `gorm:"column:feed_day;comment:反馈时间" json:"feed_day"` // 反馈时间 Callback string `gorm:"column:callback;comment:回复内容" json:"callback"` // 回复内容 UserID int32 `gorm:"column:user_id;comment:回复后台id" json:"user_id"` // 回复后台id }
Feedback mapped from table <feedback>
type GoadminMenu ¶
type GoadminMenu struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ParentID int32 `gorm:"column:parent_id;not null" json:"parent_id"` Type int32 `gorm:"column:type;not null" json:"type"` Order int32 `gorm:"column:order;not null" json:"order"` Title string `gorm:"column:title;not null" json:"title"` Icon string `gorm:"column:icon;not null" json:"icon"` URI string `gorm:"column:uri;not null" json:"uri"` Header string `gorm:"column:header" json:"header"` PluginName string `gorm:"column:plugin_name;not null" json:"plugin_name"` UUID string `gorm:"column:uuid" json:"uuid"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` }
GoadminMenu mapped from table <goadmin_menu>
func (*GoadminMenu) TableName ¶
func (*GoadminMenu) TableName() string
TableName GoadminMenu's table name
type GoadminOperationLog ¶
type GoadminOperationLog struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` UserID int32 `gorm:"column:user_id;not null" json:"user_id"` Path string `gorm:"column:path;not null" json:"path"` Method string `gorm:"column:method;not null" json:"method"` IP string `gorm:"column:ip;not null" json:"ip"` Input string `gorm:"column:input;not null" json:"input"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` }
GoadminOperationLog mapped from table <goadmin_operation_log>
func (*GoadminOperationLog) TableName ¶
func (*GoadminOperationLog) TableName() string
TableName GoadminOperationLog's table name
type GoadminPermission ¶
type GoadminPermission struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"column:name;not null" json:"name"` Slug string `gorm:"column:slug;not null" json:"slug"` HTTPMethod string `gorm:"column:http_method" json:"http_method"` HTTPPath string `gorm:"column:http_path;not null" json:"http_path"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` }
GoadminPermission mapped from table <goadmin_permissions>
func (*GoadminPermission) TableName ¶
func (*GoadminPermission) TableName() string
TableName GoadminPermission's table name
type GoadminRole ¶
type GoadminRole struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"column:name;not null" json:"name"` Slug string `gorm:"column:slug;not null" json:"slug"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` }
GoadminRole mapped from table <goadmin_roles>
func (*GoadminRole) TableName ¶
func (*GoadminRole) TableName() string
TableName GoadminRole's table name
type GoadminRoleMenu ¶
type GoadminRoleMenu struct { RoleID int32 `gorm:"column:role_id;not null" json:"role_id"` MenuID int32 `gorm:"column:menu_id;not null" json:"menu_id"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` }
GoadminRoleMenu mapped from table <goadmin_role_menu>
func (*GoadminRoleMenu) TableName ¶
func (*GoadminRoleMenu) TableName() string
TableName GoadminRoleMenu's table name
type GoadminRolePermission ¶
type GoadminRolePermission struct { RoleID int32 `gorm:"column:role_id;primaryKey" json:"role_id"` PermissionID int32 `gorm:"column:permission_id;primaryKey" json:"permission_id"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` }
GoadminRolePermission mapped from table <goadmin_role_permissions>
func (*GoadminRolePermission) TableName ¶
func (*GoadminRolePermission) TableName() string
TableName GoadminRolePermission's table name
type GoadminRoleUser ¶
type GoadminRoleUser struct { RoleID int32 `gorm:"column:role_id;primaryKey" json:"role_id"` UserID int32 `gorm:"column:user_id;primaryKey" json:"user_id"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` }
GoadminRoleUser mapped from table <goadmin_role_users>
func (*GoadminRoleUser) TableName ¶
func (*GoadminRoleUser) TableName() string
TableName GoadminRoleUser's table name
type GoadminSession ¶
type GoadminSession struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Sid string `gorm:"column:sid;not null" json:"sid"` Values string `gorm:"column:values;not null" json:"values"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` }
GoadminSession mapped from table <goadmin_session>
func (*GoadminSession) TableName ¶
func (*GoadminSession) TableName() string
TableName GoadminSession's table name
type GoadminSite ¶
type GoadminSite struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Key string `gorm:"column:key" json:"key"` Value string `gorm:"column:value" json:"value"` Description string `gorm:"column:description" json:"description"` State int32 `gorm:"column:state;not null" json:"state"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` }
GoadminSite mapped from table <goadmin_site>
func (*GoadminSite) TableName ¶
func (*GoadminSite) TableName() string
TableName GoadminSite's table name
type GoadminUser ¶
type GoadminUser struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Username string `gorm:"column:username;not null" json:"username"` Password string `gorm:"column:password;not null" json:"password"` Name string `gorm:"column:name;not null" json:"name"` Avatar string `gorm:"column:avatar" json:"avatar"` RememberToken string `gorm:"column:remember_token" json:"remember_token"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` }
GoadminUser mapped from table <goadmin_users>
func (*GoadminUser) TableName ¶
func (*GoadminUser) TableName() string
TableName GoadminUser's table name
type GoadminUserPermission ¶
type GoadminUserPermission struct { UserID int32 `gorm:"column:user_id;primaryKey" json:"user_id"` PermissionID int32 `gorm:"column:permission_id;primaryKey" json:"permission_id"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` }
GoadminUserPermission mapped from table <goadmin_user_permissions>
func (*GoadminUserPermission) TableName ¶
func (*GoadminUserPermission) TableName() string
TableName GoadminUserPermission's table name
type Member ¶
type Member struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` MemberName string `gorm:"column:member_name;not null;comment:会员用户登录账户" json:"member_name"` // 会员用户登录账户 MemberPwd string `gorm:"column:member_pwd;not null;comment:登录密码" json:"member_pwd"` // 登录密码 MemberDesc string `gorm:"column:member_desc;comment:用户自我介绍" json:"member_desc"` // 用户自我介绍 ReadBooks int32 `gorm:"column:read_books;comment:阅读书籍数量" json:"read_books"` // 阅读书籍数量 RegisterDay string `gorm:"column:register_day;comment:注册时间" json:"register_day"` // 注册时间 }
Member mapped from table <member>
type MemberReader ¶
type MemberReader struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` MemberID int32 `gorm:"column:member_id;comment:用户id" json:"member_id"` // 用户id BookID int32 `gorm:"column:book_id;comment:书籍id" json:"book_id"` // 书籍id ChapterID int32 `gorm:"column:chapter_id;comment:章节id" json:"chapter_id"` // 章节id LastUpdate string `gorm:"column:last_update;comment:最后一次更新" json:"last_update"` // 最后一次更新 }
MemberReader mapped from table <member_reader>
func (*MemberReader) TableName ¶
func (*MemberReader) TableName() string
TableName MemberReader's table name
type MemberShelf ¶
type MemberShelf struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` BookID int32 `gorm:"column:book_id;not null" json:"book_id"` ChapterID int32 `gorm:"column:chapter_id;not null" json:"chapter_id"` ReadDay string `gorm:"column:read_day;comment:浏览时间" json:"read_day"` // 浏览时间 MemberID int32 `gorm:"column:member_id;not null" json:"member_id"` }
MemberShelf mapped from table <member_shelf>
func (*MemberShelf) TableName ¶
func (*MemberShelf) TableName() string
TableName MemberShelf's table name
Source Files
¶
- author.gen.go
- book.gen.go
- category.gen.go
- chapter.gen.go
- comment.gen.go
- feedback.gen.go
- goadmin_menu.gen.go
- goadmin_operation_log.gen.go
- goadmin_permissions.gen.go
- goadmin_role_menu.gen.go
- goadmin_role_permissions.gen.go
- goadmin_role_users.gen.go
- goadmin_roles.gen.go
- goadmin_session.gen.go
- goadmin_site.gen.go
- goadmin_user_permissions.gen.go
- goadmin_users.gen.go
- member.gen.go
- member_reader.gen.go
- member_shelf.gen.go