Documentation
¶
Index ¶
- Constants
- Variables
- type Attach
- type Domain
- type Error
- type ExportInfo
- type Fail
- type Login
- type PageList
- type QrAuth
- type QrToken
- type QueryForm
- type Scheduling
- type Success
- type SysAppFun
- type SysArea
- type SysAreaTemplate
- type SysAreaTemplateDetail
- type SysAttachment
- func (r *SysAttachment) Marshal() ([]byte, error)
- func (m *SysAttachment) Persist(db *xorm.Session, ids ...string) (int64, error)
- func (m *SysAttachment) PersistFile(db *xorm.Session, cb func([]SysAttachment) error, ids ...string) (int64, error)
- func (m *SysAttachment) Remove(db *xorm.Session, ids ...string) (int64, error)
- func (m *SysAttachment) RemoveFile(db *xorm.Session, cb func([]SysAttachment) error, ids ...string) (int64, error)
- func (m *SysAttachment) TableName() string
- type SysClient
- type SysComment
- type SysCommentReply
- type SysDataPermission
- type SysDataPermissionDetail
- type SysDomain
- type SysEmailToken
- type SysMenu
- type SysNotification
- type SysOptionset
- type SysOrg
- type SysPermission
- type SysRole
- type SysRoleAppFun
- type SysRoleDataPermission
- type SysRoleMenu
- type SysRolePermission
- type SysRoleUser
- type SysSchedule
- type SysScheduleHistory
- type SysSetting
- type SysTable
- type SysTableColUser
- type SysTableColumn
- type SysTag
- type SysTagGroup
- type SysTracker
- type SysUser
- type SysUserBinding
- type SysUserTag
- type SysUserTemplate
- type SysUserTemplateDetail
- type TrackerInfo
- type TreeNode
- type Worker
Constants ¶
const ( WorkerStatusInitial = iota + 100 WorkerStatusProccessing WorkerStatusInterrupt WorkerStatusFinish )
Variables ¶
var AdminRole = SysRole{ ID: null.IntFrom(1), Name: null.StringFrom("管理员"), Code: null.StringFrom("admin"), Status: null.IntFrom(1), Creater: null.IntFrom(1), CreateTime: null.TimeFromNow(), Updater: null.IntFrom(1), UpdateTime: null.TimeFromNow(), IsDelete: null.IntFrom(0), }
AdminRole default admin
var AdminRoleUser = SysRoleUser{ UserId: null.IntFrom(1), RoleId: AdminRole.ID, Creater: null.IntFrom(1), CreateTime: null.TimeFromNow(), Updater: null.IntFrom(1), UpdateTime: null.TimeFromNow(), IsDelete: null.IntFrom(0), }
AdminRoleUser default admin
var DefaultAdmin = SysUser{ ID: null.IntFrom(1), Password: null.StringFrom("admin"), Name: null.StringFrom("admin"), Nickname: null.StringFrom("admin"), Avatar: null.StringFrom("http://pic.616pic.com/ys_bnew_img/00/06/27/TWk2P5YJ5k.jpg"), Status: null.IntFrom(1), Domain: null.StringFrom("localhost"), OrgId: null.IntFrom(1), TempId: null.IntFrom(1), Creater: null.IntFrom(1), CreateTime: null.TimeFromNow(), Updater: null.IntFrom(1), UpdateTime: null.TimeFromNow(), IsDelete: null.IntFrom(0), }
DefaultAdmin default admin
var DefaultClient = SysClient{ ID: null.IntFrom(1), Client: null.StringFrom("Y76U9344RABF4"), Name: null.StringFrom("default"), AppName: null.StringFrom(viper.GetString("app.name")), Secret: null.StringFrom("8UYO6FVB8UYO6FVB"), Domain: null.StringFrom("localhost"), Creater: null.IntFrom(1), CreateTime: null.TimeFromNow(), Updater: null.IntFrom(1), UpdateTime: null.TimeFromNow(), IsDelete: null.IntFrom(0), }
DefaultClient default client
var DefaultUserTemplate = SysUserTemplate{ ID: null.IntFrom(1), Name: null.StringFrom("默认模板"), Type: null.IntFrom(0), Default: null.IntFrom(1), Creater: null.IntFrom(1), CreateTime: null.TimeFromNow(), Updater: null.IntFrom(1), UpdateTime: null.TimeFromNow(), IsDelete: null.IntFrom(0), }
DefaultUserTemplate default
Functions ¶
This section is empty.
Types ¶
type Attach ¶
type Attach struct {
// 文件ID
ID int64 `json:"id" xml:"id"`
// 文件名
Name string `json:"name" xml:"name"`
// 访问路径
Hash string `json:"hash" xml:"hash"`
// 访问路径
URL string `json:"url" xml:"url"`
}
Attach defined 附件结构
func UnmarshalAttach ¶ added in v1.2.16
type Domain ¶
type Domain struct {
// 名字
Name null.String `json:"name" xml:"name"`
// 全名
FullName null.String `json:"full_name" xml:"full_name"`
// 负责人
ContactName null.String `json:"contact_name" xml:"contact_name"`
// 负责人邮箱
ContactEmail null.String `json:"contact_email" xml:"contact_email"`
// 负责人电话
ContactMobile null.String `json:"contact_mobile" xml:"contact_mobile"`
// 登录地址
LoginUrl null.String `json:"login_url" xml:"login_url"`
// 请求地址
ApiUrl null.String `json:"api_url" xml:"api_url"`
// 静态地址
StaticUrl null.String `json:"static_url" xml:"static_url"`
// 样式
Theme null.String `json:"theme" xml:"theme"`
// 认证模式 0:集成登录 1:单点登录
AuthMode null.Int `json:"auth_mode" xml:"auth_mode"`
}
Domain defined 域
func UnmarshalDomain ¶ added in v1.2.16
type Error ¶
type Error struct {
// 编码
Code int `json:"code" xml:"code"`
// 消息
Msg string `json:"msg" xml:"msg"`
}
Error defined TODO
type ExportInfo ¶
type ExportInfo struct {
// 文件ID
FileId string `json:"file_id" xml:"file_id"`
// 文件名称
FileName string `json:"file_name" xml:"file_name"`
// 文件路径
FilePath string `json:"file_path" xml:"file_path"`
}
ExportInfo defined 导出信息
func UnmarshalExportInfo ¶ added in v1.2.16
func UnmarshalExportInfo(data []byte) (ExportInfo, error)
func (*ExportInfo) Marshal ¶ added in v1.2.16
func (r *ExportInfo) Marshal() ([]byte, error)
type Fail ¶
type Fail struct {
// 错误编码
Code int `json:"code" xml:"code" example:"500"`
// 错误信息
Msg string `json:"msg,omitempty" xml:"msg" example:"status bad request"`
}
Fail defined 失败返回
func UnmarshalFail ¶ added in v1.2.16
type Login ¶
type Login struct {
// 名字
Name null.String `json:"name" xml:"name"`
// 密码
Password null.String `json:"password" xml:"password"`
// 域
Domain null.String `json:"domain" xml:"domain"`
}
Login defined 登录表单
func UnmarshalLogin ¶ added in v1.2.16
type PageList ¶
type PageList struct {
// 页码
Page int `json:"page" xml:"page"`
// 页数
Size int `json:"size" xml:"size"`
// 数据
Data []map[string]interface{} `json:"data" xml:"data"`
// 总页数
TotalPages int `json:"totalpages" xml:"total_pages"`
// 总条目
TotalRecords int `json:"totalrecords" xml:"total_records"`
}
PageList defined 分页结果
func UnmarshalPageList ¶ added in v1.2.16
type QrAuth ¶ added in v1.2.11
type QrAuth struct {
// 回调地址
RedirectUri null.String `json:"redirect_uri" xml:"redirect_uri"`
// 域
Domain null.String `json:"domain" xml:"domain"`
// 用户ID
UserId null.Int `json:"user_id" xml:"user_id"`
}
QrAuth defined 扫码认证
func UnmarshalQrAuth ¶ added in v1.2.16
type QrToken ¶ added in v1.2.11
type QrToken struct {
// 回调地址
RedirectUri null.String `json:"redirect_uri" xml:"redirect_uri"`
// tk地址
TokenUri null.String `json:"token_uri" xml:"token_uri"`
// 令牌
Code null.String `json:"code" xml:"code"`
// 域
Domain null.String `json:"domain" xml:"domain"`
// 用户ID
UserId null.Int `json:"user_id" xml:"user_id"`
}
QrToken defined 扫码tk
func UnmarshalQrToken ¶ added in v1.2.16
type Scheduling ¶
type Scheduling struct {
// 编码
Code int `json:"code" xml:"code"`
// 名称
Name string `json:"name" xml:"name"`
}
Scheduling defined 调度
func UnmarshalScheduling ¶ added in v1.2.16
func UnmarshalScheduling(data []byte) (Scheduling, error)
func (*Scheduling) Marshal ¶ added in v1.2.16
func (r *Scheduling) Marshal() ([]byte, error)
type Success ¶
type Success struct {
// 编码
Code int `json:"code" xml:"code" example:"200"`
// 返回数据
Data interface{} `json:"data,omitempty" xml:"data"`
}
Success defined 成功返回
func UnmarshalSuccess ¶ added in v1.2.16
type SysAppFun ¶
type SysAppFun struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名称
Name null.String `xorm:"varchar(36) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// Code defined 编码
Code null.String `xorm:"varchar(36) notnull comment('编码') 'code'" json:"code" form:"code" xml:"code"`
// Parent defined 父菜单ID,一级菜单为null
Parent null.String `xorm:"varchar(36) comment('父菜单ID,一级菜单为null') 'parent'" json:"parent" form:"parent" xml:"parent"`
// Inheritance defined 继承关系
Inheritance null.String `xorm:"varchar(500) comment('继承关系') 'inheritance'" json:"inheritance" form:"inheritance" xml:"inheritance"`
// URL defined 菜单URL,类型:1.普通页面(如用户管理, /sys/user) 2.嵌套完整外部页面,以http(s)开头的链接 3.嵌套服务器页面,使用iframe:前缀+目标URL(如SQL监控, iframe:/druid/login.html, iframe:前缀会替换成服务器地址)
URL null.String `` /* 343-byte string literal not displayed */
// Perms defined 授权(多个用逗号分隔,如:sys:user:add,sys:user:edit)
Perms null.String `` /* 141-byte string literal not displayed */
// Type defined 类型 0:目录 1:菜单 2:按钮
Type null.Int `xorm:"notnull comment('类型 0:目录 1:菜单 2:按钮') 'type'" json:"type" form:"type" xml:"type"`
// Image defined 图片
Image null.String `xorm:"varchar(200) comment('图片') 'image'" json:"image" form:"image" xml:"image"`
// Icon defined 菜单图标
Icon null.String `xorm:"varchar(50) comment('菜单图标') 'icon'" json:"icon" form:"icon" xml:"icon"`
// Order defined 排序
Order null.Int `xorm:"notnull comment('排序') 'order'" json:"order" form:"order" xml:"order"`
// Hidden defined 是否隐藏
Hidden null.Int `xorm:"notnull comment('是否隐藏') 'hidden'" json:"hidden" form:"hidden" xml:"hidden"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysAppFun defined APP功能
func UnmarshalSysAppFun ¶ added in v1.2.16
type SysArea ¶
type SysArea struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 区域名称
Name null.String `xorm:"varchar(200) notnull comment('区域名称') 'name'" json:"name" form:"name" xml:"name"`
// Parent defined 父节点
Parent null.String `xorm:"varchar(36) comment('父节点') 'parent'" json:"parent" form:"parent" xml:"parent"`
// Inheritance defined 继承关系
Inheritance null.String `xorm:"varchar(500) comment('继承关系') 'inheritance'" json:"inheritance" form:"inheritance" xml:"inheritance"`
// OrgId defined 组织ID
OrgId null.String `xorm:"varchar(36) comment('组织ID') 'org_id'" json:"org_id" form:"org_id" xml:"org_id"`
// TempId defined 模板ID
TempId null.String `xorm:"varchar(36) comment('模板ID') 'temp_id'" json:"temp_id" form:"temp_id" xml:"temp_id"`
// TempValue defined 模板内容
TempValue null.String `xorm:"text comment('模板内容') 'temp_value'" json:"temp_value" form:"temp_value" xml:"temp_value"`
// Manager defined 负责人
Manager null.String `xorm:"varchar(36) comment('负责人') 'manager'" json:"manager" form:"manager" xml:"manager"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysArea defined 区域管理
func UnmarshalSysArea ¶ added in v1.2.16
type SysAreaTemplate ¶
type SysAreaTemplate struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名称
Name null.String `xorm:"varchar(200) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// Type defined 模板类型 0:固定模板 1:动态模板 2:自定义模板
Type null.Int `xorm:"comment('模板类型 0:固定模板 1:动态模板 2:自定义模板') 'type'" json:"type" form:"type" xml:"type"`
// Default defined 是否默认 1:是 0:否
Default null.Int `xorm:"comment('是否默认 1:是 0:否') 'default'" json:"default" form:"default" xml:"default"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysAreaTemplate defined 区域信息模板
func UnmarshalSysAreaTemplate ¶ added in v1.2.16
func UnmarshalSysAreaTemplate(data []byte) (SysAreaTemplate, error)
func (*SysAreaTemplate) Marshal ¶ added in v1.2.16
func (r *SysAreaTemplate) Marshal() ([]byte, error)
func (*SysAreaTemplate) TableName ¶
func (m *SysAreaTemplate) TableName() string
TableName table name of defined SysAreaTemplate
type SysAreaTemplateDetail ¶
type SysAreaTemplateDetail struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 区域名称
Name null.String `xorm:"varchar(200) notnull comment('区域名称') 'name'" json:"name" form:"name" xml:"name"`
// TempId defined 区域信息模板id
TempId null.Int `xorm:"bigint(20) comment('区域信息模板id') 'temp_id'" json:"temp_id" form:"temp_id" xml:"temp_id"`
// Value defined 值
Value null.String `xorm:"varchar(36) comment('值') 'value'" json:"value" form:"value" xml:"value"`
// Type defined 类型 0:数值项 1:单选项 2:文字项 3:列表项
Type null.Int `xorm:"comment('类型 0:数值项 1:单选项 2:文字项 3:列表项') 'type'" json:"type" form:"type" xml:"type"`
// Priority defined 优先级
Priority null.Int `xorm:"comment('优先级') 'priority'" json:"priority" form:"priority" xml:"priority"`
// Content defined 内容
Content null.String `xorm:"text comment('内容') 'content'" json:"content" form:"content" xml:"content"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysAreaTemplateDetail defined 区域信息模板明细
func UnmarshalSysAreaTemplateDetail ¶ added in v1.2.16
func UnmarshalSysAreaTemplateDetail(data []byte) (SysAreaTemplateDetail, error)
func (*SysAreaTemplateDetail) Marshal ¶ added in v1.2.16
func (r *SysAreaTemplateDetail) Marshal() ([]byte, error)
func (*SysAreaTemplateDetail) TableName ¶
func (m *SysAreaTemplateDetail) TableName() string
TableName table name of defined SysAreaTemplateDetail
type SysAttachment ¶
type SysAttachment struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名称
Name null.String `xorm:"varchar(200) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// Icon defined 图标
Icon null.String `xorm:"varchar(300) comment('图标') 'icon'" json:"icon" form:"icon" xml:"icon"`
// UUID defined uuid
UUID null.String `xorm:"varchar(36) notnull comment('uuid') 'uuid'" json:"uuid" form:"uuid" xml:"uuid"`
// Size defined 大小
Size null.Int `xorm:"comment('大小') 'size'" json:"size" form:"size" xml:"size"`
// Type defined 类型
Type null.String `xorm:"varchar(36) comment('类型') 'type'" json:"type" form:"type" xml:"type"`
// Ext defined ext
Ext null.String `xorm:"varchar(36) comment('ext') 'ext'" json:"ext" form:"ext" xml:"ext"`
// Hash defined hash
Hash null.String `xorm:"varchar(500) comment('hash') 'hash'" json:"hash" form:"hash" xml:"hash"`
// Path defined path
Path null.String `xorm:"varchar(300) comment('path') 'path'" json:"path" form:"path" xml:"path"`
// URL defined url
URL null.String `xorm:"varchar(300) comment('url') 'url'" json:"url" form:"url" xml:"url"`
// Durable defined 是否持久化 0:否 1:是
Durable null.Int `xorm:"notnull comment('是否持久化 0:否 1:是') 'durable'" json:"durable" form:"durable" xml:"durable"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysAttachment defined 附件表
func UnmarshalSysAttachment ¶ added in v1.2.16
func UnmarshalSysAttachment(data []byte) (SysAttachment, error)
func (*SysAttachment) Marshal ¶ added in v1.2.16
func (r *SysAttachment) Marshal() ([]byte, error)
func (*SysAttachment) PersistFile ¶
func (m *SysAttachment) PersistFile(db *xorm.Session, cb func([]SysAttachment) error, ids ...string) (int64, error)
PersistFile table name of defined SysAttachment
func (*SysAttachment) RemoveFile ¶
func (m *SysAttachment) RemoveFile(db *xorm.Session, cb func([]SysAttachment) error, ids ...string) (int64, error)
RemoveFile table name of defined SysAttachment
func (*SysAttachment) TableName ¶
func (m *SysAttachment) TableName() string
TableName table name of defined SysAttachment
type SysClient ¶
type SysClient struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名称
Name null.String `xorm:"varchar(36) comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// AppName defined 应用归属
AppName null.String `xorm:"varchar(36) notnull comment('应用归属') 'app_name'" json:"app_name" form:"app_name" xml:"app_name"`
// Domain defined 域
Domain null.String `xorm:"varchar(36) notnull comment('域') 'domain'" json:"domain" form:"domain" xml:"domain"`
// Client defined 应用
Client null.String `xorm:"varchar(36) comment('应用') 'client'" json:"client" form:"client" xml:"client"`
// Secret defined 密钥
Secret null.String `xorm:"varchar(36) comment('密钥') 'secret'" json:"secret" form:"secret" xml:"secret"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysClient defined OA授权应用
func UnmarshalSysClient ¶ added in v1.2.16
func (*SysClient) InitSysData ¶
InitSysData defined inital system data
type SysComment ¶
type SysComment struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// TopicId defined 主题ID
TopicId null.Int `xorm:"bigint(20) notnull comment('主题ID') 'topic_id'" json:"topic_id" form:"topic_id" xml:"topic_id"`
// TopicType defined 主题类型
TopicType null.String `xorm:"varchar(36) notnull comment('主题类型') 'topic_type'" json:"topic_type" form:"topic_type" xml:"topic_type"`
// Content defined 评论内容
Content null.String `xorm:"varchar(36) comment('评论内容') 'content'" json:"content" form:"content" xml:"content"`
// FromUid defined 评论用户id
FromUid null.Int `xorm:"bigint(20) notnull comment('评论用户id') 'from_uid'" json:"from_uid" form:"from_uid" xml:"from_uid"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysComment defined 评论表
func UnmarshalSysComment ¶ added in v1.2.16
func UnmarshalSysComment(data []byte) (SysComment, error)
func (*SysComment) Marshal ¶ added in v1.2.16
func (r *SysComment) Marshal() ([]byte, error)
func (*SysComment) TableName ¶
func (m *SysComment) TableName() string
TableName table name of defined SysComment
type SysCommentReply ¶
type SysCommentReply struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// CommentId defined 评论id
CommentId null.Int `xorm:"bigint(20) notnull comment('评论id') 'comment_id'" json:"comment_id" form:"comment_id" xml:"comment_id"`
// ReplyId defined 回复目标id
ReplyId null.Int `xorm:"bigint(20) notnull comment('回复目标id') 'reply_id'" json:"reply_id" form:"reply_id" xml:"reply_id"`
// ReplyType defined 回复类型
ReplyType null.Int `xorm:"notnull comment('回复类型') 'reply_type'" json:"reply_type" form:"reply_type" xml:"reply_type"`
// Content defined 回复内容
Content null.String `xorm:"varchar(36) comment('回复内容') 'content'" json:"content" form:"content" xml:"content"`
// FromUid defined 评论用户id
FromUid null.Int `xorm:"varchar(36) notnull comment('评论用户id') 'from_uid'" json:"from_uid" form:"from_uid" xml:"from_uid"`
// ToUid defined 目标用户id
ToUid null.Int `xorm:"varchar(36) notnull comment('目标用户id') 'to_uid'" json:"to_uid" form:"to_uid" xml:"to_uid"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysCommentReply defined 评论回复表
func UnmarshalSysCommentReply ¶ added in v1.2.16
func UnmarshalSysCommentReply(data []byte) (SysCommentReply, error)
func (*SysCommentReply) Marshal ¶ added in v1.2.16
func (r *SysCommentReply) Marshal() ([]byte, error)
func (*SysCommentReply) TableName ¶
func (m *SysCommentReply) TableName() string
TableName table name of defined SysCommentReply
type SysDataPermission ¶
type SysDataPermission struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名称
Name null.String `xorm:"varchar(36) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// Code defined 编码
Code null.String `xorm:"varchar(36) comment('编码') 'code'" json:"code" form:"code" xml:"code"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysDataPermission defined 数据权限表
func UnmarshalSysDataPermission ¶ added in v1.2.16
func UnmarshalSysDataPermission(data []byte) (SysDataPermission, error)
func (*SysDataPermission) Marshal ¶ added in v1.2.16
func (r *SysDataPermission) Marshal() ([]byte, error)
func (*SysDataPermission) ParseRule ¶
func (m *SysDataPermission) ParseRule(roleRules []SysDataPermissionDetail) interface{}
ParseRule defined parse rule
func (*SysDataPermission) TableName ¶
func (m *SysDataPermission) TableName() string
TableName table name of defined SysDataPermission
type SysDataPermissionDetail ¶
type SysDataPermissionDetail struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// DataPermissionId defined 数据权限表ID
DataPermissionId null.String `` /* 145-byte string literal not displayed */
// RoleId defined 角色ID
RoleId null.Int `xorm:"bigint(20) comment('角色ID') 'role_id'" json:"role_id" form:"role_id" xml:"role_id"`
// Rule defined 权限规则
Rule null.String `xorm:"varchar(1000) notnull comment('权限规则') 'rule'" json:"rule" form:"rule" xml:"rule"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysDataPermissionDetail defined 数据权限表明细
func UnmarshalSysDataPermissionDetail ¶ added in v1.2.16
func UnmarshalSysDataPermissionDetail(data []byte) (SysDataPermissionDetail, error)
func (*SysDataPermissionDetail) Marshal ¶ added in v1.2.16
func (r *SysDataPermissionDetail) Marshal() ([]byte, error)
func (*SysDataPermissionDetail) TableName ¶
func (m *SysDataPermissionDetail) TableName() string
TableName table name of defined SysDataPermissionDetail
type SysDomain ¶
type SysDomain struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名字
Name null.String `xorm:"varchar(36) notnull comment('名字') 'name'" json:"name" form:"name" xml:"name"`
// AppName defined 应用归属
AppName null.String `xorm:"varchar(36) notnull comment('应用归属') 'app_name'" json:"app_name" form:"app_name" xml:"app_name"`
// Domain defined 域
Domain null.String `xorm:"varchar(36) notnull comment('域') 'domain'" json:"domain" form:"domain" xml:"domain"`
// DomainUrl defined 域绑定
DomainUrl null.String `xorm:"varchar(36) notnull comment('域绑定') 'domain_url'" json:"domain_url" form:"domain_url" xml:"domain_url"`
// FullName defined 全名
FullName null.String `xorm:"varchar(36) comment('全名') 'full_name'" json:"full_name" form:"full_name" xml:"full_name"`
// ContactName defined 负责人
ContactName null.String `xorm:"varchar(36) comment('负责人') 'contact_name'" json:"contact_name" form:"contact_name" xml:"contact_name"`
// ContactEmail defined 负责人邮箱
ContactEmail null.String `xorm:"varchar(50) comment('负责人邮箱') 'contact_email'" json:"contact_email" form:"contact_email" xml:"contact_email"`
// ContactMobile defined 负责人电话
ContactMobile null.String `` /* 128-byte string literal not displayed */
// DataSource defined 数据库链接串
DataSource null.String `` /* 127-byte string literal not displayed */
// DriverName defined 驱动名称
DriverName null.String `xorm:"varchar(50) notnull comment('驱动名称') 'driver_name'" json:"driver_name" form:"driver_name" xml:"driver_name"`
// LoginUrl defined 登录地址
LoginUrl null.String `xorm:"varchar(200) comment('登录地址') 'login_url'" json:"login_url" form:"login_url" xml:"login_url"`
// ApiUrl defined 请求地址
ApiUrl null.String `xorm:"varchar(200) comment('请求地址') 'api_url'" json:"api_url" form:"api_url" xml:"api_url"`
// StaticUrl defined 静态地址
StaticUrl null.String `xorm:"varchar(200) comment('静态地址') 'static_url'" json:"static_url" form:"static_url" xml:"static_url"`
// Theme defined 样式
Theme null.String `xorm:"varchar(50) comment('样式') 'theme'" json:"theme" form:"theme" xml:"theme"`
// Type defined 域类型
Type null.Int `xorm:"notnull comment('域类型') 'type'" json:"type" form:"type" xml:"type"`
// Status defined 状态 0:禁用 1:正常
Status null.Int `xorm:"notnull comment('状态 0:禁用 1:正常') 'status'" json:"status" form:"status" xml:"status"`
// AuthMode defined 认证模式 0:集成登录 1:单点登录
AuthMode null.Int `` /* 134-byte string literal not displayed */
// IsSync defined 是否同步了数据库标志
IsSync null.Int `xorm:"notnull comment('是否同步了数据库标志') 'is_sync'" json:"is_sync" form:"is_sync" xml:"is_sync"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysDomain defined 域
func UnmarshalSysDomain ¶ added in v1.2.16
func (*SysDomain) CreateDataBase ¶
CreateDataBase defined
func (*SysDomain) InitSysData ¶
InitSysData defined inital system data
type SysEmailToken ¶
type SysEmailToken struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Token defined 令牌
Token null.String `xorm:"varchar(36) notnull comment('令牌') 'token'" json:"token" form:"token" xml:"token"`
// Email defined 邮箱
Email null.String `xorm:"varchar(36) notnull comment('邮箱') 'email'" json:"email" form:"email" xml:"email"`
// UserId defined 用户ID
UserId null.String `xorm:"varchar(36) notnull comment('用户ID') 'user_id'" json:"user_id" form:"user_id" xml:"user_id"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysEmailToken defined 邮箱认证令牌
func UnmarshalSysEmailToken ¶ added in v1.2.16
func UnmarshalSysEmailToken(data []byte) (SysEmailToken, error)
func (*SysEmailToken) Marshal ¶ added in v1.2.16
func (r *SysEmailToken) Marshal() ([]byte, error)
func (*SysEmailToken) TableName ¶
func (m *SysEmailToken) TableName() string
TableName table name of defined SysEmailToken
type SysMenu ¶
type SysMenu struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名称
Name null.String `xorm:"varchar(36) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// Code defined 编码
Code null.String `xorm:"varchar(36) notnull comment('编码') 'code'" json:"code" form:"code" xml:"code"`
// Parent defined 父菜单ID,一级菜单为null
Parent null.Int `xorm:"bigint(20) comment('父菜单ID,一级菜单为null') 'parent'" json:"parent" form:"parent" xml:"parent"`
// Inheritance defined 继承关系
Inheritance null.String `xorm:"varchar(500) comment('继承关系') 'inheritance'" json:"inheritance" form:"inheritance" xml:"inheritance"`
// URL defined 菜单URL,类型:1.普通页面(如用户管理, /sys/user) 2.嵌套完整外部页面,以http(s)开头的链接 3.嵌套服务器页面,使用iframe:前缀+目标URL(如SQL监控, iframe:/druid/login.html, iframe:前缀会替换成服务器地址)
URL null.String `` /* 343-byte string literal not displayed */
// Component defined 菜单组件
Component null.String `xorm:"varchar(100) comment('菜单组件') 'component'" json:"component" form:"component" xml:"component"`
// Perms defined 授权(多个用逗号分隔,如:sys:user:add,sys:user:edit)
Perms null.String `` /* 141-byte string literal not displayed */
// Type defined 类型 0:目录 1:菜单 2:按钮
Type null.Int `xorm:"notnull comment('类型 0:目录 1:菜单 2:按钮') 'type'" json:"type" form:"type" xml:"type"`
// Icon defined 菜单图标
Icon null.String `xorm:"varchar(50) comment('菜单图标') 'icon'" json:"icon" form:"icon" xml:"icon"`
// Order defined 排序
Order null.Int `xorm:"notnull comment('排序') 'order'" json:"order" form:"order" xml:"order"`
// Hidden defined 是否隐藏
Hidden null.Int `xorm:"notnull comment('是否隐藏') 'hidden'" json:"hidden" form:"hidden" xml:"hidden"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysMenu defined 系统菜单
func UnmarshalSysMenu ¶ added in v1.2.16
func (*SysMenu) InitSysData ¶
InitSysData defined inital system data
type SysNotification ¶
type SysNotification struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// TopicId defined 主题ID
TopicId null.String `xorm:"varchar(36) notnull comment('主题ID') 'topic_id'" json:"topic_id" form:"topic_id" xml:"topic_id"`
// TopicType defined 主题类型
TopicType null.String `xorm:"varchar(36) notnull comment('主题类型') 'topic_type'" json:"topic_type" form:"topic_type" xml:"topic_type"`
// ToUid defined 接受者
ToUid null.String `xorm:"varchar(36) comment('接受者') 'to_uid'" json:"to_uid" form:"to_uid" xml:"to_uid"`
// FromUid defined 发送者
FromUid null.String `xorm:"varchar(36) comment('发送者') 'from_uid'" json:"from_uid" form:"from_uid" xml:"from_uid"`
// IsRead defined 是否已读
IsRead null.Int `xorm:"notnull comment('是否已读') 'is_read'" json:"is_read" form:"is_read" xml:"is_read"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysNotification defined 站内消息
func UnmarshalSysNotification ¶ added in v1.2.16
func UnmarshalSysNotification(data []byte) (SysNotification, error)
func (*SysNotification) Marshal ¶ added in v1.2.16
func (r *SysNotification) Marshal() ([]byte, error)
func (*SysNotification) TableName ¶
func (m *SysNotification) TableName() string
TableName table name of defined SysNotification
type SysOptionset ¶
type SysOptionset struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名称
Name null.String `xorm:"varchar(200) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// Code defined 编码
Code null.String `xorm:"varchar(200) notnull comment('编码') 'code'" json:"code" form:"code" xml:"code"`
// Value defined 值
Value null.String `xorm:"varchar(500) comment('值') 'value'" json:"value" form:"value" xml:"value"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysOptionset defined 数据字典
func UnmarshalSysOptionset ¶ added in v1.2.16
func UnmarshalSysOptionset(data []byte) (SysOptionset, error)
func (*SysOptionset) InitSysData ¶
func (m *SysOptionset) InitSysData(s *xorm.Session) error
InitSysData defined
func (*SysOptionset) Marshal ¶ added in v1.2.16
func (r *SysOptionset) Marshal() ([]byte, error)
func (*SysOptionset) TableName ¶
func (m *SysOptionset) TableName() string
TableName table name of defined SysOptionset
func (*SysOptionset) Values ¶
func (m *SysOptionset) Values() []struct { Text string `json:"text"` Value interface{} `json:"value"` }
Values defined
type SysOrg ¶
type SysOrg struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Parent defined 上级组织
Parent null.String `xorm:"varchar(36) comment('上级组织') 'parent'" json:"parent" form:"parent" xml:"parent"`
// Inheritance defined 继承关系
Inheritance null.String `xorm:"varchar(500) comment('继承关系') 'inheritance'" json:"inheritance" form:"inheritance" xml:"inheritance"`
// Name defined 名称
Name null.String `xorm:"varchar(36) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// FullName defined 全名
FullName null.String `xorm:"varchar(36) comment('全名') 'full_name'" json:"full_name" form:"full_name" xml:"full_name"`
// Leader defined 领导人
Leader null.String `xorm:"varchar(36) comment('领导人') 'leader'" json:"leader" form:"leader" xml:"leader"`
// Code defined 编码
Code null.String `xorm:"varchar(36) comment('编码') 'code'" json:"code" form:"code" xml:"code"`
// Type defined 组织类型
Type null.Int `xorm:"comment('组织类型') 'type'" json:"type" form:"type" xml:"type"`
// Order defined 排序
Order null.Int `xorm:"notnull comment('排序') 'order'" json:"order" form:"order" xml:"order"`
// Status defined 状态 0:禁用 1:正常
Status null.Int `xorm:"notnull comment('状态 0:禁用 1:正常') 'status'" json:"status" form:"status" xml:"status"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysOrg defined 组织架构
func UnmarshalSysOrg ¶ added in v1.2.16
func (*SysOrg) InitSysData ¶
InitSysData defined
type SysPermission ¶
type SysPermission struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名称
Name null.String `xorm:"varchar(36) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// Code defined 编码
Code null.String `xorm:"varchar(36) notnull comment('编码') 'code'" json:"code" form:"code" xml:"code"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysPermission defined 权限
func UnmarshalSysPermission ¶ added in v1.2.16
func UnmarshalSysPermission(data []byte) (SysPermission, error)
func (*SysPermission) Marshal ¶ added in v1.2.16
func (r *SysPermission) Marshal() ([]byte, error)
func (*SysPermission) TableName ¶
func (m *SysPermission) TableName() string
TableName table name of defined SysPermission
type SysRole ¶
type SysRole struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名称
Name null.String `xorm:"varchar(200) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// Code defined 编码
Code null.String `xorm:"varchar(36) notnull comment('编码') 'code'" json:"code" form:"code" xml:"code"`
// Status defined 状态 0:禁用 1:正常
Status null.Int `xorm:"notnull comment('状态 0:禁用 1:正常') 'status'" json:"status" form:"status" xml:"status"`
// AppIndex defined 角色app首页url
AppIndex null.String `xorm:"varchar(500) comment('角色app首页url') 'app_index'" json:"app_index" form:"app_index" xml:"app_index"`
// AdminIndex defined 角色进入后台首页组件
AdminIndex null.String `` /* 131-byte string literal not displayed */
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysRole defined 角色
func UnmarshalSysRole ¶ added in v1.2.16
func (*SysRole) InitSysData ¶
InitSysData defined inital system data
type SysRoleAppFun ¶
type SysRoleAppFun struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// RoleId defined 角色ID
RoleId null.String `xorm:"varchar(36) notnull comment('角色ID') 'role_id'" json:"role_id" form:"role_id" xml:"role_id"`
// AppFunId defined APP功能ID
AppFunId null.String `xorm:"varchar(36) notnull comment('APP功能ID') 'app_fun_id'" json:"app_fun_id" form:"app_fun_id" xml:"app_fun_id"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysRoleAppFun defined 角色对应APP功能
func UnmarshalSysRoleAppFun ¶ added in v1.2.16
func UnmarshalSysRoleAppFun(data []byte) (SysRoleAppFun, error)
func (*SysRoleAppFun) Marshal ¶ added in v1.2.16
func (r *SysRoleAppFun) Marshal() ([]byte, error)
func (*SysRoleAppFun) TableName ¶
func (m *SysRoleAppFun) TableName() string
TableName table name of defined SysRoleAppFun
type SysRoleDataPermission ¶
type SysRoleDataPermission struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// RoleId defined 角色ID
RoleId null.Int `xorm:"bigint(20) notnull comment('角色ID') 'role_id'" json:"role_id" form:"role_id" xml:"role_id"`
// DataPermissionId defined 数据权限ID
DataPermissionId null.Int `` /* 149-byte string literal not displayed */
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysRoleDataPermission defined 角色对应数据权限
func UnmarshalSysRoleDataPermission ¶ added in v1.2.16
func UnmarshalSysRoleDataPermission(data []byte) (SysRoleDataPermission, error)
func (*SysRoleDataPermission) Marshal ¶ added in v1.2.16
func (r *SysRoleDataPermission) Marshal() ([]byte, error)
func (*SysRoleDataPermission) TableName ¶
func (m *SysRoleDataPermission) TableName() string
TableName table name of defined SysRoleDataPermission
type SysRoleMenu ¶
type SysRoleMenu struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// RoleId defined 用户ID
RoleId null.Int `xorm:"bigint(20) notnull comment('用户ID') 'role_id'" json:"role_id" form:"role_id" xml:"role_id"`
// MenuId defined 菜单ID
MenuId null.Int `xorm:"bigint(20) notnull comment('菜单ID') 'menu_id'" json:"menu_id" form:"menu_id" xml:"menu_id"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysRoleMenu defined 角色与菜单对应
func UnmarshalSysRoleMenu ¶ added in v1.2.16
func UnmarshalSysRoleMenu(data []byte) (SysRoleMenu, error)
func (*SysRoleMenu) Marshal ¶ added in v1.2.16
func (r *SysRoleMenu) Marshal() ([]byte, error)
func (*SysRoleMenu) TableName ¶
func (m *SysRoleMenu) TableName() string
TableName table name of defined SysRoleMenu
type SysRolePermission ¶
type SysRolePermission struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// RoleId defined 角色
RoleId null.Int `xorm:"bigint(20) notnull comment('角色') 'role_id'" json:"role_id" form:"role_id" xml:"role_id"`
// PermissionId defined 权限
PermissionId null.Int `xorm:"bigint(20) notnull comment('权限') 'permission_id'" json:"permission_id" form:"permission_id" xml:"permission_id"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysRolePermission defined 权限关联
func UnmarshalSysRolePermission ¶ added in v1.2.16
func UnmarshalSysRolePermission(data []byte) (SysRolePermission, error)
func (*SysRolePermission) Marshal ¶ added in v1.2.16
func (r *SysRolePermission) Marshal() ([]byte, error)
func (*SysRolePermission) TableName ¶
func (m *SysRolePermission) TableName() string
TableName table name of defined SysRolePermission
type SysRoleUser ¶
type SysRoleUser struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// UserId defined 用户ID
UserId null.Int `xorm:"bigint(20) notnull comment('用户ID') 'user_id'" json:"user_id" form:"user_id" xml:"user_id"`
// RoleId defined 角色ID
RoleId null.Int `xorm:"bigint(20) notnull comment('角色ID') 'role_id'" json:"role_id" form:"role_id" xml:"role_id"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysRoleUser defined 用户与角色
func UnmarshalSysRoleUser ¶ added in v1.2.16
func UnmarshalSysRoleUser(data []byte) (SysRoleUser, error)
func (*SysRoleUser) InitSysData ¶
func (m *SysRoleUser) InitSysData(s *xorm.Session) error
InitSysData defined inital system data
func (*SysRoleUser) Marshal ¶ added in v1.2.16
func (r *SysRoleUser) Marshal() ([]byte, error)
func (*SysRoleUser) TableName ¶
func (m *SysRoleUser) TableName() string
TableName table name of defined SysRoleUser
type SysSchedule ¶
type SysSchedule struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysSchedule defined 调度
func UnmarshalSysSchedule ¶ added in v1.2.16
func UnmarshalSysSchedule(data []byte) (SysSchedule, error)
func (*SysSchedule) Marshal ¶ added in v1.2.16
func (r *SysSchedule) Marshal() ([]byte, error)
func (*SysSchedule) TableName ¶
func (m *SysSchedule) TableName() string
TableName table name of defined SysSchedule
type SysScheduleHistory ¶
type SysScheduleHistory struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysScheduleHistory defined 调度历史
func UnmarshalSysScheduleHistory ¶ added in v1.2.16
func UnmarshalSysScheduleHistory(data []byte) (SysScheduleHistory, error)
func (*SysScheduleHistory) Marshal ¶ added in v1.2.16
func (r *SysScheduleHistory) Marshal() ([]byte, error)
func (*SysScheduleHistory) TableName ¶
func (m *SysScheduleHistory) TableName() string
TableName table name of defined SysScheduleHistory
type SysSetting ¶
type SysSetting struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Key defined 键
Key null.String `xorm:"varchar(200) notnull comment('键') 'key'" json:"key" form:"key" xml:"key"`
// Value defined 值
Value null.String `xorm:"varchar(500) notnull comment('值') 'value'" json:"value" form:"value" xml:"value"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysSetting defined 系统配置
func UnmarshalSysSetting ¶ added in v1.2.16
func UnmarshalSysSetting(data []byte) (SysSetting, error)
func (*SysSetting) Marshal ¶ added in v1.2.16
func (r *SysSetting) Marshal() ([]byte, error)
func (*SysSetting) TableName ¶
func (m *SysSetting) TableName() string
TableName table name of defined SysSetting
type SysTable ¶
type SysTable struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 表名
Name null.String `xorm:"varchar(200) notnull comment('表名') 'name'" json:"name" form:"name" xml:"name"`
// Desc defined 描述
Desc null.String `xorm:"varchar(300) notnull comment('描述') 'desc'" json:"desc" form:"desc" xml:"desc"`
// Charset defined 字符集
Charset null.String `xorm:"varchar(100) notnull comment('字符集') 'charset'" json:"charset" form:"charset" xml:"charset"`
// AutoIncrement defined 自增
AutoIncrement null.String `` /* 127-byte string literal not displayed */
// StoreEngine defined 存储引擎
StoreEngine null.String `xorm:"varchar(100) notnull comment('存储引擎') 'store_engine'" json:"store_engine" form:"store_engine" xml:"store_engine"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysTable defined 系统数据库
func UnmarshalSysTable ¶ added in v1.2.16
type SysTableColUser ¶
type SysTableColUser struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Code defined 编码
Code null.String `xorm:"varchar(36) notnull comment('编码') 'code'" json:"code" form:"code" xml:"code"`
// Value defined 内容
Value null.String `xorm:"text notnull comment('内容') 'value'" json:"value" form:"value" xml:"value"`
// UserId defined 用户ID
UserId null.Int `xorm:"bigint(20) notnull comment('用户ID') 'user_id'" json:"user_id" form:"user_id" xml:"user_id"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysTableColUser defined 用户字段
func UnmarshalSysTableColUser ¶ added in v1.2.16
func UnmarshalSysTableColUser(data []byte) (SysTableColUser, error)
func (*SysTableColUser) Marshal ¶ added in v1.2.16
func (r *SysTableColUser) Marshal() ([]byte, error)
func (*SysTableColUser) TableName ¶
func (m *SysTableColUser) TableName() string
TableName table name of defined SysTableColUser
type SysTableColumn ¶
type SysTableColumn struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// TbId defined 表ID
TbId null.Int `xorm:"bigint(20) notnull comment('表ID') 'tb_id'" json:"tb_id" form:"tb_id" xml:"tb_id"`
// Name defined 表名
Name null.String `xorm:"varchar(150) notnull comment('表名') 'name'" json:"name" form:"name" xml:"name"`
// Desc defined 描述
Desc null.String `xorm:"varchar(300) notnull comment('描述') 'desc'" json:"desc" form:"desc" xml:"desc"`
// IsPrimaryKey defined 是否主键
IsPrimaryKey null.Bool `xorm:"notnull comment('是否主键') 'is_primary_key'" json:"is_primary_key" form:"is_primary_key" xml:"is_primary_key"`
// Type defined 类型
Type null.String `xorm:"varchar(100) notnull comment('类型') 'type'" json:"type" form:"type" xml:"type"`
// Nullable defined 是否为空
Nullable null.Bool `xorm:"notnull comment('是否为空') 'nullable'" json:"nullable" form:"nullable" xml:"nullable"`
// Default defined 默认值
Default null.String `xorm:"varchar(100) notnull comment('默认值') 'default'" json:"default" form:"default" xml:"default"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysTableColumn defined 系统字段
func UnmarshalSysTableColumn ¶ added in v1.2.16
func UnmarshalSysTableColumn(data []byte) (SysTableColumn, error)
func (*SysTableColumn) ColumnInfo ¶
func (m *SysTableColumn) ColumnInfo(info *schemas.Column) SysTableColumn
ColumnInfo defined inital system data
func (*SysTableColumn) Marshal ¶ added in v1.2.16
func (r *SysTableColumn) Marshal() ([]byte, error)
func (*SysTableColumn) TableName ¶
func (m *SysTableColumn) TableName() string
TableName table name of defined SysTableColumn
func (*SysTableColumn) TruncateTable ¶
func (m *SysTableColumn) TruncateTable(session *xorm.Session) error
TruncateTable defined
type SysTag ¶
type SysTag struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名称
Name null.String `xorm:"varchar(36) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// GroupId defined 分组ID
GroupId null.Int `xorm:"bigint(20) notnull comment('分组ID') 'group_id'" json:"group_id" form:"group_id" xml:"group_id"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysTag defined 标签表
func UnmarshalSysTag ¶ added in v1.2.16
type SysTagGroup ¶
type SysTagGroup struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 名称
Name null.String `xorm:"varchar(36) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// Code defined 编码
Code null.String `xorm:"varchar(36) notnull comment('编码') 'code'" json:"code" form:"code" xml:"code"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysTagGroup defined 标签组表
func UnmarshalSysTagGroup ¶ added in v1.2.16
func UnmarshalSysTagGroup(data []byte) (SysTagGroup, error)
func (*SysTagGroup) Marshal ¶ added in v1.2.16
func (r *SysTagGroup) Marshal() ([]byte, error)
func (*SysTagGroup) TableName ¶
func (m *SysTagGroup) TableName() string
TableName table name of defined SysTagGroup
type SysTracker ¶
type SysTracker struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Token defined 令牌
Token null.String `xorm:"varchar(72) comment('令牌') 'token'" json:"token" form:"token" xml:"token"`
// UserId defined 用户ID
UserId null.Int `xorm:"bigint(20) notnull comment('用户ID') 'user_id'" json:"user_id" form:"user_id" xml:"user_id"`
// StatusCode defined 状态
StatusCode null.Int `xorm:"int comment('状态') 'status_code'" json:"status_code" form:"status_code" xml:"status_code"`
// Latency defined 反应时间
Latency null.Float `xorm:"float comment('反应时间') 'latency'" json:"latency" form:"latency" xml:"latency"`
// ClientIp defined 客户端id
ClientIp null.String `xorm:"varchar(36) comment('客户端id') 'client_ip'" json:"client_ip" form:"client_ip" xml:"client_ip"`
// Method defined 请求方法
Method null.String `xorm:"varchar(36) comment('请求方法') 'method'" json:"method" form:"method" xml:"method"`
// Path defined 请求路径
Path null.String `xorm:"varchar(1024) comment('请求路径') 'path'" json:"path" form:"path" xml:"path"`
// Header defined 请求头
Header []byte `xorm:"blob comment('请求头') 'header'" json:"header" form:"header" xml:"header"`
// ReqBody defined 请求体
ReqBody []byte `xorm:"mediumblob comment('请求体') 'req_body'" json:"req_body" form:"req_body" xml:"req_body"`
// ResBody defined 返回体
ResBody []byte `xorm:"mediumblob comment('返回体') 'res_body'" json:"res_body" form:"res_body" xml:"res_body"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysTracker defined 日志跟踪
func UnmarshalSysTracker ¶ added in v1.2.16
func UnmarshalSysTracker(data []byte) (SysTracker, error)
func (*SysTracker) Marshal ¶ added in v1.2.16
func (r *SysTracker) Marshal() ([]byte, error)
func (*SysTracker) TableName ¶
func (m *SysTracker) TableName() string
TableName table name of defined SysTracker
type SysUser ¶
type SysUser struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Password defined 密码
Password null.String `xorm:"varchar(150) notnull comment('密码') 'password'" json:"password" form:"password" xml:"password"`
// Salt defined 盐噪点
Salt null.String `xorm:"varchar(36) notnull comment('盐噪点') 'salt'" json:"salt" form:"salt" xml:"salt"`
// Name defined 名字
Name null.String `xorm:"varchar(36) notnull comment('名字') 'name'" json:"name" form:"name" xml:"name"`
// FullName defined 全名
FullName null.String `xorm:"varchar(36) comment('全名') 'full_name'" json:"full_name" form:"full_name" xml:"full_name"`
// Nickname defined 昵称
Nickname null.String `xorm:"varchar(36) comment('昵称') 'nickname'" json:"nickname" form:"nickname" xml:"nickname"`
// Intro defined 简介
Intro null.String `xorm:"text comment('简介') 'intro'" json:"intro" form:"intro" xml:"intro"`
// Address defined 地址
Address null.String `xorm:"varchar(150) comment('地址') 'address'" json:"address" form:"address" xml:"address"`
// Mobile defined 电话
Mobile null.String `xorm:"varchar(50) comment('电话') 'mobile'" json:"mobile" form:"mobile" xml:"mobile"`
// Email defined 邮箱
Email null.String `xorm:"varchar(50) comment('邮箱') 'email'" json:"email" form:"email" xml:"email"`
// IsEmailConfirmed defined 是否邮件确认(0:尚未,1:确认)
IsEmailConfirmed null.Int `` /* 157-byte string literal not displayed */
// OrgId defined 组织ID
OrgId null.Int `xorm:"bigint(20) notnull comment('组织ID') 'org_id'" json:"org_id" form:"org_id" xml:"org_id"`
// Gender defined 性别(0:女,1:男)
Gender null.Int `xorm:"comment('性别(0:女,1:男)') 'gender'" json:"gender" form:"gender" xml:"gender"`
// Type defined 用户类型
Type null.Int `xorm:"comment('用户类型') 'type'" json:"type" form:"type" xml:"type"`
// Status defined 状态(0:禁用,1:正常)
Status null.Int `xorm:"notnull comment('状态(0:禁用,1:正常)') 'status'" json:"status" form:"status" xml:"status"`
// Avatar defined 头像
Avatar null.String `xorm:"varchar(255) comment('头像') 'avatar'" json:"avatar" form:"avatar" xml:"avatar"`
// MarkedAllAsReadAt defined 标记所有已读时间
MarkedAllAsReadAt null.Time `` /* 161-byte string literal not displayed */
// ReadNotificationsAt defined 标记读取消息时间
ReadNotificationsAt null.Time `` /* 161-byte string literal not displayed */
// TempId defined 模板ID
TempId null.Int `xorm:"bigint(20) notnull comment('模板ID') 'temp_id'" json:"temp_id" form:"temp_id" xml:"temp_id"`
// TempValue defined 模板值
TempValue null.String `xorm:"text comment('模板值') 'temp_value'" json:"temp_value" form:"temp_value" xml:"temp_value"`
// Domain defined 域
Domain null.String `xorm:"varchar(50) notnull comment('域') 'domain'" json:"domain" form:"domain" xml:"domain"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysUser defined 用户
func UnmarshalSysUser ¶ added in v1.2.16
func (*SysUser) InitSysData ¶
InitSysData defined inital system data
func (*SysUser) SetPassword ¶
SetPassword Method to set salt and hash the password for a user
func (*SysUser) ValidPassword ¶
ValidPassword Method to check the entered password is correct or not
type SysUserBinding ¶
type SysUserBinding struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// UserId defined 用户ID
UserId null.Int `xorm:"bigint(20) notnull comment('用户ID') 'user_id'" json:"user_id" form:"user_id" xml:"user_id"`
// OpenId defined open_id
OpenId null.String `xorm:"varchar(36) notnull comment('open_id') 'open_id'" json:"open_id" form:"open_id" xml:"open_id"`
// UnionId defined union_id
UnionId null.String `xorm:"varchar(36) comment('union_id') 'union_id'" json:"union_id" form:"union_id" xml:"union_id"`
// Type defined 类型(0: 微信 1:叮叮)
Type null.Int `xorm:"comment('类型(0: 微信 1:叮叮)') 'type'" json:"type" form:"type" xml:"type"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysUserBinding defined 帐号绑定
func UnmarshalSysUserBinding ¶ added in v1.2.16
func UnmarshalSysUserBinding(data []byte) (SysUserBinding, error)
func (*SysUserBinding) Marshal ¶ added in v1.2.16
func (r *SysUserBinding) Marshal() ([]byte, error)
func (*SysUserBinding) TableName ¶
func (m *SysUserBinding) TableName() string
TableName table name of defined SysUserBinding
type SysUserTag ¶
type SysUserTag struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// UserId defined 用户ID
UserId null.String `xorm:"varchar(36) notnull comment('用户ID') 'user_id'" json:"user_id" form:"user_id" xml:"user_id"`
// TagId defined 标签ID
TagId null.String `xorm:"varchar(36) notnull comment('标签ID') 'tag_id'" json:"tag_id" form:"tag_id" xml:"tag_id"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysUserTag defined 用户标签表
func UnmarshalSysUserTag ¶ added in v1.2.16
func UnmarshalSysUserTag(data []byte) (SysUserTag, error)
func (*SysUserTag) Marshal ¶ added in v1.2.16
func (r *SysUserTag) Marshal() ([]byte, error)
func (*SysUserTag) TableName ¶
func (m *SysUserTag) TableName() string
TableName table name of defined SysUserTag
type SysUserTemplate ¶
type SysUserTemplate struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// Name defined 模板名称
Name null.String `xorm:"varchar(200) notnull comment('模板名称') 'name'" json:"name" form:"name" xml:"name"`
// Type defined 模板类型
Type null.Int `xorm:"comment('模板类型') 'type'" json:"type" form:"type" xml:"type"`
// Default defined 是否默认 1:是 0:否
Default null.Int `xorm:"comment('是否默认 1:是 0:否') 'default'" json:"default" form:"default" xml:"default"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysUserTemplate defined 用户信息扩展模板
func UnmarshalSysUserTemplate ¶ added in v1.2.16
func UnmarshalSysUserTemplate(data []byte) (SysUserTemplate, error)
func (*SysUserTemplate) InitSysData ¶
func (m *SysUserTemplate) InitSysData(s *xorm.Session) error
InitSysData defined inital system data
func (*SysUserTemplate) Marshal ¶ added in v1.2.16
func (r *SysUserTemplate) Marshal() ([]byte, error)
func (*SysUserTemplate) TableName ¶
func (m *SysUserTemplate) TableName() string
TableName table name of defined SysUserTemplate
type SysUserTemplateDetail ¶
type SysUserTemplateDetail struct {
// ID defined 主键
ID null.Int `xorm:"bigint(20) notnull autoincr unique pk comment('主键') 'id'" json:"id" form:"id" xml:"id"`
// TempId defined 模板ID
TempId null.Int `xorm:"bigint(20) notnull comment('模板ID') 'temp_id'" json:"temp_id" form:"temp_id" xml:"temp_id"`
// Name defined 名称
Name null.String `xorm:"varchar(200) notnull comment('名称') 'name'" json:"name" form:"name" xml:"name"`
// Value defined 值
Value null.String `xorm:"varchar(200) notnull comment('值') 'value'" json:"value" form:"value" xml:"value"`
// Type defined 模板类型 0:数值项 1:单选项 2:文字项 3:列表项
Type null.Int `xorm:"comment('模板类型 0:数值项 1:单选项 2:文字项 3:列表项') 'type'" json:"type" form:"type" xml:"type"`
// Content defined 名称
Content null.String `xorm:"varchar(200) notnull comment('名称') 'content'" json:"content" form:"content" xml:"content"`
// Priority defined 优先级
Priority null.Int `xorm:"comment('优先级') 'priority'" json:"priority" form:"priority" xml:"priority"`
// Creater defined 创建人
Creater null.Int `xorm:"bigint(20) notnull comment('创建人') 'creater'" json:"creater" form:"creater" xml:"creater"`
// CreateTime defined 创建时间
CreateTime null.Time `xorm:"datetime notnull comment('创建时间') 'create_time'" json:"create_time" form:"create_time" xml:"create_time"`
// Updater defined 最后更新人
Updater null.Int `xorm:"bigint(20) notnull comment('最后更新人') 'updater'" json:"updater" form:"updater" xml:"updater"`
// UpdateTime defined 最后更新时间
UpdateTime null.Time `xorm:"datetime notnull comment('最后更新时间') 'update_time'" json:"update_time" form:"update_time" xml:"update_time"`
// IsDelete defined 删除标记
IsDelete null.Int `xorm:"notnull comment('删除标记') 'is_delete'" json:"is_delete" form:"is_delete" xml:"is_delete"`
// Remark defined 备注
Remark null.String `xorm:"varchar(200) comment('备注') 'remark'" json:"remark" form:"remark" xml:"remark"`
}
SysUserTemplateDetail defined 用户信息扩展模板明细
func UnmarshalSysUserTemplateDetail ¶ added in v1.2.16
func UnmarshalSysUserTemplateDetail(data []byte) (SysUserTemplateDetail, error)
func (*SysUserTemplateDetail) InitSysData ¶
func (m *SysUserTemplateDetail) InitSysData(s *xorm.Session) error
InitSysData defined inital system data
func (*SysUserTemplateDetail) Marshal ¶ added in v1.2.16
func (r *SysUserTemplateDetail) Marshal() ([]byte, error)
func (*SysUserTemplateDetail) TableName ¶
func (m *SysUserTemplateDetail) TableName() string
TableName table name of defined SysUserTemplateDetail
type TrackerInfo ¶
type TrackerInfo struct {
*SysTracker
// 域名
Domain null.String `json:"domain" xml:"domain"`
}
TrackerInfo defined 日志信息
func UnmarshalTrackerInfo ¶ added in v1.2.16
func UnmarshalTrackerInfo(data []byte) (TrackerInfo, error)
func (*TrackerInfo) Marshal ¶ added in v1.2.16
func (r *TrackerInfo) Marshal() ([]byte, error)
type TreeNode ¶
type TreeNode struct {
// 标识
ID string `json:"id" xml:"id"`
// 标题
Name string `json:"name" xml:"name"`
// 上级
Parent string `json:"parent" xml:"parent"`
// 集合
Nodes []*TreeNode `json:"nodes" xml:"nodes"`
// 内容
Tag interface{} `json:"tag" xml:"tag"`
}
TreeNode defined 树形结构
func UnmarshalTreeNode ¶ added in v1.2.16
type Worker ¶
type Worker struct {
// 名称
Name string `json:"name,omitempty" xml:"name"`
// 编码
Code string `json:"code,omitempty" xml:"code"`
// 状态
Status int `json:"status,omitempty" xml:"status"`
// 表单
Payload interface{} `json:"payload,omitempty" xml:"payload"`
// 文件
Files []string `json:"files,omitempty" xml:"files"`
// 结果
Result interface{} `json:"result,omitempty" xml:"result"`
// 错误信息
Error interface{} `json:"error,omitempty" xml:"error"`
// 用户
User SysUser `json:"user,omitempty" xml:"user"`
}
Worker defined work表单
func UnmarshalWorker ¶ added in v1.2.16
Source Files
¶
- attach.auto.go
- domain.auto.go
- error.go
- export_info.auto.go
- fail.auto.go
- login.auto.go
- page_list.auto.go
- page_list.helper.go
- qform.go
- qr_auth.auto.go
- qr_token.auto.go
- scheduling.auto.go
- success.auto.go
- sys_app_fun.auto.go
- sys_area.auto.go
- sys_area_template.auto.go
- sys_area_template_detail.auto.go
- sys_attachment.auto.go
- sys_attachment.helper.go
- sys_client.auto.go
- sys_client.helper.go
- sys_comment.auto.go
- sys_comment_reply.auto.go
- sys_data_permission.auto.go
- sys_data_permission.helper.go
- sys_data_permission_detail.auto.go
- sys_domain.auto.go
- sys_domain.helper.go
- sys_email_token.auto.go
- sys_menu.auto.go
- sys_menu.helper.go
- sys_notification.auto.go
- sys_optionset.auto.go
- sys_optionset.helper.go
- sys_org.auto.go
- sys_org.helper.go
- sys_permission.auto.go
- sys_role.auto.go
- sys_role.helper.go
- sys_role_app_fun.auto.go
- sys_role_data_permission.auto.go
- sys_role_menu.auto.go
- sys_role_permission.auto.go
- sys_role_user.auto.go
- sys_role_user.helper.go
- sys_schedule.auto.go
- sys_schedule_history.auto.go
- sys_setting.auto.go
- sys_table.auto.go
- sys_table.helper.go
- sys_table_col_user.auto.go
- sys_table_column.auto.go
- sys_table_column.helper.go
- sys_tag.auto.go
- sys_tag_group.auto.go
- sys_tracker.auto.go
- sys_user.auto.go
- sys_user.helper.go
- sys_user_binding.auto.go
- sys_user_tag.auto.go
- sys_user_template.auto.go
- sys_user_template.helper.go
- sys_user_template_detail.auto.go
- sys_user_template_detail.helper.go
- tracker_info.auto.go
- tree_node.auto.go
- worker.auto.go
- worker.helper.go