Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct { Id uint `json:"id" gorm:"column:id;primary_key;comment:管理员ID"` User string `json:"user" gorm:"column:user;comment:管理员用户名"` Password string `json:"password" gorm:"column:password;comment:管理员密码"` PhotoId uint `json:"photoId" gorm:"column:photo_id;comment:头像ID"` Name string `json:"name" gorm:"column:name;comment:真实姓名"` Card string `json:"card" gorm:"column:card;comment:身份证号码"` Sex uint8 `json:"sex" gorm:"column:sex;default:3;comment:性别(1为女,2为男,3为保密)"` Age uint8 `json:"age" gorm:"column:age;default:0;comment:年龄"` Region string `json:"region" gorm:"column:region;comment:地区"` Phone string `json:"phone" gorm:"column:phone;comment:手机号码"` Email string `json:"email" gorm:"column:email;comment:邮箱"` Introduction string `json:"introduction" gorm:"column:introduction;comment:简介"` State uint8 `json:"state" gorm:"column:state;default:2;comment:状态(1已停用,2已启用)"` Sort uint `json:"sort" gorm:"column:sort;default:0;comment:排序"` LoginOutIp string `json:"loginOutIp" gorm:"column:login_out_ip;comment:上一次登录IP地址"` LoginTotal uint `json:"loginTotal" gorm:"column:login_total;default:0;comment:登录总数"` LoginOutAt time.Time `json:"loginOutAt" gorm:"column:login_out_at;default:1970-01-01 00:00:00;comment:上一次登录时间"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;comment:创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deleted_at;index;comment:删除时间"` }
Admin 管理员结构体
type AdminLog ¶
type AdminLog struct { Id uint `json:"id" gorm:"column:id;primary_key;comment:管理员日志ID"` Type uint8 `json:"type" gorm:"column:type;comment:日志类型(1登录日志,2操作日志)"` AdminId uint `json:"adminId" gorm:"column:admin_id;comment:管理员ID"` Ip string `json:"ip" gorm:"column:ip;comment:IP地址"` Path string `json:"path" gorm:"column:path;comment:请求路由"` Method string `json:"method" gorm:"column:method;comment:请求方法"` Remark string `json:"remark" gorm:"column:remark;comment:备注"` Code uint16 `json:"code" gorm:"column:code;comment:响应状态码"` State uint16 `json:"state" gorm:"column:state;comment:状态(1失败,2成功)"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;comment:创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deleted_at;index;comment:删除时间"` }
AdminLog 管理员日志结构体
type AdminRole ¶
type AdminRole struct { Id uint `json:"id" gorm:"column:id;primary_key;comment:主键ID"` AdminId uint `json:"adminId" gorm:"column:admin_id;comment:管理员ID"` RoleKey string `json:"roleKey" gorm:"column:role_key;comment:角色KEY"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;comment:创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deleted_at;index;comment:删除时间"` }
AdminRole 管理员角色中间表模型结构体
type Dictionary ¶
type Dictionary struct { Id uint `json:"id" gorm:"column:id;primary_key;comment:数据字典ID"` Name string `json:"name" gorm:"column:name;comment:数据字典名称"` Code string `json:"code" gorm:"column:code;comment:数据字典KEY"` Remark string `json:"remark" gorm:"column:remark;comment:备注"` State uint8 `json:"state" gorm:"column:state;default:2;comment:状态(1禁用,2表示启用)"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;type:time;not null;comment:创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;type:time;not null;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deleted_at;type:time;index;comment:删除时间"` }
Dictionary 数据字典表结构体
type DictionaryDetail ¶
type DictionaryDetail struct { Id uint `json:"id" gorm:"column:id;primary_key;comment:明细值ID"` DictionaryId uint `json:"dictionaryId" gorm:"column:dictionary_id;comment:数据字典ID"` Name string `json:"name" gorm:"column:name;comment:明细值名称"` Code string `json:"code" gorm:"column:code;comment:明细值KEY"` Value string `json:"value" gorm:"column:value;comment:明细值"` Remark string `json:"remark" gorm:"column:remark;comment:备注"` Sort uint `json:"sort" gorm:"column:sort;default:0;comment:排序"` State uint8 `json:"state" gorm:"column:state;default:2;comment:状态(1禁用,2表示启用)"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;type:time;not null;comment:创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;type:time;not null;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deleted_at;type:time;index;comment:删除时间"` }
DictionaryDetail 数据字典表结构体
type File ¶
type File struct { Id uint `json:"id" gorm:"column:id;primary_key;comment:文件ID"` Drive string `` /* 129-byte string literal not displayed */ CreatorId uint `json:"creatorId" gorm:"column:creator_id;comment:创建者ID"` FileName string `json:"fileName" gorm:"column:file_name;comment:文件名"` FileType string `json:"fileType" gorm:"column:file_type;comment:文件类型"` FileExt string `json:"fileExt" gorm:"column:file_ext;comment:文件扩展名"` FilePath string `json:"filePath" gorm:"column:file_path;comment:文件路径"` Hash string `json:"hash" gorm:"column:hash;comment:文件Hash值"` FileSize int64 `json:"fileSize" gorm:"column:file_size;comment:文件大小(单位byte)"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;comment:创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deleted_at;index;comment:删除时间"` }
File 文件表结构体
type FileChunk ¶
type FileChunk struct { Id uint `json:"id" gorm:"column:id;primary_key;comment:分片文件ID"` FileId uint `json:"fileId" gorm:"column:file_id;comment:文件ID"` ChunkNumber uint `json:"chunkNumber" gorm:"column:chunk_number;comment:文件ID"` ChunkSize uint64 `json:"chunkSize" gorm:"column:chunk_size;comment:分片大小(单位byte)"` ChunkPath string `json:"chunkPath" gorm:"column:chunk_path;comment:分片路径"` Hash string `json:"hash" gorm:"column:hash;comment:分片Hash值"` State uint8 `json:"state" gorm:"column:hash;comment:上传状态(1未上传,2已上传)"` Progress uint8 `json:"progress" gorm:"column:progress;comment:上传进度"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;comment:创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deleted_at;index;comment:删除时间"` }
FileChunk 文件分片表结构体
type Menu ¶
type Menu struct { Id uint `json:"id" gorm:"column:id;primary_key;comment:菜单ID"` Pid uint `json:"pid" gorm:"column:pid;comment:菜单PID"` Name string `json:"name" gorm:"column:name;comment:菜单名称"` Path string `json:"path" gorm:"column:path;comment:路由PATH"` Method string `json:"method" gorm:"column:method;comment:PATH的请求方法"` Sort uint `json:"sort" gorm:"column:sort;default:0;comment:排序"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;comment:创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deleted_at;index;comment:删除时间"` }
Menu 菜单表结构体
type Role ¶
type Role struct { Id uint `json:"id" gorm:"column:id;primary_key;comment:角色ID"` Name string `json:"name" gorm:"column:name;comment:角色名称"` Role string `json:"role" gorm:"column:role;comment:角色KEY"` State uint8 `json:"state" gorm:"column:state;default:2;comment:状态(1已停用,2已启用)"` Sort uint `json:"sort" gorm:"column:sort;default:0;comment:排序"` Introduction string `json:"introduction" gorm:"column:introduction;comment:简介"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;comment:创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deleted_at;index;comment:删除时间"` }
Role 角色表结构体
type System ¶
type System struct { Id uint `json:"id" gorm:"column:id;primary_key;comment:系统设置ID"` Name string `json:"name" gorm:"column:name;comment:网站名称"` Title string `json:"title" gorm:"column:title;comment:网站标题"` Description string `json:"description" gorm:"column:description;comment:网站描述"` Keywords string `json:"keywords" gorm:"column:keywords;comment:网站关键词"` LogoFileId uint `json:"logo_file_id" gorm:"column:logo_file_id;comment:LOGO文件ID"` IcoFileId uint `json:"ico_file_id" gorm:"column:ico_file_id;comment:ICO文件ID"` Record string `json:"record" gorm:"column:record;comment:备案号"` Copyright string `json:"copyright" gorm:"column:copyright;comment:底部版权声明"` IsWebsite uint8 `json:"is_website" gorm:"column:is_website;comment:网站开关"` Email string `json:"email" gorm:"column:email;comment:邮箱"` Telephone string `json:"telephone" gorm:"column:telephone;comment:电话"` Address string `json:"address" gorm:"column:address;comment:地址"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;comment:创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deleted_at;index;comment:删除时间"` }
System 系统设置结构体
type Users ¶
type Users struct { Id uint `json:"id" gorm:"column:id;primary_key;comment:用户ID"` User string `json:"user" gorm:"column:user;comment:用户名"` Password string `json:"password" gorm:"column:password;comment:用户密码"` PhotoId uint `json:"photoId" gorm:"column:photo_id;comment:用户头像ID"` Nickname string `json:"nickname" gorm:"column:nickname;comment:昵称"` Name string `json:"name" gorm:"column:name;comment:真实姓名"` Card string `json:"card" gorm:"column:card;comment:身份证号码"` Sex uint8 `json:"sex" gorm:"column:sex;default:3;comment:性别(1为女,2为男,3为保密)"` Age uint8 `json:"age" gorm:"column:age;default:0;comment:年龄"` Region string `json:"region" gorm:"column:region;comment:地区"` Phone string `json:"phone" gorm:"column:phone;comment:手机号码"` Email string `json:"email" gorm:"column:email;comment:邮箱"` Introduction string `json:"introduction" gorm:"column:introduction;comment:简介"` State uint8 `json:"state" gorm:"column:state;default:2;comment:状态(1已停用,2已启用)"` LoginOutIp string `json:"loginOutIp" gorm:"column:login_out_ip;comment:上一次登录IP地址"` LoginTotal uint `json:"loginTotal" gorm:"column:login_total;default:0;comment:登录总数"` LoginOutAt string `json:"loginOutAt" gorm:"column:login_out_at;comment:上一次登录时间"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;comment:创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"column:deleted_at;index;comment:删除时间"` }
Users 用户表结构体
Click to show internal directories.
Click to hide internal directories.