Documentation ¶
Index ¶
- type ActionCodeItem
- type AdminIdAndDepartIdItem
- type AdminInviteAddInput
- type AdminInviteAddOutput
- type AdminInviteDetailItem
- type AdminInviteGetListInput
- type AdminInviteGetListOutput
- type AdminInviteItem
- type AdminInviteListItem
- type AdminInviteManageItem
- type AdminInviteUserItem
- type AdminInviteUserValidItem
- type AdminInviteValidItem
- type ArticleAttrItem
- type ArticleBasicItem
- type ArticleCategoryAttrItem
- type ArticleCategoryBasicItem
- type ArticleCategoryDetailItem
- type ArticleCategoryListItem
- type ArticleCategoryStatusItem
- type ArticleContentItem
- type ArticleDetailFmtItem
- type ArticleDetailItem
- type ArticleFmtItem
- type ArticleGetListInput
- type ArticleGetListOutput
- type ArticleListItem
- type ArticleStatusShowItem
- type ArticleUrlItem
- type ArticleWhereItem
- type AttachmentBasicItem
- type AttachmentUrlItem
- type CommonIncOrDecByIdItem
- type CommonIncOrDecItem
- type CommonListAndTotalInput
- type CommonPaginationItem
- type CommonResponseItem
- type ConfigDetailItem
- type ConfigGroupCategoryItem
- type ConfigGroupItem
- type ConfigGroupTreeItem
- type ConfigGroupTreeListInput
- type ConfigIdByNameAndGroupItem
- type ConfigListInput
- type ConfigNameValueItem
- type ConfigSaveHandlerItem
- type Context
- type CurrTemplateItem
- type CurrUserLoginDeviceListOutput
- type DepartmentDetailItem
- type DepartmentItem
- type DepartmentNameItem
- type DepartmentPeopleNumItem
- type DepartmentRoleId
- type DepartmentSaveInput
- type DepartmentTreeItem
- type LoginAfterLogoutItem
- type LoginDeviceAttrItem
- type LoginUserIdAndTokenItem
- type PermAssocPermId
- type PermCodeActionItem
- type PermCustomUpdateColumnInput
- type PermissionsListItem
- type PermissionsListTreeItem
- type PermissionsMenuTreeIem
- type PermissionsPathCodeItem
- type PermissionsTreeItem
- type RecordLogItem
- type RoleIdAndNameItem
- type RolesDetailItem
- type RolesItem
- type RolesListInput
- type RolesListOutput
- type SendOutFromSmsItem
- type SendSmsResultItem
- type SendSmsTemplateItem
- type SmsOutItem
- type SmsRecordDetailItem
- type SmsRecordExtItem
- type SmsRecordItem
- type SmsRecordListInput
- type SmsRecordListOutput
- type SmsRecordWhereItem
- type SmsSendRecordNewItem
- type SmsSyncOutTmplStatusItem
- type SmsTemplateDetailOutput
- type SmsTemplateItem
- type SmsTemplateListInput
- type SmsTemplateListOutput
- type SmsTemplateOutItem
- type SmsTemplateOutListInput
- type SmsTemplateOutListOutput
- type SmsTemplateWhereItem
- type SysMapAttrItem
- type SysMapBasicItem
- type SysMapDetailItem
- type SysMapGetListInput
- type SysMapGetListOutput
- type SysMapListItem
- type SysMapValueAttrItem
- type SysMapValueBasicItem
- type SysMapValueDetailItem
- type SysMapValueListItem
- type SystemLogAttrItem
- type SystemLogDetailItem
- type SystemLogFmtItem
- type SystemLogGetDetailOutput
- type SystemLogGetListInput
- type SystemLogGetListOutput
- type SystemLogItem
- type SystemLogListItem
- type SystemLogWhereItem
- type UidByAidItem
- type UploadAttachmentItem
- type UploadConfigItem
- type UploadConfigLocalItem
- type UploadFileInput
- type UploadFileItem
- type UploadFileOutput
- type UploadFileResponseItem
- type UserAccountItem
- type UserAccountLoginPwdItem
- type UserAccountNameItem
- type UserAdminAuthDetailOutput
- type UserAdminDetailItem
- type UserAdminFmtItem
- type UserAdminGetDetailItem
- type UserAdminGetDetailOutput
- type UserAdminGetListInput
- type UserAdminGetListOutput
- type UserAdminInviteAddItem
- type UserAdminSaveItem
- type UserAdminWhereItem
- type UserBasicDetailItem
- type UserDetailItem
- type UserDeviceBasicItem
- type UserDeviceLoginAfterItem
- type UserDeviceUserAgentItem
- type UserForgotPwdSendCaptchaInput
- type UserForgotPwdUpdatePwdInput
- type UserForgotPwdValidateCaptchaInput
- type UserLoginAfterItem
- type UserLoginCurrLoginItem
- type UserLoginDeviceItem
- type UserLoginForceOfflineItem
- type UserLoginSendSmsCaptchaInput
- type UserOauthAccountLoginItem
- type UserOauthAfterItem
- type UserOauthAfterValidateItem
- type UserOauthLoginDetailItem
- type UserOauthLoginInput
- type UserOauthLoginItem
- type UserOauthLoginOutput
- type UserOauthLoginSignItem
- type UserOauthOtherParam
- type UserOauthSendSmsCaptchaItem
- type UserOauthSmsLoginItem
- type UserSaveUserDetailItem
- type UserUpdateDetailInput
- type UserUpdateDetailItem
- type UserUpdatePwdInput
- type UserUpdatePwdItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionCodeItem ¶
ActionCodeItem 页面操作权限码属性
type AdminIdAndDepartIdItem ¶
type AdminIdAndDepartIdItem struct { AdminId uint `json:"admin_id" dc:"管理员ID"` DepartId uint `json:"depart_id" dc:"部门ID"` }
AdminIdAndDepartIdItem 管理员ID或部门ID属性
type AdminInviteAddInput ¶
type AdminInviteAddInput struct { IsSuperManage enums.AdminIsSuperManage `json:"is_super_manage" dc:"是否超管"` DepartId []uint `json:"depart_id" dc:"部门ID"` }
AdminInviteAddInput 添加管理员邀请请求参数
type AdminInviteAddOutput ¶
type AdminInviteAddOutput struct {
Token string `json:"token" dc:"授权Token"`
}
AdminInviteAddOutput 添加管理员邀请输出结果
type AdminInviteDetailItem ¶
type AdminInviteDetailItem struct { AdminInviteItem AdminInviteManageItem AdminInviteValidItem AdminInviteUserItem }
AdminInviteDetailItem 管理员邀请详情属性
type AdminInviteGetListInput ¶
type AdminInviteGetListInput struct { CommonPaginationItem Status enums.AdminInviteStatus `json:"status" dc:"状态"` }
AdminInviteGetListInput 管理员邀请获取列表请求参数
type AdminInviteGetListOutput ¶
type AdminInviteGetListOutput struct { CommonResponseItem Rows []AdminInviteListItem `json:"rows" dc:"数据列表"` }
AdminInviteGetListOutput 管理员邀请获取列表响应输出
type AdminInviteItem ¶
type AdminInviteItem struct { Id uint `json:"id" dc:"邀请ID"` Token string `json:"token" dc:"邀请Token"` }
AdminInviteItem 管理员邀请熟悉
type AdminInviteListItem ¶
type AdminInviteListItem struct { AdminInviteItem AdminInviteManageItem AdminInviteValidItem CreateAt string `json:"create_at" dc:"创建时间"` }
AdminInviteListItem 管理员邀请列表属性
type AdminInviteManageItem ¶
type AdminInviteManageItem struct { AdminId uint `json:"admin_id" dc:"管理员ID"` ManageName string `json:"manage_name" dc:"管理员"` RefreshNum uint `json:"refresh_num" dc:"刷新时间"` }
AdminInviteManageItem 管理员邀请管理属性
type AdminInviteUserItem ¶
type AdminInviteUserItem struct { Uid uint `json:"uid" dc:"用户ID"` DepartId string `json:"depart_id" dc:"部门ID"` IsSuperManage uint `json:"is_super_manage" dc:"是否超管"` }
AdminInviteUserItem 管理员邀请用户信息
type AdminInviteUserValidItem ¶
type AdminInviteUserValidItem struct { AdminInviteValidItem AdminInviteUserItem }
AdminInviteUserValidItem 管理员邀请用户有效属性
type AdminInviteValidItem ¶
type AdminInviteValidItem struct { Expired string `json:"expired" dc:"到期时间"` Status uint `json:"status" dc:"邀请状态"` }
AdminInviteValidItem 管理员邀请效期属性
type ArticleAttrItem ¶
type ArticleAttrItem struct { Description string `json:"description" dc:"文章摘要"` Keywords string `json:"keywords" dc:"关键词"` }
ArticleAttrItem 文章属性
type ArticleBasicItem ¶
type ArticleBasicItem struct { Id uint `json:"id" dc:"文章ID"` Name string `json:"name" dc:"文章名"` AbbrevName string `json:"abbrev_name" dc:"文章名缩写"` Cid uint `json:"cid" dc:"分类ID"` AssocAlias string `json:"assoc_alias" dc:"关联别名,例如注册协议"` }
ArticleBasicItem 文章基础属性
type ArticleCategoryAttrItem ¶
type ArticleCategoryAttrItem struct {
Description string `json:"description" dc:"类目详情"`
}
ArticleCategoryAttrItem 文章类目属性
type ArticleCategoryBasicItem ¶
type ArticleCategoryBasicItem struct { Id uint `json:"id" dc:"类目ID"` Name string `json:"name" dc:"类目名"` Pid uint `json:"pid" dc:"父级ID"` }
ArticleCategoryBasicItem 文章类目基础属性
type ArticleCategoryDetailItem ¶
type ArticleCategoryDetailItem struct { ArticleCategoryBasicItem ArticleCategoryStatusItem ArticleCategoryAttrItem }
ArticleCategoryDetailItem 获取文章类目详情属性
type ArticleCategoryListItem ¶
type ArticleCategoryListItem struct { ArticleCategoryBasicItem ArticleCategoryStatusItem }
ArticleCategoryListItem 获取文章类目列表属性
type ArticleCategoryStatusItem ¶
type ArticleCategoryStatusItem struct { Status uint `json:"status" dc:"类目状态"` IsShow uint `json:"is_show" dc:"是否显示"` }
ArticleCategoryStatusItem 文章类目状态属性
type ArticleContentItem ¶
type ArticleContentItem struct {
Content string `json:"content" dc:"文章内容"`
}
ArticleContentItem 文章内容属性
type ArticleDetailFmtItem ¶
type ArticleDetailFmtItem struct { ArticleStatusShowItem ArticleFmtItem }
ArticleDetailFmtItem 文章详情格式化
type ArticleDetailItem ¶
type ArticleDetailItem struct { ArticleBasicItem ArticleAttrItem ArticleUrlItem ArticleContentItem ArticleDetailFmtItem }
ArticleDetailItem 文章详情属性
type ArticleFmtItem ¶
type ArticleFmtItem struct { FmtStatus string `json:"fmt_status" dc:"格式化状态"` FmtIsShow string `json:"fmt_is_show" dc:"格式化显示"` }
ArticleFmtItem 格式化文章状态属性
type ArticleGetListInput ¶
type ArticleGetListInput struct { CommonPaginationItem ArticleWhereItem }
ArticleGetListInput 获取文章列表请求参数
type ArticleGetListOutput ¶
type ArticleGetListOutput struct { CommonResponseItem Rows []ArticleListItem `json:"rows" dc:"数据列表"` }
ArticleGetListOutput 获取文章列表响应结果
type ArticleListItem ¶
type ArticleListItem struct { ArticleBasicItem ArticleDetailFmtItem CreateAt string `json:"create_at" dc:"创建时间"` }
ArticleListItem 获取文章列表属性
type ArticleStatusShowItem ¶
type ArticleStatusShowItem struct { Status uint `json:"status" dc:"文章状态"` IsShow uint `json:"is_show" dc:"是否显示"` Sort uint `json:"sort" dc:"排序"` }
ArticleStatusShowItem 文章状态属性
type ArticleUrlItem ¶
type ArticleUrlItem struct { ImgUrl string `json:"img_url" dc:"图片URL"` VideoUrl string `json:"video_url" dc:"视频URL"` }
ArticleUrlItem 文章视频图片URL属性
type ArticleWhereItem ¶
type ArticleWhereItem struct { Name string `json:"name" dc:"文章名"` Cid int `json:"cid" dc:"类目ID"` AssocAlias string `json:"assoc_alias" dc:"关联别名"` Status int `json:"status" dc:"文章状态"` IsShow int `json:"is_show" dc:"是否显示"` }
ArticleWhereItem 文章查询条件属性
type AttachmentBasicItem ¶
type AttachmentBasicItem struct { Id uint `json:"id" description:"附件ID"` // 附件ID CatId uint `json:"cat_id" description:"附件分类"` // 附件分类 Name string `json:"name" description:"附件名"` // 附件名 RealName string `json:"real_name" description:"附件原名"` // 附件原名 AttSize int `json:"att_size" description:"附件尺寸大小"` // 附件尺寸大小 AttPath string `json:"att_path" description:"附件路径"` // 附件路径 AttUrl string `json:"att_url" description:"附近地址"` // 附近地址 AttType string `json:"att_type" description:"附件类型:image/png"` // 附件类型:image/png Position uint `json:"position" description:"排序位置:从小到大"` // 排序位置:从小到大 ChannelId uint `json:"channel_id" description:"渠道ID"` // 渠道ID StorageType string `json:"storage_type" description:"存储类型:local本地,qiniu七牛等"` // 存储类型:local本地,qiniu七牛等 Hasher string `json:"hasher" description:"Hash值"` // Hash值 AttachId string `json:"attach_id" description:"附件ID"` // 附件ID Width uint `json:"width" description:"宽度"` // 宽度 Height uint `json:"height" description:"高度"` // 高度 }
AttachmentBasicItem 文件基础属性
type AttachmentUrlItem ¶
type AttachmentUrlItem struct { AttPath string `json:"att_path" dc:"附件路径"` AttUrl string `json:"att_url" dc:"附件URL"` }
AttachmentUrlItem 附件地址属性
type CommonIncOrDecByIdItem ¶
type CommonIncOrDecByIdItem struct { Id []uint // ID字段 CommonIncOrDecItem }
CommonIncOrDecByIdItem 根据主键ID更新字段数量
type CommonIncOrDecItem ¶
type CommonIncOrDecItem struct { Columns string // 更新字段 Amount int // 更新数量 IncByDec bool // 是否增量和减量:false增量,true减量 }
CommonIncOrDecItem 增量或减量属性
type CommonListAndTotalInput ¶
type CommonListAndTotalInput struct { CommonPaginationItem Where interface{} `json:"where"` Sort string `json:"sort"` }
CommonListAndTotalInput 公共处理列表和总数请求参数
type CommonPaginationItem ¶
type CommonPaginationItem struct { Page int `json:"page" dc:"页码"` Size int `json:"size" dc:"查询数量"` }
CommonPaginationItem 公共分页属性
type CommonResponseItem ¶
type CommonResponseItem struct {
Total int `json:"total" dc:"总数"`
}
CommonResponseItem 公共响应资源属性
type ConfigGroupCategoryItem ¶
type ConfigGroupCategoryItem struct { Id uint `json:"id" dc:"配置组ID"` Name string `json:"name" dc:"配置组名"` GroupName string `json:"group_name" dc:"配置组关联名"` Description string `json:"description" dc:"简介详情"` Pid uint `json:"pid" dc:"父级ID"` }
ConfigGroupCategoryItem 分类配置组属性
type ConfigGroupItem ¶
type ConfigGroupItem struct { GroupName string `json:"group_name" dc:"配置组名"` GroupId uint `json:"group_id" dc:"配置组ID"` ConfigNameValueItem }
ConfigGroupItem 配置组名数据
type ConfigGroupTreeItem ¶
type ConfigGroupTreeItem struct { ConfigGroupCategoryItem Children []ConfigGroupTreeItem `json:"children" dc:"子级配置"` }
ConfigGroupTreeItem 配置组详情属性
type ConfigGroupTreeListInput ¶
type ConfigGroupTreeListInput struct {
Name string `json:"name" dc:"配置名"`
}
ConfigGroupTreeListInput 获取配置组列表请求参数
type ConfigIdByNameAndGroupItem ¶
type ConfigIdByNameAndGroupItem struct { ConfigGroupItem Id uint `json:"id" dc:"配置ID"` }
ConfigIdByNameAndGroupItem 根据配置名和配置组获取配置ID属性
type ConfigListInput ¶
type ConfigListInput struct { GroupId uint `json:"group_id" dc:"配置组ID"` GroupName string `json:"group_name" dc:"配置组名"` }
ConfigListInput 获取配置列表请求参数
type ConfigNameValueItem ¶
type ConfigNameValueItem struct { Name string `json:"name" dc:"配置名"` Value string `json:"value" dc:"配置值"` DefaultValue string `json:"default_value" dc:"默认配置值"` }
ConfigNameValueItem 配置名和配置值
type ConfigSaveHandlerItem ¶
ConfigSaveHandlerItem 业务配置保存处理属性
type Context ¶
type Context struct { User *UserAccountItem Data map[enums.ContextDataKey]interface{} }
自定义上下文
type CurrTemplateItem ¶
type CurrTemplateItem struct { Name string `json:"name" dc:"模板名称"` Content string `json:"content" dc:"模板内容"` TemplateId string `json:"template_id" dc:"外部平台模板ID"` }
CurrTemplateItem 获取当前模板内容和ID
type CurrUserLoginDeviceListOutput ¶
type CurrUserLoginDeviceListOutput struct {
Rows []*UserLoginDeviceItem `json:"rows" dc:"数据"`
}
CurrUserLoginDeviceListOutput 当前用户登陆设备列表属性
type DepartmentDetailItem ¶
type DepartmentDetailItem struct { DepartmentItem RoleId []uint `json:"role_id" dc:"角色ID"` RoleList []RoleIdAndNameItem `json:"role_list" dc:"角色列表"` }
DepartmentDetailItem 部门详情属性
type DepartmentItem ¶
type DepartmentItem struct { Id uint `json:"id" dc:"部门ID"` DepartName string `json:"depart_name" dc:"部门名称"` AbbrevName string `json:"abbrev_name" dc:"部门简写"` DepartNo string `json:"depart_no" dc:"部门编号"` Pid uint `json:"pid" dc:"父级ID"` Status uint `json:"status" dc:"部门状态"` Sort uint `json:"sort" dc:"排序"` }
DepartmentItem 部门属性
type DepartmentNameItem ¶
type DepartmentNameItem struct { Id uint `json:"id" dc:"部门ID"` DepartName string `json:"depart_name" dc:"部门名"` }
DepartmentNameItem 通过部门ID获取部门名称属性
type DepartmentPeopleNumItem ¶
type DepartmentPeopleNumItem struct { DepartId uint `json:"depart_id" dc:""` Total uint `json:"total" dc:"部门人数"` }
DepartmentPeopleNumItem 部门人数熟悉
type DepartmentRoleId ¶
type DepartmentRoleId struct {
RoleId uint `json:"role_id" dc:"角色ID"`
}
DepartmentRoleId 部门角色ID
type DepartmentSaveInput ¶
type DepartmentSaveInput struct { DepartmentItem RoleId []uint `json:"role_id" dc:"角色ID"` }
DepartmentSaveInput 保存部门数据请求参数
type DepartmentTreeItem ¶
type DepartmentTreeItem struct { DepartmentItem PeopleNum uint `json:"people_num" dc:"部门人数"` }
DepartmentTreeItem 树形部门属性
type LoginAfterLogoutItem ¶
type LoginAfterLogoutItem struct { Uid uint `json:"uid"` AccountToken string `json:"account_token"` LoginStatus enums.LoginOauthStatus `json:"login_status"` }
LoginAfterLogoutItem 用户退出登录后置处理
type LoginDeviceAttrItem ¶
type LoginDeviceAttrItem struct { LoginIp string `json:"login_ip" dc:"登录IP"` LoginIpLocation string `json:"login_ip_location" dc:"登录IP地址"` DeviceType string `json:"device_type" dc:"设备类型"` DeviceContent string `json:"device_content" dc:"设备详情"` Mac string `json:"mac" dc:"MAC地址"` CreateAt string `json:"create_at" dc:"创建时间"` }
LoginDeviceAttrItem 用户登陆设备属性
type LoginUserIdAndTokenItem ¶
type LoginUserIdAndTokenItem struct { UserId uint `json:"user_id" dc:"用户ID"` Token string `json:"token" dc:"登录Token"` }
LoginUserIdAndTokenItem 用户登录获取用户ID和Token
type PermAssocPermId ¶
type PermAssocPermId struct {
PermissionsId uint `json:"permissions_id" dc:"权限ID"`
}
PermAssocPermId 权限关联-权限ID
type PermCodeActionItem ¶
type PermCodeActionItem struct { ActionCode map[string]map[string]string `json:"action_code" dc:"页面操作权限码"` ActionApi map[string]string `json:"action_api" dc:"操作接口码"` }
PermCodeActionItem 权限码操作属性
type PermCustomUpdateColumnInput ¶
type PermCustomUpdateColumnInput struct { PermId uint `json:"perm_id" dc:"权限ID"` Columns enums.PermCustomUpdateColumns `json:"columns" dc:"字段"` Value interface{} `json:"value" dc:"更新值"` }
PermCustomUpdateColumnInput 权限自定义更新字段请求参数
type PermissionsListItem ¶
type PermissionsListItem struct { PermissionsTreeItem IsDisabled uint `json:"is_disabled" dc:"是否禁用:0正常,1禁用"` PermCode string `json:"perm_code" dc:"权限码"` Sort uint `json:"sort" dc:"排序"` }
PermissionsListItem 权限列表菜单属性
type PermissionsListTreeItem ¶
type PermissionsListTreeItem struct { PermissionsListItem Children []PermissionsListTreeItem `json:"children" dc:"子级"` }
PermissionsListTreeItem 权限列表菜单树形属性
type PermissionsMenuTreeIem ¶
type PermissionsMenuTreeIem struct { PermissionsTreeItem Children []PermissionsMenuTreeIem `json:"children" dc:"子级"` }
PermissionsMenuTreeIem 权限菜单树形属性
type PermissionsPathCodeItem ¶
type PermissionsPathCodeItem struct { Id uint `json:"id" dc:"权限ID"` Pid uint `json:"pid" dc:"父级ID"` Path string `json:"path" dc:"页面地址"` ApiPath string `json:"api_path" dc:"api地址"` PermCode string `json:"perm_code" dc:"权限码"` Name string `json:"name" dc:"权限名"` }
PermissionsPathCodeItem 权限路由权限码属性
type PermissionsTreeItem ¶
type PermissionsTreeItem struct { Id uint `json:"id" dc:"权限ID"` Name string `json:"name" dc:"权限名"` MenuType uint `json:"menu_type" dc:"权限类型"` Path string `json:"path" dc:"页面地址"` Pid uint `json:"pid" dc:"父级ID"` IsShow uint `json:"is_show" dc:"菜单是否显示:0显示,1隐藏"` }
PermissionsTreeItem 树形权限结构属性
type RecordLogItem ¶
type RecordLogItem struct { Content string // 日志内容也是日志名 ApiUrl string // 接口地址 ResponseText string // 响应结果 }
RecordLogItem 记录日志属性
type RoleIdAndNameItem ¶
RoleIdAndNameItem 角色ID和名称属性
type RolesDetailItem ¶
RolesDetailItem 角色详情属性
type RolesItem ¶
type RolesItem struct { Id uint `json:"id" dc:"角色ID"` Name string `json:"name" dc:"角色名称"` Description string `json:"description" dc:"角色详情"` RoleStatus uint `json:"role_status" dc:"角色状态"` Sort uint `json:"sort" dc:"排序"` CreateAt string `json:"create_at" dc:"创建时间"` }
RolesItem 角色属性
type RolesListInput ¶
type RolesListInput struct { CommonPaginationItem Name string `json:"name" dc:"角色名"` Status enums.RoleStatus `json:"status" dc:"角色状态"` }
RolesListInput 获取角色列表
type RolesListOutput ¶
type RolesListOutput struct { CommonResponseItem Rows []RolesItem `json:"rows" dc:"角色列表"` }
RolesListOutput 获取角色列表-响应结果
type SendOutFromSmsItem ¶
type SendOutFromSmsItem struct { Mobile []string `json:"mobile" dc:"发送手机号"` SendSmsTemplateItem }
SendOutFromSmsItem 通过手机号给平台提交短信发送信息
type SendSmsResultItem ¶
type SendSmsResultItem struct { Mobile string `json:"mobile" dc:"发送手机号"` SendSmsTemplateItem CurrTemplateItem }
SendSmsResultItem 发送短信记录属性
type SendSmsTemplateItem ¶
type SendSmsTemplateItem struct { VarAlias enums.SmsAlias `json:"var_alias" dc:"模板变量"` TemplateParams []string `json:"template_params" dc:"短信模板参数"` SmsType enums.SmsType `json:"sms_type" dc:"短信类型"` Code string `json:"code" dc:"短信验证码"` }
SendSmsTemplateItem 发送短信模板属性
type SmsOutItem ¶
type SmsOutItem struct { TemplateId string `json:"template_id" dc:"平台短信模板ID"` FromType string `json:"from_type" dc:"短信平台"` OutTmplStatus string `json:"out_tmpl_status" dc:"外部平台状态"` }
SmsOutItem 外部短信平台模板属性
type SmsRecordDetailItem ¶
type SmsRecordDetailItem struct { SmsRecordItem SmsRecordExtItem FmtSmsType string `json:"fmt_sms_type" dc:"格式化短信类型"` }
SmsRecordDetailItem 短信记录详情属性
type SmsRecordExtItem ¶
type SmsRecordExtItem struct { Ip string `json:"ip" dc:"IP"` TemplateId string `json:"template_id" dc:"平台模板ID"` CreateAt string `json:"create_at" dc:"创建时间"` }
SmsRecordExtItem 短信记录扩展属性
type SmsRecordItem ¶
type SmsRecordItem struct { Id uint `json:"id" dc:"短信发送ID"` Mobile string `json:"mobile" dc:"手机号"` Content string `json:"content" dc:"短信内容"` Code string `json:"code" dc:"验证码"` SmsType uint `json:"sms_type" dc:"短信类型:0验证码,1消息通知,2营销短信"` Results string `json:"results" dc:"发送结果"` }
SmsRecordItem 短信发送记录属性
type SmsRecordListInput ¶
type SmsRecordListInput struct { CommonPaginationItem SmsRecordWhereItem }
SmsRecordListInput 获取短信记录列表请求参数
type SmsRecordListOutput ¶
type SmsRecordListOutput struct { CommonResponseItem Rows []*SmsRecordDetailItem `json:"rows" dc:"数据集"` }
SmsRecordListOutput 获取短信记录列表响应结果
type SmsRecordWhereItem ¶
type SmsRecordWhereItem struct { Mobile string `json:"mobile" dc:"手机号"` Content string `json:"content" dc:"短信内容"` SmsType int `json:"sms_type" dc:"短信类型:0验证码,1消息通知,2营销短信"` }
SmsRecordWhereItem 短信记录搜索条件属性
type SmsSendRecordNewItem ¶
type SmsSendRecordNewItem struct {
SmsRecordItem
}
SmsSendRecordNewItem 通过手机号获取短信发送最新记录
type SmsSyncOutTmplStatusItem ¶
type SmsSyncOutTmplStatusItem struct { Id uint `json:"id" dc:"关联ID"` TemplateId string `json:"template_id" dc:"模板ID"` OutTmplStatus string `json:"out_tmpl_status" dc:"外部模板状态"` }
SmsSyncOutTmplStatusItem 同步外部平台短信状态属性
type SmsTemplateDetailOutput ¶
type SmsTemplateDetailOutput struct {
SmsTemplateItem
}
SmsTemplateDetailOutput 获取短信模板详情输出结果
type SmsTemplateItem ¶
type SmsTemplateItem struct { entity.SmsTemplate TmplOut SmsOutItem `json:"tmpl_out" dc:"外部短信平台属性"` FmtAlias string `json:"fmt_alias" dc:"模板别名"` FmtStatus string `json:"fmt_status" dc:"状态"` FmtSmsType string `json:"fmt_sms_type" dc:"短信类型"` }
SmsTemplateItem 短信模板属性
type SmsTemplateListInput ¶
type SmsTemplateListInput struct { CommonPaginationItem SmsTemplateWhereItem }
SmsTemplateListInput 获取短信模板列表请求参数
type SmsTemplateListOutput ¶
type SmsTemplateListOutput struct { CommonResponseItem Rows []SmsTemplateItem `json:"rows" dc:"短信数据列表"` }
SmsTemplateListOutput 获取短信模板列表输出结果
type SmsTemplateOutItem ¶
type SmsTemplateOutItem struct { VarAlias string `json:"var_alias" dc:"模板变量"` SmsOutItem }
SmsTemplateOutItem 外部SMS模板属性
type SmsTemplateOutListInput ¶
type SmsTemplateOutListInput struct { Alias string `json:"alias" dc:"系统模板变量"` FromType string `json:"from_type" dc:"平台类型:tencent腾讯,alipay阿里云"` }
SmsTemplateOutListInput 获取外部平台SMS模板列表请求参数
type SmsTemplateOutListOutput ¶
type SmsTemplateOutListOutput []SmsTemplateOutItem
SmsTemplateOutListOutput 获取外部SMS模板列表响应结果
type SmsTemplateWhereItem ¶
type SmsTemplateWhereItem struct { Name string `json:"name" dc:"模板名"` Alias string `json:"alias" dc:"模板变量别名"` Status int `json:"status" dc:"模板状态:0关闭,1启用"` SmsType int `json:"sms_type" dc:"短信类型:0验证码,1消息通知,2营销短信"` }
SmsTemplateWhereItem 短信模板搜索条件
type SysMapAttrItem ¶
type SysMapAttrItem struct { Explain string `json:"explain" dc:"字典名解析"` IsDisable uint `json:"is_disable" dc:"是否禁用:0正常,1禁用"` }
SysMapAttrItem 字典属性
type SysMapBasicItem ¶
SysMapBasicItem 系统字典基础属性
type SysMapDetailItem ¶
type SysMapDetailItem struct { SysMapBasicItem SysMapAttrItem }
SysMapDetailItem 获取系统字典详情属性
type SysMapGetListInput ¶
type SysMapGetListInput struct { CommonPaginationItem Name string `json:"name" dc:"字典名"` IsDisable int `json:"is_disable" dc:"是否禁用:0正常,1禁用"` }
SysMapGetListInput 获取系统字典列表请求参数
type SysMapGetListOutput ¶
type SysMapGetListOutput struct { CommonResponseItem Rows []SysMapListItem `json:"rows" dc:"数据列表"` }
SysMapGetListOutput 获取系统字典列表输出
type SysMapListItem ¶
type SysMapListItem struct { SysMapBasicItem SysMapAttrItem CreateAt string `json:"create_at" dc:"创建时间"` }
SysMapListItem 获取系统字典列表属性
type SysMapValueAttrItem ¶
type SysMapValueAttrItem struct { Value string `json:"value" dc:"字典值"` Name string `json:"name" dc:"字典名"` Explain string `json:"explain" dc:"字典值解析"` }
SysMapValueAttrItem 字典值属性
type SysMapValueBasicItem ¶
type SysMapValueBasicItem struct { Id uint `json:"id" dc:"字典值ID"` SysMapValueAttrItem }
SysMapValueBasicItem 字典值基础属性
type SysMapValueDetailItem ¶
type SysMapValueDetailItem struct { SysMapValueBasicItem SysMapValueAttrItem }
SysMapValueDetailItem 字典值详情属性
type SysMapValueListItem ¶
type SysMapValueListItem struct { SysMapValueBasicItem SysMapValueAttrItem CreateAt string `json:"create_at" dc:"创建时间"` }
SysMapValueListItem 字典值列表属性
type SystemLogAttrItem ¶
type SystemLogAttrItem struct { ManageId uint `json:"manage_id" dc:"管理员ID"` MerchantId uint `json:"merchant_id" dc:"商户ID"` ResponseText string `json:"response_text" dc:"响应结果"` ParamText string `json:"param_text" dc:"请求参数"` }
SystemLogAttrItem 系统日志属性
type SystemLogDetailItem ¶
type SystemLogDetailItem struct { SystemLogItem SystemLogAttrItem SystemLogFmtItem }
SystemLogDetailItem 系统日志详情属性
type SystemLogFmtItem ¶
type SystemLogFmtItem struct {
FmtOperateType string `json:"fmt_operate_type" dc:"格式化日志类型"`
}
SystemLogFmtItem 格式化系统日志属性
type SystemLogGetDetailOutput ¶
type SystemLogGetDetailOutput struct {
*SystemLogDetailItem
}
SystemLogGetDetailOutput 系统日志获取详情响应结果
type SystemLogGetListInput ¶
type SystemLogGetListInput struct { CommonPaginationItem SystemLogWhereItem }
SystemLogGetListInput 获取系统列表请求参数
type SystemLogGetListOutput ¶
type SystemLogGetListOutput struct { CommonResponseItem Rows []SystemLogListItem `json:"rows" dc:"数据列表"` }
SystemLogGetListOutput 获取日志列表响应结果
type SystemLogItem ¶
type SystemLogItem struct { Id uint `json:"id" dc:"日志ID"` ModuleName string `json:"module_name" dc:"模块名"` Content string `json:"content" dc:"日志描述"` Ip string `json:"ip" dc:"IP"` OperateType int `json:"operate_type" dc:"日志类型"` UserId uint `json:"user_id" dc:"用户ID"` ApiUrl string `json:"api_url" dc:"接口地址"` ManageName string `json:"manage_name" dc:"管理员名"` CreateAt string `json:"create_at" dc:"创建时间"` }
SystemLogItem 系统日志列表属性
type SystemLogListItem ¶
type SystemLogListItem struct { SystemLogItem SystemLogFmtItem }
SystemLogListItem 系统日志列表属性
type SystemLogWhereItem ¶
type SystemLogWhereItem struct { ModuleName string `json:"module_name" dc:"模块名"` Content string `json:"content" dc:"模块内容"` ManageName string `json:"manage_name" dc:"管理员名"` OperateType enums.LogOperateType `json:"operate_type" dc:"日志类型"` CreateAt []string `json:"create_at" dc:"创建时间"` }
SystemLogWhereItem 系统日志搜索条件属性
type UidByAidItem ¶
type UidByAidItem struct {
UserId uint `json:"user_id" dc:"用户ID"`
}
UidByAidItem 通过管理员ID获取用户ID
type UploadAttachmentItem ¶
type UploadAttachmentItem struct { AttPath string `json:"att_path" dc:"附件路径"` AttUrl string `json:"att_url" dc:"附件地址"` AttType string `json:"att_type" dc:"附件类型"` StorageType string `json:"storage_type" dc:"存储类型"` Hasher string `json:"hasher" dc:"Hash值"` AttachId string `json:"attach_id" dc:"附件ID"` Width uint `json:"width" dc:"宽度"` Height uint `json:"height" dc:"高度"` AttSize int `json:"att_size" dc:"内存大小"` Name string `json:"name" dc:"附件名"` RealName string `json:"real_name" dc:"附件原名"` }
UploadAttachmentItem 上传附件详情
type UploadConfigItem ¶
type UploadConfigItem struct { StorageType string `json:"storage_type" dc:"存储类型"` Config map[string]interface{} `json:"config" dc:"配置内容"` }
UploadConfigItem 上传配置属性
type UploadConfigLocalItem ¶
type UploadConfigLocalItem struct { StorageType string `json:"storage_type" dc:"存储类型"` Root string `json:"root" dc:"上传根目录"` Path string `json:"url" dc:"上传附件地址"` FileExt string `json:"file_ext" dc:"文件上传控制"` }
UploadConfigLocalItem 本地上传配置
type UploadFileItem ¶
type UploadFileItem struct { File *ghttp.UploadFile `json:"file" dc:"上传对象"` Name string `json:"name" dc:"自定义文件名"` RandomName bool `json:"random_name" dc:"是否随机命名文件"` }
UploadFileItem 文件上传请求属性
type UploadFileOutput ¶
type UploadFileOutput struct {
UploadAttachmentItem
}
UploadFileOutput 上传文件输出结果
type UploadFileResponseItem ¶
type UploadFileResponseItem struct { Id string `json:"id" dc:"文件ID"` Name string `json:"name" dc:"文件名"` Path string `json:"path" dc:"文件路径"` Url string `json:"url" dc:"访问Url"` Width uint `json:"width" dc:"图片宽度"` Height uint `json:"height" dc:"图片高度"` Size uint `json:"size" dc:"文件大小"` StorageType string `json:"storage_type" dc:"存储类型"` }
UploadFileResponseItem 上传文件响应属性
type UserAccountItem ¶
type UserAccountItem struct { Uid uint `json:"uid" dc:"用户ID"` Account string `json:"account" dc:"账户"` Nickname string `json:"nickname" dc:"昵称"` IsAdmin bool `json:"is_admin" dc:"是否管理员:false否,true是"` IsSupper bool `json:"is_supper" dc:"是否超管:false否,true是"` AccountToken string `json:"account_token" dc:"SHA256加密登录Token后TOKEN"` }
UserAccountItem 用户账户信息
type UserAccountLoginPwdItem ¶
type UserAccountLoginPwdItem struct { PwdHash string `json:"pwd_hash" dc:"密码Hash值"` PwdSalt string `json:"pwd_salt" dc:"密码盐"` }
UserAccountLoginPwdItem 用户账户登录密码属性
type UserAccountNameItem ¶
type UserAccountNameItem struct { Account string `json:"account" dc:"账号"` Nickname string `json:"nickname" dc:"昵称"` }
UserAccountNameItem 账户名属性
type UserAdminAuthDetailOutput ¶
type UserAdminAuthDetailOutput struct { UserAdminDetailItem Detail UserBasicDetailItem `json:"detail" dc:"用户详情"` }
UserAdminAuthDetailOutput 管理员鉴权详情
type UserAdminDetailItem ¶
type UserAdminDetailItem struct { Id uint `json:"id" dc:"管理员ID"` UserId uint `json:"user_id" dc:"用户ID"` ManageName string `json:"manage_name" dc:"管理员名"` ManageNo string `json:"manage_no" dc:"管理员编号"` IsSuperManage uint `json:"is_super_manage" dc:"是否超管"` ManageStatus uint `json:"manage_status" dc:"管理员状态"` LogoffAt string `json:"logoff_at" dc:"注销时间"` }
UserAdminDetailItem 用户管理员详情
type UserAdminFmtItem ¶
type UserAdminFmtItem struct { FmtManageStatus string `json:"fmt_manage_status" dc:"状态"` FmtIsSuperManage string `json:"fmt_is_super_manage" dc:"超管"` }
UserAdminFmtItem 用户管理员格式化属性
type UserAdminGetDetailItem ¶
type UserAdminGetDetailItem struct { UserAdminDetailItem UserDetail UserBasicDetailItem `json:"user_detail" dc:"用户详情"` UserAdminFmtItem }
UserAdminGetDetailItem 获取用户管理员信息
type UserAdminGetDetailOutput ¶
type UserAdminGetDetailOutput struct { UserAdminGetDetailItem DepartId []uint `json:"depart_id" dc:"部门ID集合"` DepartList []DepartmentNameItem `json:"depart_list" dc:"部门列表"` PermId []uint `json:"perm_id" dc:"权限ID集合"` }
UserAdminGetDetailOutput 获取管理员用户详情响应结果
type UserAdminGetListInput ¶
type UserAdminGetListInput struct { CommonPaginationItem UserAdminWhereItem }
UserAdminGetListInput 获取管理员请求参数
type UserAdminGetListOutput ¶
type UserAdminGetListOutput struct { CommonResponseItem Rows []UserAdminGetDetailItem `json:"rows" dc:"结果集"` }
UserAdminGetListOutput 获取管理员列表输出结果
type UserAdminInviteAddItem ¶
type UserAdminInviteAddItem struct { Token string `json:"token" dc:"邀请Token"` Uid uint `json:"uid" dc:"用户ID"` Nickname string `json:"nickname" dc:"昵称"` }
UserAdminInviteAddItem 添加管理员邀请属性
type UserAdminSaveItem ¶
type UserAdminSaveItem struct { entity.UserAdmin DepartId []uint `json:"depart_id" dc:"部门ID"` PermId []uint `json:"perm_id" dc:"权限ID"` }
UserAdminSaveItem 保存管理员用户信息
type UserAdminWhereItem ¶
type UserAdminWhereItem struct { ManageName string `json:"manage_name" dc:"管理员名"` ManageNo string `json:"manage_no" dc:"管理员编号"` IsSuperManage int `json:"is_super_manage" dc:"是否超管"` ManageStatus int `json:"manage_status" dc:"管理员状态"` }
UserAdminWhereItem 管理员搜索条件属性
type UserBasicDetailItem ¶
type UserBasicDetailItem struct { Nickname string `json:"nickname" dc:"昵称"` UserId uint `json:"user_id" dc:"用户ID"` Sex uint `json:"sex" dc:"性别"` Birthday string `json:"birthday" dc:"生日"` Avatar string `json:"avatar" dc:"头像"` AttachId string `json:"attach_id" dc:"附件ID"` SignNum uint `json:"sign_num" dc:"签到总数"` ConNum uint `json:"con_num" dc:"联系签到次数"` }
UserBasicDetailItem 用户基础详情属性
type UserDetailItem ¶
type UserDetailItem struct { Uid uint `json:"uid" dc:"用户ID"` UserAccountNameItem Detail UserBasicDetailItem `json:"detail" dc:"用户详情"` }
UserDetailItem 用户详情属性
type UserDeviceBasicItem ¶
type UserDeviceBasicItem struct { Id uint `json:"id" dc:"设备ID"` UserId uint `json:"user_id" dc:"用户ID"` IsDisabled uint `json:"is_disabled" dc:"设备禁用"` DeviceHash string `json:"device_hash" dc:"设备Hash值"` }
UserDeviceBasicItem 获取用户设备Hash和设备ID
type UserDeviceLoginAfterItem ¶
type UserDeviceLoginAfterItem struct { *entity.UserDevice IsNewDevice bool `json:"is_new" dc:"是否新设备:false否,true新设备"` }
UserDeviceLoginAfterItem 用户登录认证-用户设备后置处理
type UserDeviceUserAgentItem ¶
type UserDeviceUserAgentItem struct { UserAgent string `json:"user_agent" dc:"请求头"` DeviceType string `json:"device_type" dc:"设备类型"` DeviceName string `json:"device_name" dc:"设备名称"` Mac string `json:"mac" dc:"MAC地址"` }
UserDeviceUserAgentItem 通过用户请求UserAgent获取设备信息
type UserForgotPwdSendCaptchaInput ¶
type UserForgotPwdSendCaptchaInput struct { Mobile string `json:"mobile" dc:"手机号-加密后"` UserOauthLoginSignItem }
UserForgotPwdSendCaptchaInput 找回密码-发送短信验证码
type UserForgotPwdUpdatePwdInput ¶
type UserForgotPwdUpdatePwdInput struct {
Pwd string `json:"pwd" dc:"密码"`
}
UserForgotPwdUpdatePwdInput 找回密码-修改密码
type UserForgotPwdValidateCaptchaInput ¶
type UserForgotPwdValidateCaptchaInput struct {
Code string `json:"code" dc:"短信验证码"`
}
UserForgotPwdValidateCaptchaInput 找回密码-校验发送短信验证码
type UserLoginAfterItem ¶
type UserLoginAfterItem struct { UserOauthAfterValidateItem UserOauthLoginItem }
UserLoginAfterItem 用户认证-后置登录日志处理
type UserLoginCurrLoginItem ¶
type UserLoginCurrLoginItem struct { ExpireTime uint `json:"expire_time"` Status uint `json:"status"` IsUse uint `json:"is_use"` IsNewDevice uint `json:"is_new_device"` }
UserLoginCurrLoginItem 获取当前用户登录信息
type UserLoginDeviceItem ¶
type UserLoginDeviceItem struct { UserLoginForceOfflineItem LoginDeviceAttrItem }
UserLoginDeviceItem 用户登陆设备属性
type UserLoginForceOfflineItem ¶
type UserLoginForceOfflineItem struct { Id uint `json:"id" dc:"设备ID"` UserId uint `json:"user_id" dc:"用户ID"` Token string `json:"token" dc:"登录Token"` UserLoginCurrLoginItem }
UserLoginForceOfflineItem 强制登录账户下线
type UserLoginSendSmsCaptchaInput ¶
type UserLoginSendSmsCaptchaInput struct { UserOauthSendSmsCaptchaItem UserOauthLoginSignItem }
UserLoginSendSmsCaptchaInput 用户授权登录发送短信验证码
type UserOauthAccountLoginItem ¶
type UserOauthAccountLoginItem struct { Account string `json:"account" dc:"登录账户"` Pwd string `json:"pwd" dc:"登录密码"` }
UserOauthAccountLoginItem 用户认证账户密码登录属性
type UserOauthAfterItem ¶
type UserOauthAfterItem struct { Detail *UserOauthLoginDetailItem `json:"detail" dc:"用户认证授权登录基础详情属性"` Other *UserOauthOtherParam `json:"other" dc:"用户认证其他参数"` }
UserOauthAfterItem 用户认证后置数据属性
type UserOauthAfterValidateItem ¶
type UserOauthAfterValidateItem struct { UserOauthLoginDetailItem UserDeviceLoginAfterItem }
UserOauthAfterValidateItem 用户认证后置验证登录信息
type UserOauthLoginDetailItem ¶
type UserOauthLoginDetailItem struct { *entity.User Status enums.UserLoginStatus `json:"status" dc:"登录状态:0正常,1待设置密码,2待绑定手机号,3新设备"` }
UserOauthLoginDetailItem 用户认证授权登录基础详情属性
type UserOauthLoginInput ¶
type UserOauthLoginInput struct { UserOauthAccountLoginItem UserOauthSmsLoginItem UserOauthLoginSignItem *UserOauthOtherParam Oauth enums.UserOauth `json:"oauth" dc:"登录授权类型"` }
UserOauthLoginInput 用户认证登录授权请求参数
type UserOauthLoginItem ¶
type UserOauthLoginItem struct { *jwt.TokenItem Status enums.UserLoginStatus `json:"status" dc:"登录状态:0正常,1待绑定账户,2待绑定手机号,3新设备"` }
UserOauthLoginItem 用户认证登录授权属性
type UserOauthLoginOutput ¶
type UserOauthLoginOutput struct {
UserOauthLoginItem
}
UserOauthLoginOutput 用户认证登录授权响应参数
type UserOauthLoginSignItem ¶
type UserOauthLoginSignItem struct {
Sign string `json:"sign" dc:"登录签名"`
}
UserOauthLoginSignItem 用户认证登录签名属性
type UserOauthOtherParam ¶
type UserOauthOtherParam struct {
InviteToken string `json:"invite_token" dc:"邀请用户Token,例如管理员邀请注册等"`
}
UserOauthOtherParam 用户认证其他参数
type UserOauthSendSmsCaptchaItem ¶
type UserOauthSendSmsCaptchaItem struct {
Mobile string `json:"mobile" dc:"手机号-加密后"`
}
UserOauthSendSmsCaptchaItem 用户认证登录发送短信验证码
type UserOauthSmsLoginItem ¶
type UserOauthSmsLoginItem struct { UserOauthSendSmsCaptchaItem Code string `json:"code" dc:"短信验证码"` }
UserOauthSmsLoginItem 用户认证短信验证码登录
type UserSaveUserDetailItem ¶
UserSaveUserDetailItem 保存用户信息属性,添加或编辑
type UserUpdateDetailInput ¶
type UserUpdateDetailInput struct {
UserUpdateDetailItem
}
UserUpdateDetailInput 用户修改用户详情请求参数
type UserUpdateDetailItem ¶
type UserUpdateDetailItem struct { Sex uint `json:"sex" dc:"性别"` Birthday string `json:"birthday" dc:"生日"` AttachId string `json:"attach_id" dc:"附件ID"` Nickname string `json:"nickname" dc:"昵称"` }
UserUpdateDetailItem 用户详情修改
type UserUpdatePwdInput ¶
type UserUpdatePwdInput struct {
UserUpdatePwdItem
}
UserUpdatePwdInput 用户-修改密码请求参数
type UserUpdatePwdItem ¶
type UserUpdatePwdItem struct { Pwd string `json:"pwd" dc:"密码"` Code string `json:"code" dc:"验证码"` }
UserUpdatePwdItem 用户修改密码
Source Files ¶
- admin_department.go
- admin_invite.go
- article.go
- article_category.go
- attachment.go
- bizctx.go
- config.go
- config_group.go
- department.go
- department_roles.go
- model.go
- permissions.go
- permissions_assoc.go
- roles.go
- sms_record.go
- sms_template.go
- sms_template_out.go
- sys_map.go
- sys_map_value.go
- system_log.go
- upload.go
- upload_config.go
- user.go
- user_admin.go
- user_detail.go
- user_device.go
- user_login.go
- user_oauth.go