Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginLog ¶
type LoginLog struct { Id int64 `orm:"id,primary" json:"id"` // 主键ID Username string `orm:"username" json:"username"` // 操作账号 Method string `orm:"method" json:"method"` // 操作方法 OperUrl string `orm:"oper_url" json:"operUrl"` // 请求URL OperIp string `orm:"oper_ip" json:"operIp"` // 主机地址 OperLocation string `orm:"oper_location" json:"operLocation"` // 操作地点 Os string `orm:"os" json:"os"` // 操作系统 RequestParam string `orm:"request_param" json:"requestParam"` // 请求参数 Browser string `orm:"browser" json:"browser"` // 浏览器 Result string `orm:"result" json:"result"` // 返回参数 Status uint `orm:"status" json:"status"` // 操作状态:0操作成功 1操作失败 Type uint `orm:"type" json:"type"` // 操作类型:1登录成功 2登录失败 3注销成功 2注销失败 UserAgent string `orm:"user_agent" json:"userAgent"` // 代理信息 Note string `orm:"note" json:"note"` // 备注 CreateUser int `orm:"create_user" json:"createUser"` // 添加人 CreateTime *gtime.Time `orm:"create_time" json:"createTime"` // 操作时间 UpdateUser int `orm:"update_user" json:"updateUser"` // 更新人 UpdateTime *gtime.Time `orm:"update_time" json:"updateTime"` // 更新时间 Mark int `orm:"mark" json:"mark"` // 有效标识 }
type Menu ¶
type Menu struct { Id int `orm:"id,primary" json:"id"` // 主键ID ParentId int `orm:"parent_id" json:"parentId"` // 父级ID Title string `orm:"title" json:"title"` // 菜单标题 Icon string `orm:"icon" json:"icon"` // 图标 Path string `orm:"path" json:"path"` // 菜单路径 Component string `orm:"component" json:"component"` // 菜单组件 Target string `orm:"target" json:"target"` // 打开方式:0组件 1内链 2外链 Permission string `orm:"permission" json:"permission"` // 权限标识 Type int `orm:"type" json:"type"` // 类型:0菜单 1节点 Method string `orm:"method" json:"method"` // 请求方式 Status int `orm:"status" json:"status"` // 状态:1正常 2禁用 Hide int `orm:"hide" json:"hide"` // 是否可见:1是 2否 Note string `orm:"note" json:"note"` // 备注 Sort int `orm:"sort" json:"sort"` // 显示顺序 CreateUser int `orm:"create_user" json:"createUser"` // 添加人 CreateTime *gtime.Time `orm:"create_time" json:"createTime"` // 创建时间 UpdateUser int `orm:"update_user" json:"updateUser"` // 更新人 UpdateTime *gtime.Time `orm:"update_time" json:"updateTime"` // 更新时间 Mark int `orm:"mark" json:"mark"` // 有效标识 }
type OperLog ¶
type OperLog struct { Id int64 `orm:"id,primary" json:"id"` // 主键ID Model string `orm:"model" json:"model"` // 操作模块 OperType int `orm:"oper_type" json:"operType"` // 操作类型:0其它 1新增 2修改 3删除 4查询 5设置状态 6导入 7导出 8设置权限 9设置密码 OperMethod string `orm:"oper_method" json:"operMethod"` // 操作方法 Username string `orm:"username" json:"username"` // 操作账号 OperName string `orm:"oper_name" json:"operName"` // 操作用户 OperUrl string `orm:"oper_url" json:"operUrl"` // 请求URL OperIp string `orm:"oper_ip" json:"operIp"` // 主机地址 OperLocation string `orm:"oper_location" json:"operLocation"` // 操作地点 RequestParam string `orm:"request_param" json:"requestParam"` // 请求参数 Result string `orm:"result" json:"result"` // 返回参数 Status int `orm:"status" json:"status"` // 日志状态:0正常日志 1错误日志 UserAgent string `orm:"user_agent" json:"userAgent"` // 代理信息 Note string `orm:"note" json:"note"` // 备注 CreateUser int `orm:"create_user" json:"createUser"` // 添加人 CreateTime *gtime.Time `orm:"create_time" json:"createTime"` // 操作时间 UpdateUser int `orm:"update_user" json:"updateUser"` // 更新人 UpdateTime *gtime.Time `orm:"update_time" json:"updateTime"` // 更新时间 Mark int `orm:"mark" json:"mark"` // 有效标识 }
type User ¶
type User struct { Id int `orm:"id,primary" json:"id"` // 主键ID Realname string `orm:"realname" json:"realname"` // 真实姓名 Nickname string `orm:"nickname" json:"nickname"` // 昵称 Gender int `orm:"gender" json:"gender"` // 性别:1男 2女 3保密 Avatar string `orm:"avatar" json:"avatar"` // 头像 Mobile string `orm:"mobile" json:"mobile"` // 手机号码 Email string `orm:"email" json:"email"` // 邮箱地址 Birthday *gtime.Time `orm:"birthday" json:"birthday"` // 出生日期 DeptId int `orm:"dept_id" json:"deptId"` // 部门ID LevelId int `orm:"level_id" json:"levelId"` // 职级ID PositionId int `orm:"position_id" json:"positionId"` // 岗位ID ProvinceCode string `orm:"province_code" json:"provinceCode"` // 省份编号 CityCode string `orm:"city_code" json:"cityCode"` // 市区编号 DistrictCode string `orm:"district_code" json:"districtCode"` // 区县编号 Address string `orm:"address" json:"address"` // 详细地址 CityName string `orm:"city_name" json:"cityName"` // 所属城市 Username string `orm:"username" json:"username"` // 登录用户名 Password string `orm:"password" json:"password"` // 登录密码 Salt string `orm:"salt" json:"salt"` // 盐加密 Intro string `orm:"intro" json:"intro"` // 个人简介 Status int `orm:"status" json:"status"` // 状态:1正常 2禁用 Note string `orm:"note" json:"note"` // 备注 Sort int `orm:"sort" json:"sort"` // 排序号 LoginNum int `orm:"login_num" json:"loginNum"` // 登录次数 LoginIp string `orm:"login_ip" json:"loginIp"` // 最近登录IP LoginTime *gtime.Time `orm:"login_time" json:"loginTime"` // 最近登录时间 CreateUser int `orm:"create_user" json:"createUser"` // 添加人 CreateTime *gtime.Time `orm:"create_time" json:"createTime"` // 创建时间 UpdateUser int `orm:"update_user" json:"updateUser"` // 更新人 UpdateTime *gtime.Time `orm:"update_time" json:"updateTime"` // 更新时间 Mark int `orm:"mark" json:"mark"` // 有效标识(1正常 0删除) }
Click to show internal directories.
Click to hide internal directories.