Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SysArea ¶
type SysArea struct { Id int64 `json:"id" orm:"id" description:"ID"` AreaCode int `json:"areaCode" orm:"area_code" description:"地区编码"` AreaName string `json:"areaName" orm:"area_name" description:"地区名称"` Level int `` /* 151-byte string literal not displayed */ CityCode string `json:"cityCode" orm:"city_code" description:"城市编码"` LongLatCenter string `json:"longLatCenter" orm:"long_lat_center" description:"城市中心点(即经纬度)"` ParentId int64 `json:"parentId" orm:"parent_id" description:"地区父节点"` PinYin string `json:"pinYin" orm:"pin_yin" description:"地区拼音"` }
SysArea is the golang structure for table sys_area.
type SysAudit ¶
type SysAudit struct { Id int64 `json:"id" orm:"id" description:""` State int `json:"state" orm:"state" description:"审核状态:-1不通过,0待审核,1通过"` Reply string `json:"reply" orm:"reply" description:"不通过时回复的审核不通过原因"` UnionMainId int64 `json:"unionMainId" orm:"union_main_id" description:"关联主体ID"` Category int `` /* 130-byte string literal not displayed */ AuditData string `json:"auditData" orm:"audit_data" description:"待审核的业务数据包"` ExpireAt *gtime.Time `json:"expireAt" orm:"expire_at" description:"服务时限"` AuditReplyAt *gtime.Time `json:"auditReplyAt" orm:"audit_reply_at" description:"审核回复时间"` HistoryItems string `json:"historyItems" orm:"history_Items" description:"历史申请记录"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` AuditUserId int64 `json:"auditUserId" orm:"audit_user_id" description:"审核操作者id"` DataIdentifier string `json:"dataIdentifier" orm:"data_identifier" description:"数据标识"` UserId int64 `json:"userId" orm:"user_id" description:"关联用户ID"` }
SysAudit is the golang structure for table sys_audit.
type SysCasbin ¶
type SysCasbin struct { Ptype string `json:"ptype" orm:"ptype" description:""` V0 string `json:"v0" orm:"v0" description:""` V1 string `json:"v1" orm:"v1" description:""` V2 string `json:"v2" orm:"v2" description:""` V3 string `json:"v3" orm:"v3" description:""` V4 string `json:"v4" orm:"v4" description:""` V5 string `json:"v5" orm:"v5" description:""` }
SysCasbin is the golang structure for table sys_casbin.
type SysConfig ¶
type SysConfig struct { Name string `json:"name" orm:"name" description:"配置名称"` Value string `json:"value" orm:"value" description:"配置信息"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` }
SysConfig is the golang structure for table sys_config.
type SysFile ¶
type SysFile struct { Id int64 `json:"id" orm:"id" description:"自增ID"` Name string `json:"name" orm:"name" description:"文件名称"` Src string `json:"src" orm:"src" description:"存储路径"` Url string `json:"url" orm:"url" description:"URL地址"` Ext string `json:"ext" orm:"ext" description:"扩展名"` Size int64 `json:"size" orm:"size" description:"文件大小"` Category string `json:"category" orm:"category" description:"文件分类"` UserId int64 `json:"userId" orm:"user_id" description:"用户ID"` UnionMainId int64 `json:"unionMainId" orm:"union_main_id" description:"关联主体ID"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` LocalPath string `json:"localPath" orm:"local_path" description:"本地路径"` }
SysFile is the golang structure for table sys_file.
type SysIndustry ¶ added in v0.7.0
type SysIndustry struct { Id int64 `json:"id" orm:"id" description:"ID"` CategoryId int64 `json:"categoryId" orm:"category_id" description:"行业ID"` CategoryName string `json:"categoryName" orm:"category_name" description:"行业名称"` CategoryDesc string `json:"categoryDesc" orm:"category_desc" description:"行业描述"` Rate int `json:"rate" orm:"rate" description:"费率"` ParentId int64 `json:"parentId" orm:"parent_id" description:"父级ID"` Sort int `json:"sort" orm:"sort" description:"排序"` State int `json:"state" orm:"state" description:"状态:0隐藏,1显示"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""` }
SysIndustry is the golang structure for table sys_industry.
type SysInvite ¶ added in v0.5.7
type SysInvite struct { Id int64 `json:"id" orm:"id" description:"ID"` UserId int64 `json:"userId" orm:"user_id" description:"用户ID, 也就是邀约人ID"` Value string `json:"value" orm:"value" description:"邀约码背后的关联业务Json数据,"` ExpireAt *gtime.Time `json:"expireAt" orm:"expire_at" description:"邀约码的过期失效"` ActivateNumber int `json:"activateNumber" orm:"activate_number" description:"邀约码的激活次数限制"` State int `json:"state" orm:"state" description:"状态: 0失效、1正常"` Type int `json:"type" orm:"type" description:"类型: 1注册、2加入团队、4加入角色 (复合类型)"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` }
SysInvite is the golang structure for table sys_invite.
type SysLogs ¶
type SysLogs struct { Id int64 `json:"id" orm:"id" description:"ID"` UserId int64 `json:"userId" orm:"user_id" description:"用户UID"` Error string `json:"error" orm:"error" description:"错误信息"` Category string `json:"category" orm:"category" description:"分类"` Level int `json:"level" orm:"level" description:"等级"` Content string `json:"content" orm:"content" description:"日志内容"` Context string `json:"context" orm:"context" description:"上下文数据"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` }
SysLogs is the golang structure for table sys_logs.
type SysMenu ¶
type SysMenu struct { Id int64 `json:"id" orm:"id" description:"ID"` Path string `json:"path" orm:"path" description:"路径"` Name string `json:"name" orm:"name" description:"名称"` Redirect string `json:"redirect" orm:"redirect" description:"跳转"` Title string `json:"title" orm:"title" description:"标题"` Icon string `json:"icon" orm:"icon" description:"图标"` Component string `json:"component" orm:"component" description:"组件"` ParentId int64 `json:"parentId" orm:"parent_id" description:"所属父级"` Sort int `json:"sort" orm:"sort" description:"排序"` State int `json:"state" orm:"state" description:"状态:0隐藏,1显示"` Description string `json:"description" orm:"description" description:"描述"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` IconUrl string `json:"iconUrl" orm:"icon_url" description:"图标URL"` RedirectType int `json:"redirectType" orm:"redirect_type" description:"跳转类型:1当前页面打开、 2新的标签页打开"` Type int `json:"type" orm:"type" description:"类型:1菜单、2按钮"` }
SysMenu is the golang structure for table sys_menu.
type SysMessage ¶ added in v0.7.2
type SysMessage struct { Id int64 `json:"id" orm:"id" description:"ID"` Title string `json:"title" orm:"title" description:"标题"` Summary string `json:"summary" orm:"summary" description:"摘要"` Content string `json:"content" orm:"content" description:"内容"` Type int `json:"type" orm:"type" description:"消息类型"` Link string `json:"link" orm:"link" description:"跳转链接"` ToUserIds string `json:"toUserIds" orm:"to_user_ids" description:"接收者UserIds,允许有多个接收者"` ToUserType int `json:"toUserType" orm:"to_user_type" description:"接收者类型用户类型,和UserType保持一致"` FromUserId int64 `json:"fromUserId" orm:"from_user_id" description:"发送者ID,为-1代表系统消息"` FromUserType int `json:"fromUserType" orm:"from_user_type" description:"发送者类型"` SendAt *gtime.Time `json:"sendAt" orm:"send_at" description:"发送时间"` ExtJson string `json:"extJson" orm:"ext_json" description:"拓展数据Json"` ReadUserIds string `json:"readUserIds" orm:"read_user_ids" description:"已读用户UserIds"` DataIdentifier string `json:"dataIdentifier" orm:"data_identifier" description:"关联的数据标识"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""` SceneDesc string `json:"sceneDesc" orm:"scene_desc" description:"场景描述"` SceneType int `` /* 358-byte string literal not displayed */ }
SysMessage is the golang structure for table sys_message.
type SysOrganization ¶
type SysOrganization struct { Id int64 `json:"id" orm:"id" description:""` Name string `json:"name" orm:"name" description:"名称"` ParentId int64 `json:"parentId" orm:"parent_id" description:"父级ID"` CascadeDeep int `json:"cascadeDeep" orm:"cascade_deep" description:"级联深度"` Description string `json:"description" orm:"description" description:"描述"` }
SysOrganization is the golang structure for table sys_organization.
type SysPermission ¶
type SysPermission struct { Id int64 `json:"id" orm:"id" description:"ID"` ParentId int64 `json:"parentId" orm:"parent_id" description:"父级ID"` Name string `json:"name" orm:"name" description:"名称"` Description string `json:"description" orm:"description" description:"描述"` Identifier string `json:"identifier" orm:"identifier" description:"标识符"` Type int `json:"type" orm:"type" description:"类型:1api,2menu"` MatchMode int `json:"matchMode" orm:"match_mode" description:"匹配模式:ID:0,标识符:1"` IsShow int `json:"isShow" orm:"is_show" description:"是否显示:0不显示 1显示"` Sort int `json:"sort" orm:"sort" description:"排序"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` }
SysPermission is the golang structure for table sys_permission.
type SysPersonLicense ¶ added in v0.4.13
type SysPersonLicense struct { Id int64 `json:"id" orm:"id" description:"ID"` IdcardFrontPath string `json:"idcardFrontPath" orm:"idcard_front_path" description:"身份证头像面照片"` IdcardBackPath string `json:"idcardBackPath" orm:"idcard_back_path" description:"身份证国徽面照片"` No string `json:"no" orm:"no" description:"身份证号"` Gender int `json:"gender" orm:"gender" description:"性别"` Nation string `json:"nation" orm:"nation" description:"名族"` Name string `json:"name" orm:"name" description:"姓名"` Birthday string `json:"birthday" orm:"birthday" description:"出生日期"` Address string `json:"address" orm:"address" description:"家庭住址"` IssuingAuthorit string `json:"issuingAuthorit" orm:"issuing_authorit" description:"签发机关"` IssuingDate string `json:"issuingDate" orm:"issuing_date" description:"签发日期"` ExpriyDate string `json:"expriyDate" orm:"expriy_date" description:""` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""` State int `json:"state" orm:"state" description:"状态:0失效、1正常"` AuthType int `json:"authType" orm:"auth_type" description:"认证类型:"` Remark string `json:"remark" orm:"remark" description:"备注信息"` LatestAuditLogid int64 `json:"latestAuditLogId" orm:"latest_audit_logId" description:"最新的审核记录id"` }
SysPersonLicense is the golang structure for table sys_person_license.
type SysRole ¶
type SysRole struct { Id int64 `json:"id" orm:"id" description:""` Name string `json:"name" orm:"name" description:"名称"` Description string `json:"description" orm:"description" description:"描述"` IsSystem bool `json:"isSystem" orm:"is_system" description:"是否默认角色,true仅能修改名称,不允许删除和修改"` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UnionMainId int64 `json:"unionMainId" orm:"union_main_id" description:"主体id"` }
SysRole is the golang structure for table sys_role.
type SysSettings ¶ added in v0.4.2
type SysSettings struct { Name string `json:"name" orm:"name" description:"配置名称"` Values string `json:"values" orm:"values" description:"配置信息JSON格式"` Desc string `json:"desc" orm:"desc" description:"描述"` UnionMainId int64 `json:"unionMainId" orm:"union_main_id" description:"关联的主体id,为0代表是平台配置"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` }
SysSettings is the golang structure for table sys_settings.
type SysSmsLogs ¶
type SysSmsLogs struct { Id float64 `json:"id" orm:"id" description:""` Type string `json:"type" orm:"type" description:"短信平台:qyxs:企业信使"` Context string `json:"context" orm:"context" description:"短信内容"` Mobile string `json:"mobile" orm:"mobile" description:"手机号"` State string `json:"state" orm:"state" description:"发送状态"` Result string `json:"result" orm:"result" description:"短信接口返回内容"` UserId int64 `json:"userId" orm:"user_id" description:"用户ID"` LicenseId int64 `json:"licenseId" orm:"license_id" description:"主体ID"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""` }
SysSmsLogs is the golang structure for table sys_sms_logs.
type SysUser ¶
type SysUser struct { Id int64 `json:"id" orm:"id" description:""` Username string `json:"username" orm:"username" description:"账号"` Password string `json:"password" orm:"password" description:"密码"` State int `json:"state" orm:"state" description:"状态:0未激活、1正常、-1封号、-2异常、-3已注销"` Type int `` /* 155-byte string literal not displayed */ Mobile string `json:"mobile" orm:"mobile" description:"手机号"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""` Email string `json:"email" orm:"email" description:"邮箱"` }
SysUser is the golang structure for table sys_user.
type SysUserDetail ¶
type SysUserDetail struct { Id int64 `json:"id" orm:"id" description:"ID,保持与USERID一致"` Realname string `json:"realname" orm:"realname" description:"姓名"` UnionMainName string `json:"unionMainName" orm:"union_main_name" description:"关联主体名称"` LastLoginIp string `json:"lastLoginIp" orm:"last_login_ip" description:"最后登录IP"` LastLoginArea string `json:"lastLoginArea" orm:"last_login_area" description:"最后登录地区"` LastLoginAt *gtime.Time `json:"lastLoginAt" orm:"last_login_at" description:"最后登录时间"` }
SysUserDetail is the golang structure for table sys_user_detail.