Documentation ¶
Index ¶
- func AutoMigrate()
- type AppAuthInfo
- type AppVersionControlInfo
- type E20200501
- type E20200502
- type E20200503
- type SingleSignOnCRMRoundLog
- type SingleSignOnErrorLog
- type SingleSignOnLoginModule
- type SingleSignOnOrganization
- type SingleSignOnPushLog
- type SingleSignOnSession
- type SingleSignOnSuffix
- type SingleSignOnUser
- type SingleSignOnVerificationCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppAuthInfo ¶
type AppAuthInfo struct { gorm.Model Authorized string `gorm:"not null"` // 被授权的应用 ( 名称 ) Token string `gorm:"not null" json:"Token" binding:"required"` // 授权令牌 ExpiresIn uint `gorm:"not null"` // 授权有效期 ( 秒 ) }
应用程序 授权信息
type AppVersionControlInfo ¶
type AppVersionControlInfo struct { gorm.Model AppID string `gorm:"not null"` // 应用 ID AppName string `gorm:"not null"` // 应用名称 Version string `gorm:"not null"` // 版本 Description string `gorm:"not null"` // 更新说明 Download string `gorm:"not null"` // 下载链接 }
应用程序 版本控制表
type E20200501 ¶
type E20200501 struct { gorm.Model Name string `gorm:"not null"` // 活动名称 Phone string `gorm:"not null"` // 参与者手机号码, 用于识别参与者 ProjectVersion string `gorm:"not null"` // 项目版本 }
可用于带计数的预约类活动
type E20200502 ¶
type E20200502 struct { gorm.Model Name string `gorm:"not null"` // 礼品名称 Detail string // 礼品详情 Phone string // 领取人手机号 ConsumeDetail string // 消费详情 // 平台日志 SourceIP string }
可用于礼品 ( 兑换码 ) 发放类活动
type E20200503 ¶
type E20200503 struct { gorm.Model Event string `gorm:"not null" json:"Event" binding:"required"` // 活动标识 Phone string `gorm:"not null" json:"Phone" binding:"required"` // 参与者手机号码 ( 参与者标识 ) // 平台日志 SourceIP string // 用户 IP }
可用于需要进行参与次数计数的活动
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"` // 错误内容 }
单点登陆 错误日志表
type SingleSignOnLoginModule ¶
type SingleSignOnLoginModule struct { gorm.Model CreatedUserID uint `gorm:"not null"` // 创建用户 ID UpdatedUserID uint `gorm:"not null"` // 最终修改用户 ID Name string `gorm:"not null" json:"Name" binding:"required"` // 活动名称 CRMEID string `gorm:"not null;column:crm_eid" json:"EID" binding:"required"` // CRM 活动编码 CRMSID string `gorm:"not null;column:crm_sid" json:"SID" binding:"required"` // CRM 表单 SID 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 推送配置 CRMSID string `gorm:"not null;column:crm_sid" json:"CRMSID" 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 推送配置 CRMSID string `gorm:"not null;column:crm_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"` // 备注 // 平台日志 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;primary_key" 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 ¶
单点登陆 用户
Click to show internal directories.
Click to hide internal directories.