Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatRoom ¶
type ChatRoom struct { gorm.Model Title string `gorm:"not null;unique;"` Descriptions string UniqueCode string `gorm:"not null;unique;"` IconUrl string }
func (*ChatRoom) CheckRoomExist ¶
type PathInfo ¶
type PathInfo struct { gorm.Model TitleId uint `gorm:"not null;"` UniqueCode string `gorm:"not null;unique;"` RealPath string `gorm:"not null;"` FileName string `gorm:"not null;"` IsDir bool Size int64 Ext string Children []PathInfo }
* 文件路径保存格式,IsDir为true,Children会包含下级目录的内容
func (*PathInfo) ReadDirAndSave ¶
* 保存读目录的文件,可以指定文件扩展名 @param titleId uint 主题id @param dirPath string 目录路径,error处理文件路径 @param extList []string 保存指定文件扩展名称
func (*PathInfo) SaveWithCheckExt ¶
* 保存文件信息,可以指定文件扩展名 @param titleId uint 主题id @param extList []string 保存指定文件扩展名称
type Title ¶
type Title struct { gorm.Model ContentId uint Title string Descriptions string PathInfo *PathInfo `gorm:"-"` }
* 标题信息
type UserInfo ¶
type UserInfo struct { NickName string `json:"nickName"` // 昵称 Phone string `json:"phone"` // 手机号 RoleId uint `json:"roleId"` // 角色编码 Avatar string `json:"avatar"` //头像 Sex string `json:"sex"` //性别 Email string `json:"email"` //邮箱 Remark string `json:"remark"` //备注 Status int `json:"status"` UniqueCode string `gorm:"not null;unique;" json:"unique_code"` }
Click to show internal directories.
Click to hide internal directories.