Documentation ¶
Index ¶
- type MiniProgram
- type MiniProgramAccessToken
- type MiniProgramPhotoProcessingConfig
- type SingleSignOnCRMRoundLog
- type SingleSignOnErrorLog
- type SingleSignOnLoginModule
- type SingleSignOnOrganization
- type SingleSignOnPushLog
- type SingleSignOnSession
- type SingleSignOnSuffix
- type SingleSignOnUser
- type SingleSignOnVerificationCode
- type SystemConfig
- type SystemRole
- type SystemSession
- type SystemUser
- type SystemUserLoginFailLog
- type ToolsUrlShortener
- type ToolsUrlShortenerRedirectLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiniProgram ¶
type MiniProgram struct { gorm.Model AppID string `gorm:"not null"` // 小程序 AppID Secret string `gorm:"not null"` // 小程序密钥 }
MiniProgram 小程序配置
type MiniProgramAccessToken ¶
type MiniProgramAccessToken struct { gorm.Model AppID string `gorm:"not null"` // 小程序 AppID AccessToken string `gorm:"not null"` // 获取到的访问令牌 ExpiresIn int64 `gorm:"not null"` // 访问令牌有效时间,单位:秒。目前是7200秒之内的值 }
MiniProgramAccessToken 小程序 Access Token
type MiniProgramPhotoProcessingConfig ¶
type MiniProgramPhotoProcessingConfig struct { gorm.Model CreatedUserID uint `gorm:"not null"` // 创建用户 ID UpdatedUserID uint `gorm:"not null"` // 最终修改用户 ID Name string `gorm:"not null" binding:"required"` // 照片处理名称 Project string `gorm:"not null" binding:"required"` // 项目 CRMEventFormID uint `gorm:"not null" binding:"required"` // CRM 活动表单 ID CRMEventFormSID string `gorm:"not null" binding:"required"` // CRM 活动表单 SID MillimeterWidth uint `gorm:"not null" binding:"required"` // MM 毫米 宽度 MillimeterHeight uint `gorm:"not null" binding:"required"` // MM 毫米 高度 PixelWidth uint `gorm:"not null" binding:"required"` // PX 像素 宽度 PixelHeight uint `gorm:"not null" binding:"required"` // PX 像素 高度 BackgroundColors string `gorm:"not null" binding:"required"` // 背景色列表 Description string // 备注 Hot bool // 是否热门 }
MiniProgramPhotoProcessingConfig 小程序 照片处理 配置
type SingleSignOnCRMRoundLog ¶
type SingleSignOnCRMRoundLog struct { gorm.Model MID uint `gorm:"not null"` // 单点登陆模块 ID Phone string `gorm:"not null"` // 客户手机号码 CRMOID uint `gorm:"not null;column:crm_oid"` // 所属组织 ID }
单点登陆 CRM 循环分配日志
type SingleSignOnErrorLog ¶
type SingleSignOnErrorLog struct { gorm.Model Phone string `gorm:"not null"` // 客户手机号码 MID uint `gorm:"not null"` // 单点登陆模块 ID CRMChannel uint `gorm:"not null"` // CRM 所属渠道 CRMUID uint `gorm:"not null"` // CRM 用户ID CRMOCode uint `gorm:"not null"` // CRM 所属组织代码 Error string `gorm:"not null;size:10000"` // 错误内容, 错误内容可能比较多, 所以字段长度需要配置的比较长 }
单点登陆 错误日志表
type SingleSignOnLoginModule ¶
type SingleSignOnLoginModule struct { gorm.Model CreatedUserID uint `gorm:"not null"` // 创建用户 ID UpdatedUserID uint `gorm:"not null"` // 最终修改用户 ID CRMEID string `gorm:"not null;column:crm_eid" json:"EID" binding:"required"` // CRM 活动编码 CRMEFID uint `gorm:"not null;column:crm_ef_id" json:"EFID" binding:"required"` // CRM 活动表单 ID CRMEFSID string `gorm:"not null;column:crm_ef_sid" json:"EFSID" binding:"required"` // CRM 活动表单 SID URLs string `gorm:"not null"` // 活动链接, 使用英文逗号进行分隔 Term uint `gorm:"not null" json:"Term" binding:"required"` // 验证码有效期, 分钟 Platform uint `gorm:"not null" json:"Platform" binding:"required"` // 发信平台 Sign string `gorm:"not null" json:"Sign" binding:"required"` // 发信签名 ( 仅腾讯云短信接口可配置, 中公短信平台的签名不可修改, 但是此处的配置与登陆模块 title 联动 ) TemplateID uint `gorm:"not null" json:"TemplateID"` // 发信模板 ID }
单点登陆 登陆模块
type SingleSignOnOrganization ¶
type SingleSignOnOrganization struct { gorm.Model CreatedUserID uint `gorm:"not null"` // 创建用户 ID UpdatedUserID uint `gorm:"not null"` // 最终修改用户 ID FID uint `gorm:"not null" json:"FID" binding:"required"` // 父节点 ID Code uint `gorm:"not null" json:"Code" binding:"required"` // 组织代码 Name string `gorm:"not null" json:"Name" binding:"required"` // 组织名称 }
单点登陆 CRM 组织
type SingleSignOnPushLog ¶
type SingleSignOnPushLog struct { gorm.Model Phone string `gorm:"not null" json:"Phone" binding:"required"` // 客户手机号码 // 后缀信息 ActualSuffix string `json:"Suffix"` // 调用接口时使用的后缀 CurrentSuffix string `gorm:"not null"` // 最终使用的后缀 // CRM 推送配置 CRMEFSID string `gorm:"not null;column:crm_ef_sid" binding:"required"` // CRM 活动表单 SID CRMChannel uint `gorm:"not null"` // CRM 所属渠道 CRMOCode uint `gorm:"not null;column:crm_o_code"` // CRM 所属组织代码 CRMUID uint `gorm:"not null"` // CRM 用户ID // CRM 推送配置 可选字段 CustomerName string `json:"CustomerName"` // 客户姓名 CustomerIdentityID uint `json:"CustomerIdentityID"` // 客户身份 ID, 来自 CRM 中的客户身份字典 CustomerColleage string `json:"CustomerColleage"` // 客户毕业院校 CustomerMayor string `json:"CustomerMayor"` // 客户专业 Remark string `json:"Remark"` // 备注 }
单点登陆 推送日志表
type SingleSignOnSession ¶
type SingleSignOnSession struct { gorm.Model MID uint `gorm:"not null" json:"MID" binding:"required"` // 单点登陆模块 ID Phone string `gorm:"not null" json:"Phone" binding:"required"` // 客户手机号码 Code uint `json:"Code"` // 验证码 // 后缀信息 ActualSuffix string `json:"Suffix"` // 调用接口时使用的后缀 CurrentSuffix string `gorm:"not null"` // 最终使用的后缀 // CRM 推送配置 CRMEFSID string `gorm:"not null;column:crm_ef_sid"` // CRM 活动表单 SID CRMChannel uint `gorm:"not null"` // CRM 所属渠道 CRMOCode uint `gorm:"not null;column:crm_o_code"` // CRM 所属组织代码 CRMUID uint `gorm:"not null"` // CRM 用户ID // CRM 推送配置 可选字段 CustomerName string `json:"CustomerName"` // 客户姓名 CustomerIdentityID uint `json:"CustomerIdentityID"` // 客户身份 ID, 来自 CRM 中的客户身份字典 CustomerColleage string `json:"CustomerColleage"` // 客户毕业院校 CustomerMayor string `json:"CustomerMayor"` // 客户专业 Remark string `json:"Remark"` // 备注 // 平台日志 URL string `json:"URL" binding:"required"` // 用户来源链接 SourceIP string // 用户 IP }
单点登陆 会话
type SingleSignOnSuffix ¶
type SingleSignOnSuffix struct { gorm.Model CreatedUserID uint `gorm:"not null"` // 创建用户 ID UpdatedUserID uint `gorm:"not null"` // 最终修改用户 ID Suffix string `gorm:"not null;unique" json:"Suffix" binding:"required"` // 后缀 ( 19课堂 个人后缀 ), 为了避免重复, 设置为主键 Name string `gorm:"not null" json:"Name" binding:"required"` // 后缀名称 CRMUser string `gorm:"not null" json:"CRMUser" binding:"required"` // CRM 用户名 CRMUID uint `gorm:"not null" json:"CRMUID" binding:"required"` // CRM 用户ID CRMOID uint `gorm:"not null;column:crm_oid" json:"CRMOID" binding:"required"` // 所属组织 ID CRMChannel uint `gorm:"not null" json:"CRMChannel" binding:"required"` // 所属渠道 NTalkerGID string `gorm:"not null;column:ntalker_gid" json:"NTalkerGID" binding:"required"` // 小能咨询组 }
单点登陆 后缀
type SingleSignOnUser ¶
单点登陆 用户
type SingleSignOnVerificationCode ¶
type SingleSignOnVerificationCode struct { gorm.Model Phone string `gorm:"not null"` // 手机号码 Term uint `gorm:"not null"` // 有效期, 分钟 Code uint `gorm:"not null"` // 验证码 // 平台日志 SourceIP string // 客户 IP }
单点登陆 验证码
type SystemConfig ¶
type SystemConfig struct { gorm.Model DisableDebug bool // 关闭调试模式, 由于 bool 类型的默认初始值为 false 为了在没有初始化成功的情况下默认开启调试, 所以使用 禁用调试 替代 开启调试 // 跨域检查规则 CORSRuleServices string `binding:"required"` // Service 内部服务路由组 CORSRuleManages string `binding:"required"` // Manages 管理平台路由组 CORSRuleEvents string `binding:"required"` // Events 活动 ( 外部服务 ) 路由组 // 中公教育内部平台相关配置 OffcnSmsURL string `binding:"required"` // 短信平台 接口地址 OffcnSmsUserName string `binding:"required"` // 短信平台 用户名 OffcnSmsPassword string `binding:"required"` // 短信平台 密码 OffcnSmsTjCode string `binding:"required"` // 短信平台 发送方识别码 OffcnMisURL string `binding:"required"` // 口令码平台 接口地址 OffcnMisAppID string `binding:"required"` // 口令码平台 应用 ID OffcnMisToken string `binding:"required"` // 口令码平台 令牌 OffcnMisCode string `binding:"required"` // 口令码平台 签名密钥 OffcnOCCKey string `binding:"required"` // OCC 平台 签名密钥 // 腾讯云相关配置 TencentCloudAPISecretID string `binding:"required"` // 令牌 TencentCloudAPISecretKey string `binding:"required"` // 密钥 TencentCloudSmsSdkAppId string `binding:"required"` // 短信应用 ID // 内部服务相关配置 ServicesAccessToken string `binding:"required"` // 接口访问令牌 // RSA 签名密钥 RSAPublicKey string `gorm:"type:varchar(1000);" binding:"required"` // RSA 公钥 RSAPrivateKey string `gorm:"type:varchar(4000);" binding:"required"` // RSA 私钥 // 工具 短链接生成器 ( 长链接转短链接 ) 相关配置 ToolsUrlShortenerNotFoundContentType string // 未找到页面 响应数据类型 ToolsUrlShortenerNotFoundData string `gorm:"type:varchar(2550);"` // 未找到页面 响应内容 ToolsUrlShortenerDisabledContentType string // 页面禁用 响应数据类型 ToolsUrlShortenerDisabledData string `gorm:"type:varchar(2550);"` // 页面禁用 响应内容 }
SystemConfig 系统配置表
type SystemRole ¶
type SystemRole struct { gorm.Model CreatedUserID uint `gorm:"not null"` // 创建用户 ID UpdatedUserID uint `gorm:"not null"` // 最终修改用户 ID SuperiorID uint `gorm:"not null" json:"SuperiorID" binding:"required"` // 上级角色 ID Name string `gorm:"not null" json:"Name" binding:"required"` // 角色名称 Permissions string `gorm:"not null" json:"Permissions" binding:"required"` // 权限集 }
SystemRole 系统角色表
type SystemSession ¶
type SystemSession struct { gorm.Model UUID string `gorm:"not null"` // 会话 ID, 使用随机生成的 UUID 作为会话识别代码, 而不使用自增的 ID 作为会话识别代码, 原因是自增的代码可以很容易的被猜测到, 存在很大的被仿冒的风险 UserID uint `gorm:"not null"` // 用户 ID MisToken string `gorm:"not null"` // Mis 令牌 LastRequestAt time.Time `gorm:"not null"` // 最后一次操作时间 LastSourceIP string `gorm:"not null"` // 最后一次操作 IP }
SystemSession 系统会话表
type SystemUser ¶
type SystemUser struct { gorm.Model CreatedUserID uint `gorm:"not null"` // 创建用户 ID UpdatedUserID uint `gorm:"not null"` // 最终修改用户 ID RoleID uint `gorm:"not null" json:"RoleID" binding:"required"` // 角色 ID Username string `gorm:"not null" json:"Username" binding:"required"` // 用户名 Password string `gorm:"type:varchar(1000);not null" json:"Password"` // 密码 Name string `gorm:"not null" json:"Name" binding:"required"` // 姓名 }
SystemUser 系统用户表
type SystemUserLoginFailLog ¶
type SystemUserLoginFailLog struct { gorm.Model UserID uint `gorm:"not null"` // 用户 ID Password string `gorm:"not null"` // 使用的密码 SourceIp string `gorm:"not null"` // 访问 IP }
SystemUserLoginFailLog 系统用户登陆失败日志
type ToolsUrlShortener ¶
type ToolsUrlShortener struct { gorm.Model CreatedUserID uint `gorm:"not null"` // 创建用户 ID UpdatedUserID uint `gorm:"not null"` // 最终修改用户 ID CustomID string // 自定义 ID URL string `gorm:"not null" binding:"required"` // 原始链接 }
ToolsUrlShortener 短链接生成器 生成记录表
type ToolsUrlShortenerRedirectLog ¶
type ToolsUrlShortenerRedirectLog struct { gorm.Model UrlID uint // 短链 ID CustomID string // 自定义 ID URL string // 原始链接 RequestProto string // 协议版本 RequestMethod string // 请求方法 RequestUrl string // 请求链接 RequestBody string // 请求体 IP string // 用户 IP UserAgent string // 用户代理 Status string // 跳转状态 }
ToolsUrlShortenerRedirectLog 短链接生成器 跳转记录表
Click to show internal directories.
Click to hide internal directories.