Documentation
¶
Index ¶
- Constants
- type Admin
- type AdminRole
- type AdminRolePriv
- type Advert
- type AdvertSpace
- type AttachmentType
- type Attachments
- type Category
- type CategoryPriv
- type Content
- type Department
- type Dict
- type DictCategory
- type District
- type DocumentModel
- type DocumentModelDsl
- type DocumentModelField
- type KV
- type Level
- type Link
- type LocalTime
- func (l *LocalTime) FromDB(b []byte) error
- func (l LocalTime) MarshalJSON() ([]byte, error)
- func (l LocalTime) MarshalText() ([]byte, error)
- func (l LocalTime) Now() LocalTime
- func (l LocalTime) ParseTime(t time.Time) LocalTime
- func (l LocalTime) String() string
- func (l *LocalTime) ToDB() ([]byte, error)
- func (l *LocalTime) UnmarshalJSON(b []byte) error
- func (l *LocalTime) Value() (driver.Value, error)
- type Log
- type Member
- type MemberGroup
- type Menu
- type ModelDslFields
- type Page
- type Plugin
- type Position
- type RequestLog
- type SearchMAE
- type Setting
- type Tags
- type Todo
- type WechatAccount
- type WechatLog
- type WechatMaterial
- type WechatMember
- type WechatMsgReplyRule
- type WechatMsgTemplate
- type WechatQrcode
Constants ¶
View Source
const ( FieldTypeNull = iota FieldTypeInput FieldTypeMulInput FieldTypeEditorQuill FieldTypeAttachment FieldTypeSelect FieldTypeCascader FieldTypeRadio FieldTypeCheckbox FieldTypeInputNumberInt FieldTypeInputNumberFloat FieldTypeImageUpload FieldTypeImageMulUpload FieldTypeSwitch FieldTypeDate FieldTypeTags FieldTypeFlag FieldTypeMarkdown FieldTypeCodeEditor FieldTypeRate FieldTypeUeditor )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct {
Userid int64 `xorm:"pk autoincr 'id'" json:"id"`
Username string `json:"username"`
Password string `json:"password,omitempty"`
Roleid []int64 `json:"roleid" xorm:"-"`
Encrypt string `json:"-"`
Lastloginip string `json:"lastloginip"`
Lastlogintime int64 `json:"lastlogintime"`
Email string `json:"email"`
Realname string `json:"realname"`
Avatar string `json:"avatar"`
Remark string `json:"remark"`
RoleName string `json:"roleName" xorm:"-"`
Phone string `json:"phone"`
Status uint `json:"status"`
PositionId uint `json:"position_id"`
LevelId uint `json:"level_id"`
DepartmentId uint `json:"department_id"`
Birthday *LocalTime `json:"birthday"`
Sex uint `json:"sex"`
RoleIdList []int64 `json:"roleIdList" xorm:"json roles"`
}
type AdminRolePriv ¶
type Advert ¶
type Advert struct {
Id int64 `json:"id"`
Name string `json:"name" schema:"name"`
SpaceID int64 `xorm:"space_id" json:"space_id" schema:"space_id"`
SpaceName string `xorm:"-" json:"space_name" schema:"-"`
LinkUrl string `json:"link_url" schema:"link_url"`
Image string `json:"image" schema:"image"`
ListOrder uint `xorm:"listorder default 0" json:"listorder" schema:"listorder"`
StartTime *LocalTime `xorm:"datetime 'start_time' default NULL " json:"startTime"`
EndTime *LocalTime `xorm:"datetime 'end_time' default NULL " json:"endTime"`
DateRange []string `json:"date_range" schema:"-"` // 展示日期范围
Status bool `json:"status" schema:"status"` // 状态
}
type AdvertSpace ¶
type AttachmentType ¶
type Attachments ¶
type Attachments struct {
Id int64 `json:"id"`
Name string `json:"name" xorm:"comment('附件名称')"`
Url string `json:"url" xorm:"comment('完整的链接地址')"`
OriginName string `json:"original" xorm:"comment('原始名称')"`
Size int64 `json:"size" xorm:"comment('附件大小')"`
CreatedAt LocalTime `json:"upload_time" xorm:"created"`
Type string `json:"type" xorm:"comment('类型') varchar(30)"`
ClassifyId int64 `json:"classifyId" xorm:"comment('归属分类ID') int(5)"`
Md5 string `json:"md5" xorm:"comment('附件的md5值') unique varchar(32)"`
}
type Category ¶
type Category struct {
Catid int64 `xorm:"pk autoincr id" json:"id"`
Parentid int64 `json:"parentId" xorm:"comment('所属栏目ID')"`
Topid int64 `json:"topid" xorm:"comment('顶级栏目ID')"`
ModelId int64 `json:"model_id" xorm:"comment('绑定模型ID')"`
Catname string `json:"name" xorm:"comment('分类ID')"`
Type int64 `json:"type"`
Keywords string `json:"keywords"`
Description string `json:"description"`
Content string `xorm:"-"`
Thumb string `json:"thumb"`
Dir string `json:"dir"`
Url string `json:"url"`
Listorder int64 `json:"listorder"`
ListTpl string `json:"list_tpl"`
DetailTpl string `json:"detail_tpl"`
UrlPrefix string `xorm:"-" json:"url_prefix"`
CreatedAt *LocalTime `json:"created_at" xorm:"created"`
UpdatedAt *LocalTime `json:"updated_at" xorm:"updated"`
Active bool `xorm:"-"`
HasSon bool `xorm:"-"`
Model *DocumentModel `xorm:"-" json:"model"`
Page *Page `xorm:"-"`
}
Category 分类
type CategoryPriv ¶
CategoryPriv 分类权限
type Content ¶
type Content struct {
Id int64 `form:"id" json:"id"`
Catid int64 `form:"catid" json:"catid"`
Title string `form:"title" json:"title"`
Thumb string `form:"thumb" json:"thumb"`
Keywords string `form:"keywords" json:"keywords"`
Description string `form:"description" json:"description"`
Content string `form:"content" json:"content"`
Listorder int64 `form:"listorder" json:"listorder"`
Status int64 `form:"status" json:"status"`
Recommend int64 `form:"recommend" json:"recommend"`
PwdType int64 `form:"pwd_type" json:"pwd_type"`
Money int64 `form:"money" json:"money"`
Userid int64 `form:"userid" json:"userid"`
CreatedAt int64 `form:"created_at" json:"created_at"`
UpdatedAt int64 `form:"updated_at" json:"updated_at"`
DeletedAt int64 `form:"deleted_at" json:"deleted_at"`
SourceUrl string `form:"source_url" json:"source_url"`
SourcePwd string `form:"source_pwd" json:"source_pwd"`
Catids string `form:"catids" json:"catids"`
Tags string `form:"tags" json:"tags"`
}
type Department ¶
type Department struct {
Id int64 `json:"id"`
Name string `json:"name" schema:"name" xorm:"varchar(25)"`
LeaderName string `json:"leader_name" xorm:"varchar(25)"`
LeaderPhone string `json:"leader_phone" xorm:"varchar(35)"`
Email string `json:"email" xorm:"varchar(100)"`
Status bool `json:"status" schema:"status"` // 状态
Listorder uint `json:"listorder"`
ParentId uint `json:"parent_id"`
CreatedAt LocalTime `json:"created_at"`
}
type Dict ¶
type Dict struct {
Id uint `xorm:"pk autoincr 'id'" json:"id" api:"remark:字典属性ID"`
Cid uint `json:"cid" xorm:"notnull" api:"remark:分类ID"`
CatName string `json:"cat_name" xorm:"-"`
Name string `json:"name" xorm:"unique notnull" api:"remark:字典名称|require:true"`
Value string `json:"value" api:"remark:字典值|require:true"`
Remark string `json:"remark" api:"remark:分类备注信息"`
Sort uint `json:"sort"`
Status bool `json:"status"`
CreatedAt time.Time `xorm:"created"`
UpdatedAt time.Time `xorm:"updated"`
}
type DictCategory ¶
type DictCategory struct {
Id uint `xorm:"pk autoincr 'id'" json:"id" api:"remark:分类ID"`
Key string `json:"key" xorm:"key unique notnull" api:"remark:分类标识,唯一|require:true"`
Name string `json:"name" xorm:"notnull" api:"remark:分类名称|require:true"`
Remark string `json:"remark" api:"remark:分类备注信息"`
Status bool `json:"status" api:"remark:状态|require:true"`
CreatedAt time.Time `xorm:"created"`
UpdatedAt time.Time `xorm:"updated"`
}
type District ¶
type District struct {
Id int64 `xorm:"pk autoincr" json:"id"`
Name string `json:"name"`
ParentId int64 `json:"parent_id"`
Initial string `json:"initial"`
Initials string `json:"initials"`
PinYin string `json:"pinyin" xorm:"pinyin"`
Extra string `json:"extra"`
Suffix string `json:"suffix"`
Code string `json:"code"`
AreaCode string `json:"area_code" xorm:"area_code"`
OrderNum uint `json:"order" xorm:"order"`
}
type DocumentModel ¶
type DocumentModel struct {
Id int64 `json:"id"`
Name string `json:"table_name" xorm:"comment('模型名') varchar(100)"`
Table string `json:"table" xorm:"comment('模型表名') varchar(100)"`
Enabled int `json:"enabled"`
ModelType int64 `json:"model_type" xorm:"comment('模型类型: 1=系统模型 0=普通模型')"`
FeTplIndex string `json:"fe_tpl_index" xorm:"comment('前端列表主页模板') varchar(70)"`
FeTplList string `json:"fe_tpl_list" xorm:"comment('前端列表模板') varchar(70)"`
FeTplDetail string `json:"fe_tpl_detail" xorm:"comment('前端详情模板') varchar(70)"`
Remark string `json:"remark" api:"remark:备注" xorm:"comment('备注') text"`
CreatedAt *LocalTime `json:"created"`
UpdatedAt *LocalTime `json:"updated"`
Execed bool `json:"execed" xorm:"comment('是否已执行') tinyint(1)"`
DeletedAt *LocalTime `xorm:"deleted" json:"-"`
}
type DocumentModelDsl ¶
type DocumentModelDsl struct {
Id int64 `json:"id" xorm:"id pk autoincr"`
Mid int64 `json:"mid" xorm:"comment('模型ID') int(5)"`
FieldType int64 `json:"field_type" xorm:"comment('字段类型') int(5)"` // 字段类型ID 命名搞错了 先这样写程序吧
FormName string `json:"form_name" xorm:"comment('表单名称') varchar(50)"`
TableField string `json:"table_field" xorm:"comment('表字段') varchar(50)"`
ListOrder int64 `xorm:"listorder comment('排序值')" json:"listorder"`
Required bool `json:"required" xorm:"comment('是否必填') tinyint(1)"`
DictKey string `json:"dict_key" xorm:"comment('字典分类name,启用is_dict后需设置此字段') varchar(100)"`
RequiredTips string `json:"required_tips" xorm:"comment('必填字段信息') varchar(100)"`
Validator string `json:"validator" xorm:"comment('验证器或规则') varchar(100)"`
Default string `json:"default" xorm:"comment('默认值') varchar(100)"` //默认值
Status bool `json:"status" xorm:"comment('状态 0=禁用 1=启用') tinyint(1)"`
MainTableField bool `json:"main_table_field" xorm:"comment('是否为主表字段') tinyint(1)"`
Component string `json:"component" xorm:"comment('自定义组件配置') text"`
Searchable bool `json:"searchable" xorm:"comment('是否可搜索') tinyint(1)"`
SearchType uint `json:"search_type" xorm:"comment('搜索类型 1=精确 2=模糊 3=多值 4=范围') tinyint(2)"`
Span uint `json:"span" xorm:"comment('表单span宽度') tinyint(3)"`
Sortable bool `json:"sortable" xorm:"comment('是否可排序') tinyint(1)"`
Visible bool `json:"visible" xorm:"comment('是否表单可见') tinyint(1)"`
ListVisible bool `json:"list_visible" xorm:"comment('是否列表可见') tinyint(1)"`
FieldLen uint `json:"field_len" xorm:"comment('字段长度') bigint"`
ListWidth uint `json:"list_width" xorm:"comment('列表字段宽度') int(10)"`
Center bool `json:"center" xorm:"comment('是否列表居中显示内容') tinyint(1)"`
CreatedAt *LocalTime `xorm:"created" json:"created_at"`
UpdatedAt *LocalTime `xorm:"updated" json:"updated_at"`
DeletedAt *LocalTime `xorm:"deleted" json:"deleted_at"`
}
type DocumentModelField ¶
type DocumentModelField struct {
Id int64 `json:"id" xorm:"id pk autoincr"`
Name string `json:"name" xorm:"comment('组件名称') varchar(30)"`
Type string `json:"type" xorm:"comment('数据库字段类型') varchar(20)"`
Desc string `json:"desc" xorm:"comment('组件使用场景描述') text"`
ListComp string `json:"list_comp" xorm:"comment('列表渲染组件') text"`
FormComp string `json:"form_comp" xorm:"comment('对应vue组件') varchar(30)"`
Props string `json:"props" xorm:"comment('属性配置') text"`
}
type Level ¶
type Level struct {
Id int64 `json:"id"`
Name string `json:"name" schema:"name" xorm:"varchar(25)"`
Listorder uint `json:"listorder"`
Status bool `json:"status"`
CreatedAt LocalTime `json:"created" xorm:"created"`
UpdatedAt *LocalTime `json:"updated" xorm:"updated"`
}
Level 职级
type Link ¶
type Link struct {
Id int64 `xorm:"int(11) autoincr not null pk 'id'" json:"id" schema:"id"`
Linktype int `xorm:"tinyint(3) not null 'linktype'" json:"linktype" schema:"linktype"`
Name string `xorm:"varchar(50) not null 'name'" json:"name" schema:"name"`
Url string `xorm:"varchar(255) not null 'url'" json:"url" schema:"url"`
Logo string `xorm:"varchar(100) not null 'logo'" json:"logo" schema:"logo"`
Introduce string `xorm:"varchar(255) not null 'introduce'" json:"introduce" schema:"introduce"`
Listorder int64 `xorm:"int(11) not null 'listorder'" json:"listorder" schema:"listorder"`
Passed int `xorm:"tinyint(1) not null default '0' 'passed'" json:"passed" schema:"passed"`
Addtime LocalTime `xorm:"datetime default 'null' 'addtime'" json:"addtime" schema:"addtime"`
}
type LocalTime ¶
func (LocalTime) MarshalJSON ¶
func (LocalTime) MarshalText ¶
func (*LocalTime) UnmarshalJSON ¶
type Log ¶
type Log struct {
Id int64 `json:"id"`
Level uint8 `json:"level" xorm:"comment('日志类型') tinyint(3)"`
//Uri string `json:"uri" xorm:"comment('请求uri') varchar(255)"`
//Method string `json:"method" xorm:"comment('请求方法') varchar(10)"`
//Params any `json:"params" xorm:"comment('请求参数') json"`
Message string `json:"message" xorm:"comment('操作用户名') text"`
//Stack string `json:"stack" xorm:"comment('调用堆栈') text"`
//Ip string `json:"ip" xorm:"comment('操作IP') varchar(15)"`
Time LocalTime `json:"time" xorm:"comment('操作时间')"`
}
type Member ¶
type Member struct {
Id int64 `xorm:"pk autoincr" json:"id"`
Account string `json:"account" xorm:"comment('账号') varchar(40)"`
Password string `json:"password" xorm:"comment('密码') varchar(32)"`
Avatar string `json:"avatar" xorm:"comment('头像') varchar(40)"`
Nickname string `json:"nickname" xorm:"comment('昵称') varchar(40)"`
Integral uint `json:"integral" xorm:"comment('积分') int(11)"`
Telphone string `json:"telphone" xorm:"comment('电话') varchar(30)"`
Qq string `json:"qq" xorm:"comment('QQ') varchar(15)"`
Description string `json:"description" xorm:"comment('个人简介')"`
CreatedAt LocalTime `json:"created" xorm:"created"`
UpdatedAt *LocalTime `json:"updated" xorm:"updated"`
LoginTime LocalTime `json:"login_time" xorm:"datetime comment('最后登录时间')"`
LoginIp string `json:"login_ip" xorm:"varchar(15) comment('最后登录IP')"`
Email string `json:"email" xorm:"comment('邮箱') varchar(30)"`
Status uint `json:"status" xorm:"comment('状态: 0=禁用 1=待验证 2=正常')"`
Sex uint `json:"sex" xorm:"comment('性别: 0=保密 1=男 2=女') tinyint(3)"`
GroupId uint `json:"group_id" xorm:"comment('分组ID') int(6)"`
VerifyToken string `json:"-" xorm:"comment('验证token')"`
}
type MemberGroup ¶
type MemberGroup struct {
Id int64 `xorm:"pk autoincr" json:"id"`
Name string `json:"name" xorm:"comment('名称') varchar(40)"`
Description string `json:"description" xorm:"comment('介绍')"`
Status uint `json:"status" xorm:"comment('状态: 0=禁用 1=正常')"`
Listorder uint `json:"listorder"`
CreatedAt LocalTime `json:"created" xorm:"created"`
UpdatedAt *LocalTime `json:"updated" xorm:"updated"`
}
type Menu ¶
type Menu struct {
Id int64 `xorm:"pk autoincr" json:"id" api:"remark:菜单ID"`
Name string `json:"name" api:"remark:菜单名称"`
Parentid int64 `json:"parentId" api:"remark:父菜单ID"`
PluginId int64 `json:"plugin_id" api:"remark: 插件ID,用于标记插件创建菜单,卸载时使用"`
Listorder int64 `json:"orderNum" api:"remark:排序号"`
Display bool `json:"isShow" api:"remark:是否显示"`
Type int64 `json:"type" api:"remark:菜单类型" xorm:"comment('类型 0:目录 1:菜单 2:按钮')"`
Children []Menu `json:"children" xorm:"-" form:"-"`
Icon string `json:"icon" api:"remark:图标"`
ViewPath string `json:"viewPath" api:"remark:视图路径"`
KeepAlive bool `json:"keepAlive" api:"remark:路由缓存"`
Router string `json:"router" api:"remark:路由地址"`
Perms string `json:"perms" xorm:"comment('权限标识')"`
Identification string `json:"identification" xorm:"comment('权限标识, 查询时唯一索引') unique"`
}
type ModelDslFields ¶
type ModelDslFields []DocumentModelDsl
func (ModelDslFields) GetListFields ¶
func (m ModelDslFields) GetListFields() []string
GetListFields 允许表单显示的列 固定字段不可隐藏
func (ModelDslFields) GetSearchableFields ¶
func (m ModelDslFields) GetSearchableFields() []any
GetSearchableFields 构建搜索字段key
type Page ¶
type Page struct {
Id int64 `xorm:"pk comment('栏目ID')" json:"id"`
Title string `json:"title" xorm:"comment('页面标题') varchar(100)"`
Keywords string `json:"keywords" xorm:"comment('页面关键字') varchar(255)"`
Description string `json:"description" xorm:"comment('页面描述') varchar(255)"`
Content string `json:"content" xorm:"comment('页面内容') text"`
CreatedAt LocalTime `json:"created_at" xorm:"created"`
UpdatedAt LocalTime `json:"updated_at" xorm:"updated"`
}
type Plugin ¶
type Plugin struct {
Id int64 `json:"id"`
Name string `json:"name" schema:"name" xorm:"varchar(100) comment('插件名称')"`
Author string `json:"author" xorm:"varchar(100) comment('作者')"`
Contact string `json:"contact" xorm:"varchar(100) comment('联系方式')"`
Description string `json:"description" xorm:"text comment('功能描述')"`
Version string `json:"version" xorm:"varchar(100) comment('版本号')"`
Sign string `json:"sign" xorm:"comment('标志') unique"`
Path string `json:"path" xorm:"comment('插件本地路径') unique"`
Enable bool `json:"enable" xorm:"comment('是否启用 0:否 1:是')"`
Status uint `json:"status" xorm:"comment('状态 0:缺少配置 1:可用 2: 配置错误 3:未知错误')"`
View []map[string]any `json:"view" xorm:"json comment('页面配置信息')"`
Page string `json:"page" xorm:"-"`
Config map[string]any `json:"config" xorm:"json comment('插件绑定配置')"`
Prefix string `json:"prefix" xorm:"comment('插件访问前缀')"`
NoInstall bool `json:"no_install" xorm:"-"`
ErrMsg string `json:"errmsg" xorm:"-"`
CreatedAt LocalTime `json:"created_at"`
UpdatedAt LocalTime `json:"updated_at"`
}
type Position ¶
type Position struct {
Id int64 `json:"id"`
Name string `json:"name" schema:"name" xorm:"varchar(25)"`
Code string `json:"code" xorm:"varchar(25)"`
Listorder uint `json:"listorder"`
Status bool `json:"status"`
Remark string `json:"remark" xorm:"text"`
}
Position 职位管理
type RequestLog ¶
type RequestLog struct {
Id int64 `json:"id"`
Params string `json:"params" xorm:"comment('参数') varchar(255)"`
Uri string `json:"uri" xorm:"comment('请求uri') varchar(255)"`
Userid int64 `json:"userid" xorm:"comment('操作用户ID') int(6)"`
Username string `json:"username" xorm:"comment('操作用户名') varchar(100)"`
Ip string `json:"ip" xorm:"comment('操作IP') varchar(15)"`
Time LocalTime `json:"time" xorm:"comment('操作时间')"`
Method string `json:"method" xorm:"comment('请求方法') varchar(10)"`
}
type Setting ¶
type Setting struct {
Id uint `json:"id" xorm:"pk autoincr"`
Key string `xorm:"unique comment('配置KEY') varchar(50)" json:"key" schema:"key"`
FormName string `json:"form_name" xorm:"comment('名称') varchar(100)" schema:"form_name"`
Value string `json:"value" schema:"value" xorm:"comment('配置值') text"`
Group string `json:"group" schema:"group" xorm:"comment('所属分组')"`
Default string `json:"default" schema:"default" xorm:"comment('默认值')"`
Listorder uint `json:"listorder" xorm:"comment('列表排序')"`
Remark string `json:"remark" xorm:"comment('配置描述')"`
Editor string `json:"editor" schema:"editor"`
Extra string `json:"extra" xorm:"-" schema:"extra"`
Options map[string]any `json:"options" xorm:"json"`
}
type Tags ¶
type Tags struct {
Id int64 `xorm:"pk autoincr id" json:"id"`
Name string `json:"name"`
RefNum uint `json:"ref_num"`
Clicks uint `json:"clicks"`
SeoTitle string `json:"seo_title"`
SeoKeywords string `json:"seo_keywords"`
SeoDescription string `json:"seo_description"`
Listorder uint `json:"listorder"`
Status uint `json:"status"`
CreatedAt LocalTime `json:"created_at"`
}
type Todo ¶
type Todo struct {
Id int64 `xorm:"int(11) autoincr not null pk 'id'" json:"id"`
Type string `` /* 150-byte string literal not displayed */
Name string `xorm:"varchar(50) not null 'name' comment('普通输入框')" json:"name" validate:"required"`
Introduce string `xorm:"varchar(255) not null 'introduce' comment('普通多行输入框::cms-textarea')" json:"introduce" validate:"required"`
Listorder int64 `xorm:"int(11) not null 'listorder' comment('不可为空数字')" json:"listorder" validate:"required"`
Status int `` /* 144-byte string literal not displayed */
PutDate LocalTime `xorm:"date default null 'put_date' comment('日期')" json:"put_date" validate:"required"`
PutDatetime LocalTime `xorm:"datetime default null 'put_datetime' comment('时间日期')" json:"put_datetime" validate:"required"`
StartTime LocalTime `xorm:"datetime default null 'start_time' comment('开始时间$end=end_time')" json:"start_time" validate:"required"`
EndTime LocalTime `` /* 138-byte string literal not displayed */
Logo string `xorm:"varchar(30) default null 'logo' comment('单图上传')" json:"logo" validate:"required"`
Logos string `xorm:"varchar(255) default null 'logos' comment('多图上传')" json:"logos" validate:"required"`
}
type WechatAccount ¶
type WechatAccount struct {
Id int64 `json:"id" xorm:"pk autoincr"`
AppId string `json:"appid" xorm:"char(20) not null comment('appid')"`
Name string `json:"name" xorm:"varchar(50) not null comment('公众号名称')"`
Type uint `json:"type" xorm:"tinyint(1) comment('账号类型')"`
Verified bool `json:"verified" xorm:"tinyint(1) comment('认证状态')"`
Secret string `json:"secret" xorm:"char(32)"`
Token string `json:"token" xorm:"varchar(32)"`
AesKey string `json:"aesKey" xorm:"varchar(43)"`
}
type WechatLog ¶
type WechatLog struct {
Id int64 `json:"id" xorm:"pk autoincr"`
AppId string `json:"appid" xorm:"char(20)"`
OpenId string `json:"openid" xorm:"varchar(32)"`
Inout uint `json:"in_out" xorm:"tinyint(1)" xorm:"comment('1=来自公众号的回复,0=来自粉丝的消息')"`
MsgType string `json:"msg_type" xorm:"varchar(50)"`
Detail *message.MixMessage `json:"detail" xorm:"json"`
CreatedAt LocalTime `json:"created_at" xorm:"created"`
FansInfo *WechatMember `json:"fans_info" xrom:"-"`
}
type WechatMaterial ¶
type WechatMaterial struct {
Id int64 `json:"id" xorm:"pk autoincr"`
Appid string `json:"appid" xorm:"char(20) not null comment('appid')"`
Type string `json:"type" xorm:"varchar(5) comment('媒体素材类型')"`
MediaId string `json:"media_id" xorm:"varchar(40) comment('媒体ID')"`
Url string `json:"url"`
UpdateTime LocalTime `json:"update_time"`
}
type WechatMember ¶
type WechatMember struct {
Id int64 `xorm:"pk autoincr" json:"id"`
Appid string `json:"appid"`
Openid string `json:"openid"`
Phone string `json:"phone"`
Nickname string `json:"nickname"`
Sex int `json:"sex"`
City string `json:"city"`
Province string `json:"province"`
Headimgurl string `json:"headimgurl"`
SubscribeTime string `json:"subscribe_time"`
Subscribe bool `json:"subscribe"`
Unionid string `json:"unionid"`
Remark string `json:"remark"`
TagidList []int32 `json:"tagid_list" xorm:"json"`
SubscribeScene string `json:"subscribe_scene"`
QrSceneStr string `json:"qr_scene_str"`
Poster string `json:"poster"`
}
WechatMember 微信粉丝
type WechatMsgReplyRule ¶
type WechatMsgReplyRule struct {
Id int64 `json:"id"`
AppId string `json:"appid" xorm:"char(20) appid"`
RuleName string `json:"ruleName"`
MatchValue string `json:"matchValue"`
ExactMatch bool `json:"exactMatch" xorm:"comment('是否精确匹配')"`
ReplyType string `json:"replyType"`
ReplyContent string `json:"replyContent"`
Status bool `json:"status"`
Desc string `json:"desc"`
EffectTimeStart string `json:"effectTimeStart" xorm:"time"`
EffectTimeEnd string `json:"effectTimeEnd" xorm:"time"`
Priority uint `json:"priority"`
CreatedAt LocalTime `json:"created_at" xorm:"created"`
UpdatedAt LocalTime `json:"updated_at" xorm:"updated"`
}
type WechatMsgTemplate ¶
type WechatMsgTemplate struct {
Id int64 `json:"id" xorm:"pk autoincr"`
Appid string `json:"appid" xorm:"char(20) not null comment('appid')"`
TemplateId string `json:"template_id" xorm:"varchar(50) not null comment('模板ID')"`
Title string `json:"title" xorm:"varchar(20) comment('模板标题')"`
Name string `json:"name" xorm:"varchar(20) comment('模板名称')"`
PrimaryIndustry string `json:"primary_industry"`
DeputyIndustry string `json:"deputy_industry"`
Content string `json:"content" xorm:"text"`
Data []map[string]any `json:"data" xorm:"json"`
Url string `json:"url" xorm:"varchar(255)"`
MiniProgram map[string]any `json:"miniprogram" xorm:"json"`
Status bool `json:"status" xorm:"comment('是否有效0=无效,1=有效')"`
Example string `json:"example" xorm:"comment('模板示例')"`
CreatedAt LocalTime `json:"created_at" xorm:"created"`
UpdatedAt LocalTime `json:"updated_at" xom:"updated"`
}
type WechatQrcode ¶
type WechatQrcode struct {
Id int64 `json:"id" xorm:"pk autoincr"`
AppId string `json:"appid" xorm:"char(20) appid"`
IsTemp bool `json:"is_temp" xorm:"comment('是否为临时二维码')"`
SceneStr string `json:"scene_str"`
Ticket string `json:"ticket"`
Url string `json:"url"`
ExpireTime LocalTime `json:"expire_time"`
CreatedAt LocalTime `json:"created_at" xorm:"created"`
}
Source Files
¶
- admin.go
- admin_role.go
- admin_role_priv.go
- advert.go
- advert_space.go
- attachment_type.go
- attachments.go
- category.go
- category_priv.go
- content.go
- define.go
- department.go
- dict_category.go
- district.go
- document_model.go
- document_model_dsl.go
- document_model_field.go
- level.go
- link.go
- log.go
- member.go
- menu.go
- page.go
- plugin.go
- position.go
- request_log.go
- search_m_a_e.go
- setting.go
- tags.go
- todo.go
- wechat_account.go
- wechat_log.go
- wechat_material.go
- wechat_msg_reply_rule.go
- wechat_qrcode.go
- wechat_template.go
- wechat_user.go
Click to show internal directories.
Click to hide internal directories.