Documentation ¶
Index ¶
- Constants
- func GetSiteConfigMap(code ...interface{}) map[string]string
- func GetSiteConfigValue(code string) string
- type Admin
- type AdminRole
- type AlipayVo
- type AppBanner
- type AppVersion
- type Gift
- type Information
- type InformationFeedback
- type IpList
- type Member
- type MemberLoginCount
- type MemberSuggest
- type MemberVipLog
- type NormalQuestion
- type Organization
- type PaymentConfig
- type Permission
- type QuickNav
- type Role
- type RolePermission
- type SiteConfig
- type SmsLog
- type WechatVo
Constants ¶
View Source
const SysDbPrefix = "sys_"
Variables ¶
This section is empty.
Functions ¶
func GetSiteConfigMap ¶
func GetSiteConfigValue ¶
Types ¶
type Admin ¶
type Admin struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 关联ID(公司id等) Enabled int8 // 是否启用 Locked int8 // 是否锁定 IsSystem int8 // 是否系统内置 LockedDate time.Time `orm:"null"` // 锁定时间 LoginDate time.Time `orm:"null"` // 登录时间 LoginFailureCount int // 登录失败次数 LoginIp string `orm:"null"` // 登录ip Salt string // 盐 Name string // 名称 Password string // 密码 Username string `orm:"unique;size(127)"` // 用户名 Mobile string `orm:"null"` // 手机 LoginVerify int8 // 验证状态(0:无验证;1:短信验证;2:谷歌安全码验证;) GaSecret string `orm:"null"` // 谷歌验证秘钥 }
type AdminRole ¶
func (*AdminRole) TableUnique ¶
type AppBanner ¶
type AppBanner struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 关联ID(公司id等) AppNo string // App编号 Seq int // 排序(升序显示) Title string // 标题 Banner string // banner JumpUrl string // 跳转地址,网址或者App内部页 Status int // 状态0-禁用;1-启用 }
func (*AppBanner) GetFullBanner ¶
* 获取完整的banner地址
type AppVersion ¶
type AppVersion struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 关联ID(公司id等) AppNo string // App编号,每个App编号唯一 OsType string // android,ios VersionNo int // 版本号 VersionName string // 版本名称 VersionDesc string // 版本描述 DownloadUrl string // 下载地址 PublishTime time.Time // 发布时间 ForceUpdate int8 // 是否强制升级 Ignorable int8 // 是否可忽略 AppSize int // app大小(单位:KB) EncryptValue string // 加密值(默认MD5) }
type Gift ¶
type Gift struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 关联ID(公司id等) AppNo string // App编号 Code string // 礼包码 Price int // 价值 Status int // 状态0-未使用;1-已使用 }
type Information ¶
type Information struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 关联ID(公司id等) Title string // 标题 Info string // 消息 EffectTime time.Time // 生效时间 ExpireTime time.Time // 失效时间 NeedFeedback int8 // 0-不需要反馈;1-需要反馈 Receiver string // 接收者 规则:App编号:渠道:会员ID;不填表示全部;如:a:oppo: ReadNum int // 查看人数 }
func (*Information) Paginate ¶
func (model *Information) Paginate(page int, limit int, orgId int64, param1 string) (list []Information, total int64)
type InformationFeedback ¶
type InformationFeedback struct { Id int64 `auto` // 自增主键 Version int // 超过3次就等于已读 InformationId int64 MemberId int64 }
func (*InformationFeedback) TableUnique ¶
func (model *InformationFeedback) TableUnique() [][]string
type IpList ¶
type IpList struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 组织ID Ip string // Ip Black int8 // 是否黑名单 1:黑名单,0:白名单 }
type Member ¶
type Member struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 组织ID RefId int64 // 推荐人ID Levels string // 层级关系 LevelsDeep int // 层级深度 AppNo string AppChannel string AppVersion int Username string `orm:"unique;size(127)"` ThirdAuthId string // 三方登录的ID, 比如微信的unionid,华为的AuthHuaweiId RegType int // 注册类型 1-手机号;2-微信;3-支付宝;4-QQ;5-本机号码一键登录;6-Apple登录;7-游客模式 Name string Mobile string Password string Salt string Vip int VipTime time.Time `orm:"null"` // 最近VIP获得时间 VipExpire time.Time `orm:"null"` // VIP过期时间 Avatar string Locked int8 LockedDate time.Time `orm:"null"` LoginDate time.Time `orm:"null"` LoginFailureCount int LoginIp string Enabled int8 Token string TokenExpTime time.Time `orm:"null"` Cancelled int8 // 是否注销 0-正常使用;1-已注销 }
type MemberLoginCount ¶
type MemberLoginCount struct { Id int64 `auto` // 自增主键 AppNo string `orm:"size(63)"` // App编号 AppChannel string `orm:"size(63)"` // App渠道 AppVersion int // App版本 CountDate time.Time // 统计日期 Count int // 统计 }
func (*MemberLoginCount) TableUnique ¶
func (model *MemberLoginCount) TableUnique() [][]string
type MemberSuggest ¶
type MemberSuggest struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 组织ID MemberId int64 // 会员ID Mobile string Name string Suggest string Status int // 0:未处理;1:已回复接受未读;2:已回复拒绝未读;3:接受建议已读;4:拒绝建议已读 Feedback string // 回复 AppInfo string // App信息 }
func (*MemberSuggest) Paginate ¶
func (model *MemberSuggest) Paginate(page int, limit int, param1 string, status int) (list []MemberSuggest, total int64)
type MemberVipLog ¶
type MemberVipLog struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrderNo string `orm:"unique"` // 订单号 MemberId int64 // 会员ID VipDays int // 购买时长 PreVip int // 上回VIP等级 PreVipTime time.Time `orm:"null"` // 上回VIP获得时间 PreVipExpire time.Time `orm:"null"` // 上回VIP过期时间 CurVip int // 当前VIP等级 CurVipTime time.Time `orm:"null"` // 当前VIP获得时间 CurVipExpire time.Time `orm:"null"` // 当前VIP过期时间 Remark string // 备注 }
func (*MemberVipLog) Paginate ¶
func (model *MemberVipLog) Paginate(page int, limit int, memberId int64) (list []MemberVipLog, total int64)
type NormalQuestion ¶
type NormalQuestion struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 组织ID Seq int // 排序 Question string // 问题 Answer string // 答复 }
func (*NormalQuestion) Paginate ¶
func (model *NormalQuestion) Paginate(page int, limit int, param1 string) (list []NormalQuestion, total int64)
type Organization ¶
type Organization struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 上级ID Levels string // 层级关系 Vip int // VIP等级 Name string // 名称 OrgType int // 组织类型,用于业务自定义 BindDomain string // 绑定域名 ExpireTime time.Time // 过期时间 EncryptKey string // 秘钥(二级密码) Enabled int8 // 状态 0:禁用;1:启用 Remark string // 备注 }
func (*Organization) Paginate ¶
func (model *Organization) Paginate(page int, limit int, orgId int64, param1 string, orgTypes []int) (list []Organization, total int64)
type PaymentConfig ¶
type PaymentConfig struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 组织ID AppNo string // App编号 AppName string // 应用名称(微信App支付必须) PayType string // 支付类型 AppId string // AppId ConfValue string `orm:"size(3072)"` // 配置值,二维码等 Enabled int8 // 状态(0:禁用;1:启用) Remark string `orm:"null"` // 备注 }
type Permission ¶
type Permission struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 Pid int64 // 父节点Id Enabled int8 // 是否启用 Display int8 // 是否在菜单显示 Description string `orm:"null"` // 描述 Url string // 链接地址 Name string `orm:"unique;size(127)"` // 名称 Icon string `orm:"null"` // 图标 Sort int // 排序 }
func GetPermissionList ¶
func GetPermissionList() (permissions []Permission)
type Role ¶
type Role struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 Enabled int8 // 是否启用 Description string `orm:"null"` // 描述 IsSystem int8 // 是否内置(内置不可选择) Name string // 名称 IsOrg int8 // 是否适用组织 }
func GetRoleList ¶
type RolePermission ¶
func (*RolePermission) TableUnique ¶
func (model *RolePermission) TableUnique() [][]string
type SiteConfig ¶
type SiteConfig struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 Code string `orm:"unique;size(63)"` // 代码 Value string `orm:"size(1024)"` // 值 IsSystem int8 // 是否内置(内置不可删除) }
type SmsLog ¶
type SmsLog struct { Id int64 `auto` // 自增主键 CreateDate time.Time `orm:"auto_now_add;type(datetime)"` // 创建时间 ModifyDate time.Time `orm:"auto_now;type(datetime)"` // 更新时间 Creator int64 // 创建人Id Modifior int64 // 更新人Id Version int // 版本 OrgId int64 // 关联ID(公司id等) AppInfo string // App信息 Ip string // 发送ip Receiver string // 接收人 Info string // 短信内容 Status int // 0-草稿;1-发送中;2-发送成功;3-发送失败 }
Source Files ¶
- admin.go
- admin_role.go
- app_banner.go
- app_version.go
- gift.go
- information.go
- information_feedback.go
- ip_list.go
- member.go
- member_login_count.go
- member_suggest.go
- member_vip_log.go
- normal_question.go
- organization.go
- payment_config.go
- permission.go
- quicknav.go
- role.go
- role_permission.go
- site_config.go
- sms_log.go
Click to show internal directories.
Click to hide internal directories.