Documentation ¶
Overview ¶
* @Author: drowningwhale 351231768@qq.com * @Date: 2023-09-30 14:05:09 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-04 11:52:08 * @FilePath: \bluebell\models\param.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Author: drowningwhale 351231768@qq.com * @Date: 2023-09-30 10:19:49 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-01 17:06:59 * @FilePath: \go-coursed:\Data\Gitee\bluebell\models\user.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Community ¶
type Community struct { BaseModel CommunityId int `json:"community_id" gorm:"index:idx_community_id;type:int(10);not null"` CommunityName string `json:"community_name" gorm:"index:idx_community_name;type:varchar(128);not null"` Introduction string `json:"introduction" gorm:"type:varchar(256);not null"` }
type CommunityDetail ¶
type CommunityDetail struct { BaseModel CommunityId int `json:"community_id" gorm:"index:idx_community_id;type:int(10);not null"` CommunityName string `json:"community_name" gorm:"index:idx_community_name;type:varchar(128);not null"` Introduction string `json:"introduction" gorm:"type:varchar(256);not null"` }
type CommunityList ¶
type ParamLogin ¶
type ParamPostList ¶
type ParamSignUp ¶
type Post ¶
type Post struct { BaseModel PostId int `json:"post_id" gorm:"index:idx_post_id;bigint(20);not null;commit '帖子id'"` Title string `json:"title" gorm:"varchar(128);not null;commit '标题'" binding:"required"` Content string `json:"content" gorm:"varchar(8192);not null;commit '内容'" binding:"required"` AuthorId int `json:"author_id" gorm:"index:idx_author_id;bigint(20);not null;commit '作者的用户id'"` CommunityId int `json:"community_id" gorm:"index:idx_community_id;bigint(20);not null;commit '所属社区'" binding:"required"` Status int `json:"status" gorm:"default:1;tinyint(4);not null;commit '帖子状态'"` }
type PostDetail ¶
type PostDetail2 ¶
type User ¶
type User struct { BaseModel UserId int `gorm:"index:idx_user_id;type:bigint(20);not null"` UserName string `gorm:"column:username;index:idx_username;type:varchar(64);not null"` PassWord string `gorm:"column:password;type:longtext;not null"` Email string `gorm:"type:varchar(64)"` Gender string `gorm:"type:tinyint(4);not null;default:0"` }
Directories ¶
Path | Synopsis |
---|---|
* @Author: drowningwhale 351231768@qq.com * @Date: 2023-10-01 16:30:07 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-01 16:34:39 * @FilePath: \bluebell\models\create\main.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Author: drowningwhale 351231768@qq.com * @Date: 2023-10-01 16:30:07 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-01 16:34:39 * @FilePath: \bluebell\models\create\main.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
* @Author: drowningwhale 351231768@qq.com * @Date: 2023-09-30 10:43:08 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-02 16:05:30 * @FilePath: \bluebell\models\main\main.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Author: drowningwhale 351231768@qq.com * @Date: 2023-09-30 10:43:08 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-02 16:05:30 * @FilePath: \bluebell\models\main\main.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |