Documentation ¶
Index ¶
- func RegisterAnnouncement(i IAnnouncement)
- func RegisterArea(i IArea)
- func RegisterCaptcha(i ICaptcha)
- func RegisterCasbin(i ICasbin)
- func RegisterFile(i IFile)
- func RegisterJwt(i IJwt)
- func RegisterMessage(i IMessage)
- func RegisterMiddleware(i IMiddleware)
- func RegisterSdkAliyun(i ISdkAliyun)
- func RegisterSdkBaidu(i ISdkBaidu)
- func RegisterSdkCtyun(i ISdkCtyun)
- func RegisterSdkHuawei(i ISdkHuawei)
- func RegisterSdkTencent(i ISdkTencent)
- func RegisterSessionError(i ISessionError)
- func RegisterSysAudit(i ISysAudit)
- func RegisterSysAuth(i ISysAuth)
- func RegisterSysConfig(i ISysConfig)
- func RegisterSysFrontSettings(i ISysFrontSettings)
- func RegisterSysIndustry(i ISysIndustry)
- func RegisterSysInvite(i ISysInvite)
- func RegisterSysLogs(i ISysLogs)
- func RegisterSysMails(i ISysMails)
- func RegisterSysMemberLevel(i ISysMemberLevel)
- func RegisterSysMenu(i ISysMenu)
- func RegisterSysOrganization(i ISysOrganization)
- func RegisterSysPermission(i ISysPermission)
- func RegisterSysPersonLicense(i ISysPersonLicense)
- func RegisterSysRole(i ISysRole)
- func RegisterSysSession(i ISysSession)
- func RegisterSysSettings(i ISysSettings)
- func RegisterSysSms(i ISysSms)
- func RegisterSysUser(i ISysUser)
- type IAnnouncement
- type IArea
- type ICaptcha
- type ICasbin
- type IFile
- type IJwt
- type IMessage
- type IMiddleware
- type ISdkAliyun
- type ISdkBaidu
- type ISdkCtyun
- type ISdkHuawei
- type ISdkTencent
- type ISessionError
- type ISysAudit
- type ISysAuth
- type ISysConfig
- type ISysFrontSettings
- type ISysIndustry
- type ISysInvite
- type ISysLogs
- type ISysMails
- type ISysMemberLevel
- type ISysMenu
- type ISysOrganization
- type ISysPermission
- type ISysPersonLicense
- type ISysRole
- type ISysSession
- type ISysSettings
- type ISysSms
- type ISysUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAnnouncement ¶ added in v0.8.23
func RegisterAnnouncement(i IAnnouncement)
func RegisterArea ¶
func RegisterArea(i IArea)
func RegisterCaptcha ¶
func RegisterCaptcha(i ICaptcha)
func RegisterCasbin ¶
func RegisterCasbin(i ICasbin)
func RegisterFile ¶
func RegisterFile(i IFile)
func RegisterJwt ¶
func RegisterJwt(i IJwt)
func RegisterMessage ¶ added in v0.7.2
func RegisterMessage(i IMessage)
func RegisterMiddleware ¶
func RegisterMiddleware(i IMiddleware)
func RegisterSdkAliyun ¶
func RegisterSdkAliyun(i ISdkAliyun)
func RegisterSdkBaidu ¶
func RegisterSdkBaidu(i ISdkBaidu)
func RegisterSdkCtyun ¶
func RegisterSdkCtyun(i ISdkCtyun)
func RegisterSdkHuawei ¶
func RegisterSdkHuawei(i ISdkHuawei)
func RegisterSdkTencent ¶
func RegisterSdkTencent(i ISdkTencent)
func RegisterSessionError ¶
func RegisterSessionError(i ISessionError)
func RegisterSysAudit ¶
func RegisterSysAudit(i ISysAudit)
func RegisterSysAuth ¶
func RegisterSysAuth(i ISysAuth)
func RegisterSysConfig ¶ added in v0.7.3
func RegisterSysConfig(i ISysConfig)
func RegisterSysFrontSettings ¶ added in v0.8.17
func RegisterSysFrontSettings(i ISysFrontSettings)
func RegisterSysIndustry ¶ added in v0.7.0
func RegisterSysIndustry(i ISysIndustry)
func RegisterSysInvite ¶ added in v0.5.7
func RegisterSysInvite(i ISysInvite)
func RegisterSysLogs ¶
func RegisterSysLogs(i ISysLogs)
func RegisterSysMails ¶ added in v0.4.17
func RegisterSysMails(i ISysMails)
func RegisterSysMemberLevel ¶ added in v0.8.20
func RegisterSysMemberLevel(i ISysMemberLevel)
func RegisterSysMenu ¶
func RegisterSysMenu(i ISysMenu)
func RegisterSysOrganization ¶
func RegisterSysOrganization(i ISysOrganization)
func RegisterSysPermission ¶
func RegisterSysPermission(i ISysPermission)
func RegisterSysPersonLicense ¶ added in v0.4.13
func RegisterSysPersonLicense(i ISysPersonLicense)
func RegisterSysRole ¶
func RegisterSysRole(i ISysRole)
func RegisterSysSession ¶
func RegisterSysSession(i ISysSession)
func RegisterSysSettings ¶ added in v0.4.2
func RegisterSysSettings(i ISysSettings)
func RegisterSysSms ¶
func RegisterSysSms(i ISysSms)
func RegisterSysUser ¶
func RegisterSysUser(i ISysUser)
Types ¶
type IAnnouncement ¶ added in v0.8.23
type IAnnouncement interface { // GetAnnouncementById 根据id查询公告|信息 GetAnnouncementById(ctx context.Context, id int64, userId ...int64) (*sys_model.SysAnnouncementRes, error) // CreateAnnouncement 添加公告|信息 CreateAnnouncement(ctx context.Context, info *sys_model.SysAnnouncement, unionMainId int64, userId int64) (*sys_model.SysAnnouncementRes, error) // UpdateAnnouncement 编辑公告|信息 UpdateAnnouncement(ctx context.Context, info *sys_model.UpdateSysAnnouncement, unionMainId int64, userId int64) (*sys_model.SysAnnouncementRes, error) // DeleteAnnouncement 删除公告 DeleteAnnouncement(ctx context.Context, id int64, unionMainId int64, userId int64) (bool, error) // QueryAnnouncement 查询公告|列表 QueryAnnouncement(ctx context.Context, params *base_model.SearchParams, isExport bool) (*sys_model.SysAnnouncementListRes, error) // MarkRead 标记已读|公告 MarkRead(ctx context.Context, announcementId int64, userId int64) (bool, error) // MarkUnRead 标记未读|公告 MarkUnRead(ctx context.Context, announcementId int64, userId int64) (bool, error) // HasUnReadAnnouncement 获取未读公告数量 HasUnReadAnnouncement(ctx context.Context, userId int64, unionMainId int64) (int, error) // QueryAnnouncementListByUser 查询用户的公告|列表 (qType:0未读,1已读、2全部) QueryAnnouncementListByUser(ctx context.Context, userId int64, unionMainId int64, qType int, params *base_model.SearchParams, isExport bool) (*sys_model.SysAnnouncementListRes, error) }
func Announcement ¶ added in v0.8.23
func Announcement() IAnnouncement
type IArea ¶
type IArea interface { // GetAreaListByLevel 获取指定级级别地区列表 GetAreaListByLevel(ctx context.Context, level int) (*sys_model.AreaListRes, error) // GetAreaListByParentId 获取属于父级ID的地区列表 GetAreaListByParentId(ctx context.Context, parentId int64) (*sys_model.AreaListRes, error) // GetAreaById 根据ID获取区域信息 GetAreaById(ctx context.Context, id int64) *sys_entity.SysArea // GetAreaByCode 根据区域编号获取区域信息 GetAreaByCode(ctx context.Context, areaCode string) *sys_entity.SysArea // GetAreaByLongAndLong 根据区域经纬度获取区域信息 GetAreaByLongAndLong(ctx context.Context, long float64, lat float64) *sys_entity.SysArea // GetAreaByName 根据区域名称获取区域信息 GetAreaByName(ctx context.Context, areaName string) *sys_entity.SysArea // QueryAreaList 查询区域列表 QueryAreaList(ctx context.Context, params *base_model.SearchParams, isExport bool) (*sys_model.AreaListRes, error) }
type ICaptcha ¶
type ICasbin ¶
type ICasbin interface { // InstallHook 安装Hook InstallHook(userType sys_enum.UserType, hookFunc sys_hook.CasbinHookFunc) int64 // UnInstallHook 卸载Hook UnInstallHook(savedHookId int64) // CleanAllHook 清除所有Hook CleanAllHook() Check() error Enforcer() *casbin.Enforcer // AddRoleForUserInDomain 添加用户角色关联关系 AddRoleForUserInDomain(userName string, roleName string, domain string) (bool, error) // DeleteRoleForUserInDomain 删除用户角色关联关系 DeleteRoleForUserInDomain(userName string, roleName string, domain string) (bool, error) // DeleteRolesForUser 清空用户角色关联关系 DeleteRolesForUser(userName string, domain string) (bool, error) // AddPermissionForUser 添加角色与资源关系 AddPermissionForUser(roleName string, path string, method string) (bool, error) // AddPermissionsForUser 添加角色与资源关系 AddPermissionsForUser(roleName string, path []string) (bool, error) // DeletePermissionForUser 删除角色与资源关系 DeletePermissionForUser(roleName string, path string, method string) (bool, error) // DeletePermissionsForUser 清空角色与资源关系 DeletePermissionsForUser(roleName string) (bool, error) // EnforceCheck 校验 确认访问权限 EnforceCheck(userName interface{}, path interface{}, role interface{}, method interface{}) (bool, error) }
type IFile ¶
type IFile interface { // InstallHook 安装Hook InstallHook(state sys_enum.UploadEventState, hookFunc sys_hook.FileHookFunc) int64 // UnInstallHook 卸载Hook UnInstallHook(savedHookId int64) // CleanAllHook 清除Hook CleanAllHook() // Upload 统一上传文件 Upload(ctx context.Context, in sys_model.FileUploadInput) (*sys_entity.SysFile, error) // GetUploadFile 根据上传ID 获取上传文件信息 GetUploadFile(ctx context.Context, uploadId int64, userId int64, message ...string) (*sys_model.FileInfo, error) // SaveFile 保存文件 SaveFile(ctx context.Context, storageAddr string, info *sys_model.FileInfo) (*sys_model.FileInfo, error) // UploadIDCard 上传身份证照片 UploadIDCard(ctx context.Context, in sys_model.OCRIDCardFileUploadInput) (*sys_model.IDCardWithOCR, error) // UploadBankCard 上传银行卡照片 UploadBankCard(ctx context.Context, in sys_model.BankCardWithOCRInput) (*sys_model.BankCardWithOCR, error) // UploadBusinessLicense 上传营业执照照片 UploadBusinessLicense(ctx context.Context, in sys_model.OCRBusinessLicense) (*sys_model.BusinessLicenseWithOCR, error) // DownLoadFile 下载文件 DownLoadFile(ctx context.Context, savePath string, url string) (string, error) // GetFileById 根据id获取并返回文件信息 GetFileById(ctx context.Context, id int64, errorMessage string) (*sys_model.FileInfo, error) // MakeFileUrl 图像id换取url: 拼接三个参数,缓存fileInfo、然后返回url + 三参 MakeFileUrl(ctx context.Context, id int64, styleStr ...string) string // MakeFileUrlByPath 文件path换取url: 拼接三个参数,缓存签名数据、然后返回url + 三参 MakeFileUrlByPath(ctx context.Context, path string) string // GetFile 获取图片 公开 (srcBase64 + srcMd5 + fileId) ==> md5加密 GetFile(ctx context.Context, sign string, srcBase64 string, id int64, cId int64, styleStr ...string) (*sys_model.FileInfo, error) // UploadPicture 上传图片并审核 UploadPicture(ctx context.Context, input sys_model.PictureWithOCRInput) (*sys_model.PictureWithOCR, error) // GetOssFileSingUrl 获取文件的签名访问URL GetOssFileSingUrl(ctx context.Context, bucketName string, objectKey string, styleStr ...string) (string, error) // GetOssFileWithURL 根据文件的签名访问URL获取文件 GetOssFileWithURL(ctx context.Context, bucketName string, filePath string, singUrl string) (bool, error) }
type IJwt ¶
type IJwt interface { // InstallHook 安装Hook InstallHook(userType sys_enum.UserType, hookFunc sys_hook.JwtHookFunc) int64 // UnInstallHook 卸载Hook UnInstallHook(savedHookId int64) // CleanAllHook 清除所有Hook CleanAllHook() // GenerateToken 创建一个token GenerateToken(ctx context.Context, user *sys_model.SysUser) (response *sys_model.TokenInfo, err error) // CreateToken 创建一个token CreateToken(claims *sys_model.JwtCustomClaims) (string, error) // RefreshToken 刷新Token,并发安全 RefreshToken(oldToken string, claims *sys_model.JwtCustomClaims) (string, error) Middleware(r *ghttp.Request) MakeSession(ctx context.Context, tokenString string) *sys_model.JwtCustomClaims }
type IMessage ¶ added in v0.7.2
type IMessage interface { // GetMessageById 根据id查询消息 GetMessageById(ctx context.Context, id int64) (*sys_model.SysMessageRes, error) // GetMessageDetailById 根据id查询消息详情 GetMessageDetailById(ctx context.Context, messageId int64, userId int64) (*sys_model.SysMessageRes, error) // CreateMessage 添加消息 CreateMessage(ctx context.Context, info *sys_model.SysMessage) (*sys_model.SysMessageRes, error) // UpdateMessage 编辑消息 (限制是还未发送的) UpdateMessage(ctx context.Context, id int64, info *sys_model.UpdateSysMessage) (*sys_model.SysMessageRes, error) // QueryMessage 查询消息列表 QueryMessage(ctx context.Context, params *base_model.SearchParams, isExport bool) (*sys_model.SysMessageListRes, error) // QueryUserMessage 查询指定用户的消息|列表 QueryUserMessage(ctx context.Context, userId int64, params *base_model.SearchParams, isExport bool) (*sys_model.SysMessageListRes, error) // QueryUnionMainMessage 查询指定主体发送的消息列表 (支持未发送消息列表,添加params参数) QueryUnionMainMessage(ctx context.Context, unionMainId int64, params *base_model.SearchParams, isExport bool) (*sys_model.SysMessageListRes, error) // HasUnReadMessage 是否存在未读消息 HasUnReadMessage(ctx context.Context, userId int64, messageType int) (int, error) // SetMessageReadUserIds 追加消息已读用户 SetMessageReadUserIds(ctx context.Context, messageId int64, userId int64) (bool, error) // OneClickRead 一键已读 OneClickRead(ctx context.Context, userId int64, messageType sys_enum.MessageType) (bool, error) // HasMessage 是否存在指定消息 HasMessage(ctx context.Context, toUserIds []int64, dataIdentifier string, title string, enumType sys_enum.MessageType, sceneType sys_enum.MessageSceneType) bool }
type IMiddleware ¶
type IMiddleware interface { // Auth 通讯鉴权 Auth(r *ghttp.Request) // CTX 自定义上下文对象 CTX(r *ghttp.Request) // CORS 允许接口跨域请求 CORS(r *ghttp.Request) // ResponseHandler 响应函数 ResponseHandler(r *ghttp.Request) }
func Middleware ¶
func Middleware() IMiddleware
type ISdkAliyun ¶
type ISdkAliyun interface { // GetAliyunSdkToken 通过SDK获取Token (SDK获取方式) GetAliyunSdkToken(ctx context.Context, tokenInfo sys_model.AliyunSdkConfToken, err error) // GetAliyunSdkConfList 获取阿里云SDK应用配置列表 GetAliyunSdkConfList(ctx context.Context) ([]*sys_model.AliyunSdkConf, error) // GetAliyunSdkConf 根据identifier标识获取SDK配置信息 GetAliyunSdkConf(ctx context.Context, identifier string) (tokenInfo *sys_model.AliyunSdkConf, err error) // SaveAliyunSdkConf 保存SDK应用配信息, isCreate判断是更新还是新建 SaveAliyunSdkConf(ctx context.Context, info *sys_model.AliyunSdkConf, isCreate bool) (*sys_model.AliyunSdkConf, error) // DeleteAliyunSdkConf 删除阿里云SDK应用配置信息 DeleteAliyunSdkConf(ctx context.Context, identifier string) (bool, error) // GetWsCustomizedChGeneral 中文分词 GetWsCustomizedChGeneral(ctx context.Context, text string) (sys_model.AliyunNlpDataRes, error) }
func SdkAliyun ¶
func SdkAliyun() ISdkAliyun
type ISdkBaidu ¶
type ISdkBaidu interface { // GetAiSummary 文字AI分析总结 GetAiSummary(ctx context.Context, text string, identifier string) (string, error) // StartConversation 开始AI会话,并返回智能体的回答 StartConversation(ctx context.Context, appId string, appBuilderToken string, text string, filePath string) (string, error) // GetAppList 获取应用列表 【暂未对接】 GetAppList(ctx context.Context) (*sys_model.AiBotAppListRes, error) // GetBaiduSdkConfToken 根据 identifier 查询百度SDK应用配置和Token信息 GetBaiduSdkConfToken(ctx context.Context, identifier string) (tokenInfo *sys_model.BaiduSdkConfToken, err error) // GetBaiduSdkConfList 获取百度SDK应用配置列表 GetBaiduSdkConfList(ctx context.Context) ([]*sys_model.BaiduSdkConf, error) // GetBaiduSdkConf 根据 identifier 查询百度SDK应用配置信息 GetBaiduSdkConf(ctx context.Context, identifier string) (*sys_model.BaiduSdkConf, error) // SaveBaiduSdkConf 保存百度SDK应用配信息 SaveBaiduSdkConf(ctx context.Context, info *sys_model.BaiduSdkConf, isCreate bool) (*sys_model.BaiduSdkConf, error) // DeleteBaiduSdkConf 删除百度SDK应用配置信息 DeleteBaiduSdkConf(ctx context.Context, identifier string) (bool, error) // OCRBankCard OCR识别银行卡 OCRBankCard(ctx context.Context, imageBase64 string) (*sys_model.OCRBankCard, error) // OCRIDCard OCR识别身份证 OCRIDCard(ctx context.Context, imageBase64 string, detectRisk string, idCardSide string) (*sys_model.BaiduSdkOCRIDCard, error) // OCRBusinessLicense OCR识别营业执照 OCRBusinessLicense(ctx context.Context, imageBase64 string) (*sys_model.BusinessLicenseOCR, error) // AuditPicture 审核图片 AuditPicture(ctx context.Context, imageBase64 string, imageType uint64) (*sys_model.PictureWithOCR, error) }
type ISdkCtyun ¶
type ISdkCtyun interface { // GetCtyunSdkConfList 获取天翼云SDK应用配置列表 GetCtyunSdkConfList(ctx context.Context) ([]*sys_model.CtyunSdkConf, error) // GetCtyunSdkConf 根据identifier标识获取SDK配置信息 GetCtyunSdkConf(ctx context.Context, identifier string) (tokenInfo *sys_model.CtyunSdkConf, err error) // SaveCtyunSdkConf 保存SDK应用配信息, isCreate判断是更新还是新建 SaveCtyunSdkConf(ctx context.Context, info *sys_model.CtyunSdkConf, isCreate bool) (*sys_model.CtyunSdkConf, error) // DeleteCtyunSdkConf 删除天翼云SDK应用配置信息 DeleteCtyunSdkConf(ctx context.Context, identifier string) (bool, error) }
type ISdkHuawei ¶
type ISdkHuawei interface { // GetHuaweiSdkConfList 获取阿里云SDK应用配置列表 GetHuaweiSdkConfList(ctx context.Context) ([]*sys_model.HuaweiSdkConf, error) // GetHuaweiSdkConf 根据identifier标识获取SDK配置信息 GetHuaweiSdkConf(ctx context.Context, identifier string) (tokenInfo *sys_model.HuaweiSdkConf, err error) // SaveHuaweiSdkConf 保存SDK应用配信息, isCreate判断是更新还是新建 SaveHuaweiSdkConf(ctx context.Context, info *sys_model.HuaweiSdkConf, isCreate bool) (*sys_model.HuaweiSdkConf, error) // DeleteHuaweiSdkConf 删除华为SDK应用配置信息 DeleteHuaweiSdkConf(ctx context.Context, identifier string) (bool, error) }
func SdkHuawei ¶
func SdkHuawei() ISdkHuawei
type ISdkTencent ¶
type ISdkTencent interface { // GetAccessToken 获取 AccessToken GetAccessToken(ctx context.Context, wBAppId string, wBAppSecret string, version string) (accessToken string, err error) // GetApiTicket 获取API Ticket GetApiTicket(ctx context.Context, wBAppId string, accessToken string, version string) (ticket string, err error) // DetectAuth 腾讯云-实名核身鉴权 DetectAuth(ctx context.Context, idCard string, name string, returnUrl string) (*sys_model.DetectAuthRes, error) // GetDetectAuthResult 获取腾讯云-实名核身鉴权结果 GetDetectAuthResult(ctx context.Context, bizToken string, ruleId ...string) (*sys_model.GetDetectAuthResultRes, error) // GetDetectAuthPlusResponse 获取腾讯云-实名核身鉴权增强版结果 (v3.0接口) GetDetectAuthPlusResponse(ctx context.Context, bizToken string, ruleId string) (*sys_model.GetDetectAuthPlusResponseRes, error) // GetAdvFaceIdAndAuth 合作方后台上传身份信息 (idCard, name)获取FaceId + 拼接H5人脸核身认证URL GetAdvFaceIdAndAuth(ctx context.Context, userId int64, orderId int64, idCard string, name string, callbackUrl string) (*sys_model.StartAdvFaceAuthRes, error) // QueryFaceRecord 腾讯云-人脸核身结果查询 QueryFaceRecord(ctx context.Context, orderNo string) (*sys_model.QueryFaceRecordRes, error) // LivenessRecognition 人脸核身(SDK接入模式) LivenessRecognition(ctx context.Context, idCard string, name string, livenessType string) // LivenessRecognition_Http 人脸核身(HTTP接入模式) LivenessRecognition_Http(ctx context.Context, action string, secretId string, secretKey string) // GetTencentSdkConfList 获取腾讯云SDK应用配置列表 GetTencentSdkConfList(ctx context.Context) ([]*sys_model.TencentSdkConf, error) // GetTencentSdkConf 根据identifier标识获取SDK配置信息 GetTencentSdkConf(ctx context.Context, identifier string) (tokenInfo *sys_model.TencentSdkConf, err error) // SaveTencentSdkConf 保存SDK应用配信息, isCreate判断是更新还是新建 SaveTencentSdkConf(ctx context.Context, info *sys_model.TencentSdkConf, isCreate bool) (*sys_model.TencentSdkConf, error) // DeleteTencentSdkConf 删除腾讯云SDK应用配置信息 DeleteTencentSdkConf(ctx context.Context, identifier string) (bool, error) }
func SdkTencent ¶
func SdkTencent() ISdkTencent
type ISessionError ¶
type ISessionError interface { // Append 追加错误至错误队列 Append(ctx context.Context, error error) error // HasError 错误队列中检索指定错误 HasError(ctx context.Context, err error) (response bool) // Iterator 获取错误信息队列 Iterator(ctx context.Context, f func(k int, err error) bool) }
func SessionError ¶
func SessionError() ISessionError
type ISysAudit ¶
type ISysAudit interface { // InstallHook 安装Hook InstallHook(state sys_enum.AuditEvent, category int, hookFunc sys_hook.AuditHookFunc) int64 // UnInstallHook 卸载Hook UnInstallHook(savedHookId int64) // CleanAllHook 清除所有Hook CleanAllHook() // QueryAuditList 获取审核信息列表 QueryAuditList(ctx context.Context, filter *base_model.SearchParams) (*sys_model.AuditListRes, error) // GetAuditById 根据ID获取审核信息 GetAuditById(ctx context.Context, id int64) *sys_entity.SysAudit // GetAuditLatestByUnionMainId 获取最新的业务个人审核信息 (针对主体资质) GetAuditLatestByUnionMainId(ctx context.Context, unionMainId int64) *sys_entity.SysAudit // GetAuditLatestByUserId 获取最新的业务个人审核信息 GetAuditLatestByUserId(ctx context.Context, userId int64) *sys_entity.SysAudit // CreateAudit 创建审核信息 // TODO 创建审核信息后,需要通过Hook将temp/upload 中的文件迁移到业务层的指定目录,例如 resource/upload CreateAudit(ctx context.Context, info sys_model.CreateAudit) (*sys_entity.SysAudit, error) // UpdateAudit 处理审核信息 UpdateAudit(ctx context.Context, id int64, state int, reply string, auditUserId int64) (bool, error) // SetUnionMainId 设置审核关联的主体Id SetUnionMainId(ctx context.Context, id int64, unionMainId int64) (bool, error) }
type ISysAuth ¶
type ISysAuth interface { // InstallInviteRegisterHook 订阅邀约注册Hook InstallInviteRegisterHook(actionType sys_enum.InviteType, hookFunc sys_hook.InviteRegisterHookFunc) // InstallHook 安装Hook InstallHook(actionType sys_enum.AuthActionType, userType sys_enum.UserType, hookFunc sys_hook.AuthHookFunc) int64 // UnInstallHook 卸载Hook UnInstallHook(savedHookId int64) // CleanAllHook 清除所有Hook CleanAllHook() // Login 登陆 Login(ctx context.Context, req sys_model.LoginInfo, needCaptcha ...bool) (*sys_model.LoginRes, error) // InnerLogin 内部登录,无需校验验证码和密码 InnerLogin(ctx context.Context, user *sys_model.SysUser) (*sys_model.TokenInfo, error) // LoginByMobile 手机号 + 验证码或密码登陆 LoginByMobile(ctx context.Context, info sys_model.LoginByMobileInfo) (*sys_model.LoginByMobileRes, error) // LoginByMail 邮箱 + 验证码或密码登陆 (如果指定用户名,代表明确知道要登陆的是哪一个账号) LoginByMail(ctx context.Context, info sys_model.LoginByMailInfo) (*sys_model.LoginByMailRes, error) // Register 注册账号 (用户名+密码+图形验证码) Register(ctx context.Context, info sys_model.SysUserRegister) (*sys_model.SysUser, error) // RegisterByMobileOrMail 注册账号 (用户名+密码+ 手机号+验证码 或者 用户名+密码+ 邮箱+验证码) customId 可以限定用户ID RegisterByMobileOrMail(ctx context.Context, info sys_model.SysUserRegisterByMobileOrMail, customId ...int64) (res *sys_model.SysUser, err error) // ForgotUserName 忘记用户名,返回用户列表 ForgotUserName(ctx context.Context, captcha string, mobileOrEmail string) (res *sys_model.SysUserListRes, err error) // ForgotPassword 忘记密码 ForgotPassword(ctx context.Context, info sys_model.ForgotPassword) (int64, error) // ResetPassword 重置密码 ResetPassword(ctx context.Context, password string, confirmPassword string, idKey string) (bool, error) // RefreshJwtToken 刷新用户jwtToken RefreshJwtToken(ctx context.Context, loginUser *sys_model.JwtCustomClaims) (res *sys_model.LoginRes, err error) }
type ISysConfig ¶ added in v0.7.3
type ISysConfig interface { // QueryList 获取列表 QueryList(ctx context.Context, params *base_model.SearchParams, isExport bool) (*sys_model.SysConfigListRes, error) // GetByName 根据Name获取应用配置 GetByName(ctx context.Context, name string) (*sys_model.SysConfigRes, error) // SaveConfig 保存应用配信息 SaveConfig(ctx context.Context, info *sys_model.SysConfig) (*sys_model.SysConfigRes, error) // DeleteConfig 删除应用配置信息 DeleteConfig(ctx context.Context, name string) (bool, error) }
func SysConfig ¶ added in v0.7.3
func SysConfig() ISysConfig
type ISysFrontSettings ¶ added in v0.8.17
type ISysFrontSettings interface { // QueryList 获取列表 QueryList(ctx context.Context, params *base_model.SearchParams, isExport bool) (*sys_model.SysFrontSettingsListRes, error) // GetByName 根据 name 查询前端配置信息 GetByName(ctx context.Context, name string, info *base_model.SearchParams) (*sys_model.SysFrontSettingsRes, error) // Create 创建系统前端配置信息 Create(ctx context.Context, info *sys_model.SysFrontSettings) (*sys_model.SysFrontSettingsRes, error) // Update 修改系统前端配置信息 Update(ctx context.Context, info *sys_model.UpdateSysFrontSettings) (*sys_model.SysFrontSettingsRes, error) // Delete 删除 Delete(ctx context.Context, name string, unionMainId int64) (bool, error) }
func SysFrontSettings ¶ added in v0.8.17
func SysFrontSettings() ISysFrontSettings
type ISysIndustry ¶ added in v0.7.0
type ISysIndustry interface { // GetIndustryById 根据ID获取行业类别信息 GetIndustryById(ctx context.Context, id int64) (*sys_entity.SysIndustry, error) // CreateIndustry 创建行业类别 CreateIndustry(ctx context.Context, info *sys_model.SysIndustry) (*sys_entity.SysIndustry, error) // UpdateIndustry 更新行业类别 UpdateIndustry(ctx context.Context, info *sys_model.UpdateSysIndustry) (*sys_entity.SysIndustry, error) // SaveIndustry 新增或保存行业类别信息,并自动更新对应的权限信息 SaveIndustry(ctx context.Context, info *sys_model.SysIndustry) (*sys_entity.SysIndustry, error) // DeleteIndustry 删除行业类别,删除的时候要关联删除sys_permission,有子行业类别时禁止删除。 DeleteIndustry(ctx context.Context, id int64) (bool, error) // MakeIndustryTree 构建行业类别树 MakeIndustryTree(ctx context.Context, parentId int64, isMakeNodeFun func(ctx context.Context, cruuentIndustry *sys_entity.SysIndustry) bool) ([]*sys_model.SysIndustryTreeRes, error) // GetIndustryTree 根据ID获取下级行业类别信息,返回行业类别树,并缓存 GetIndustryTree(ctx context.Context, parentId int64) (sys_model.SysIndustryTreeListRes, error) // GetIndustryList 根据ID获取下级行业类别列表,IsRecursive代表是否需要返回下级 GetIndustryList(ctx context.Context, parentId int64, IsRecursive bool, limitChildrenIds ...int64) ([]*sys_entity.SysIndustry, error) }
func SysIndustry ¶ added in v0.7.0
func SysIndustry() ISysIndustry
type ISysInvite ¶ added in v0.5.7
type ISysInvite interface { InstallInviteStateHook(actionType sys_enum.InviteState, hookFunc sys_hook.InviteStateHookFunc) // GetInviteById 根据id获取邀约 GetInviteById(ctx context.Context, id int64) (*sys_model.InviteRes, error) // QueryInviteList 查询邀约|列表 QueryInviteList(ctx context.Context, filter *base_model.SearchParams) (*sys_model.InviteListRes, error) // CreateInvite 创建邀约信息 CreateInvite(ctx context.Context, info *sys_model.Invite) (*sys_model.InviteRes, error) // DeleteInvite 删除邀约信息 DeleteInvite(ctx context.Context, inviteId int64) (bool, error) // SetInviteState 修改邀约信息状态 SetInviteState(ctx context.Context, id int64, state int) (bool, error) // SetInviteNumber 修改邀约剩余次数 SetInviteNumber(ctx context.Context, id int64, num int, isAdd bool) (res bool, err error) }
func SysInvite ¶ added in v0.5.7
func SysInvite() ISysInvite
type ISysLogs ¶
type ISysLogs interface { // Write 写日志 Write(ctx context.Context, err error, info sys_entity.SysLogs) error // Write 写错误日志 Error(ctx context.Context, err error, info sys_entity.SysLogs) error // ErrorSimple 写错误日志 ErrorSimple(ctx context.Context, err error, context string, category string) error // Info 写日志信息 Info(ctx context.Context, err error, info sys_entity.SysLogs) error // InfoSimple 写日志信息 InfoSimple(ctx context.Context, err error, context string, category string) error // Warn 写警示日志 Warn(ctx context.Context, err error, info sys_entity.SysLogs) error // WarnSimple 写警示日志 WarnSimple(ctx context.Context, err error, context string, category string) error }
type ISysMails ¶ added in v0.4.17
type ISysMemberLevel ¶ added in v0.8.20
type ISysMemberLevel interface { // QueryMemberLevelList 获取会员等级列表 QueryMemberLevelList(ctx context.Context, params *base_model.SearchParams, isExport bool) (*sys_model.SysMemberLevelListRes, error) // CreateMemberLevel 创建会员等级 CreateMemberLevel(ctx context.Context, info *sys_model.SysMemberLevel, userId int64, unionMainId int64) (*sys_model.SysMemberLevelRes, error) // UpdateMemberLevel 更新会员等级 UpdateMemberLevel(ctx context.Context, info *sys_model.UpdateSysMemberLevel, unionMainId int64) (*sys_model.SysMemberLevelRes, error) // DeleteMemberLevel 删除会员等级 DeleteMemberLevel(ctx context.Context, id int64, unionMainId int64) (bool, error) // GetMemberLevelById 获取会员等级详情 GetMemberLevelById(ctx context.Context, id int64) (*sys_model.SysMemberLevelRes, error) // QueryMemberLevelUserList 获取会员等级用户列表 QueryMemberLevelUserList(ctx context.Context, memberLevelId int64) (*sys_model.SysMemberLevelUserListRes, error) // AddMemberLevelUser 添加会员等级用户 AddMemberLevelUser(ctx context.Context, memberLevelId int64, userIds []int64) (bool, error) // DeleteMemberLevelUser 批量删除会员等级的用户 DeleteMemberLevelUser(ctx context.Context, memberLevelId int64, userIds []int64) (bool, error) }
func SysMemberLevel ¶ added in v0.8.20
func SysMemberLevel() ISysMemberLevel
type ISysMenu ¶
type ISysMenu interface { // GetMenuById 根据ID获取菜单信息 GetMenuById(ctx context.Context, menuId int64) (*sys_entity.SysMenu, error) // CreateMenu 创建菜单 CreateMenu(ctx context.Context, info *sys_model.SysMenu) (*sys_entity.SysMenu, error) // UpdateMenu 更新菜单 UpdateMenu(ctx context.Context, info *sys_model.UpdateSysMenu) (*sys_entity.SysMenu, error) // SaveMenu 新增或保存菜单信息,并自动更新对应的权限信息 SaveMenu(ctx context.Context, info *sys_model.SysMenu) (*sys_entity.SysMenu, error) // DeleteMenu 删除菜单,删除的时候要关联删除sys_permission,有子菜单时禁止删除。 DeleteMenu(ctx context.Context, id int64) (bool, error) // MakeMenuTree 构建菜单树 MakeMenuTree(ctx context.Context, parentId int64, isMakeNodeFun func(ctx context.Context, cruuentMenu *sys_entity.SysMenu) bool) ([]*sys_model.SysMenuTreeRes, error) // GetMenuTree 根据ID获取下级菜单信息,返回菜单树,并缓存 GetMenuTree(ctx context.Context, parentId int64) (sys_model.SysMenuTreeListRes, error) // GetMenuList 根据ID获取下级菜单列表,IsRecursive代表是否需要返回下级 GetMenuList(ctx context.Context, parentId int64, IsRecursive bool, limitChildrenIds ...int64) ([]*sys_entity.SysMenu, error) }
type ISysOrganization ¶
type ISysOrganization interface { // QueryOrganizationList 获取组织架构信息列表 QueryOrganizationList(ctx context.Context, info base_model.SearchParams) (*sys_model.OrganizationInfoListRes, error) // GetOrganizationList 获取组织架构信息列表 GetOrganizationList(ctx context.Context, parentId int64, IsRecursive bool) ([]*sys_entity.SysOrganization, int, error) // GetOrganizationTree 获取组织架构信息树 GetOrganizationTree(ctx context.Context, parentId int64) ([]*sys_model.SysOrganizationTree, error) // CreateOrganizationInfo 创建组织架构信息 CreateOrganizationInfo(ctx context.Context, info sys_model.SysOrganizationInfo) (*sys_entity.SysOrganization, error) // UpdateOrganizationInfo 更新组织架构信息 UpdateOrganizationInfo(ctx context.Context, info sys_model.SysOrganizationInfo) (*sys_entity.SysOrganization, error) // SaveOrganizationInfo 创建或更新组织架构信息 SaveOrganizationInfo(ctx context.Context, info sys_model.SysOrganizationInfo) (*sys_entity.SysOrganization, error) // GetOrganizationInfo 获取组织架构信息 GetOrganizationInfo(ctx context.Context, id int64) (*sys_entity.SysOrganization, error) // DeleteOrganizationInfo 删除组织架构信息 DeleteOrganizationInfo(ctx context.Context, id int64) (bool, error) }
func SysOrganization ¶
func SysOrganization() ISysOrganization
type ISysPermission ¶
type ISysPermission interface { // GetPermissionById 根据权限ID获取权限信息 GetPermissionById(ctx context.Context, permissionId int64) (*sys_entity.SysPermission, error) // GetPermissionByIdentifier 根据权限标识符Identifier获取权限信息 GetPermissionByIdentifier(ctx context.Context, identifier string) (*sys_entity.SysPermission, error) // QueryPermissionList 查询权限列表 QueryPermissionList(ctx context.Context, info base_model.SearchParams) (*sys_model.SysPermissionInfoListRes, error) // GetPermissionsByResource 根据资源获取权限Ids, 资源一般为用户ID、角色ID,员工ID等 GetPermissionsByResource(ctx context.Context, resource string) ([]int64, error) // GetPermissionList 根据ID获取下级权限信息,返回列表 GetPermissionList(ctx context.Context, parentId int64, IsRecursive bool) ([]*sys_entity.SysPermission, error) // GetPermissionTree 根据ID获取下级权限信息,返回列表树 GetPermissionTree(ctx context.Context, parentId int64, permissionType ...int) ([]base_permission.IPermission, error) CreatePermission(ctx context.Context, info sys_model.SysPermission) (*sys_entity.SysPermission, error) UpdatePermission(ctx context.Context, info *sys_model.UpdateSysPermission) (*sys_entity.SysPermission, error) // SetPermissionsByResource 设置资源权限 SetPermissionsByResource(ctx context.Context, resourceIdentifier string, permissionIds []int64) (response bool, err error) // ImportPermissionTree 导入权限,如果存在则忽略,递归导入权限 ImportPermissionTree(ctx context.Context, permissionTreeArr []base_permission.IPermission, parent base_permission.IPermission) error // SavePermission 新增/保存权限信息 SavePermission(ctx context.Context, info sys_model.SysPermission) (*sys_entity.SysPermission, error) // DeletePermission 删除权限信息 DeletePermission(ctx context.Context, permissionId int64) (bool, error) // GetPermissionTreeIdByUrl 根据请求URL去匹配权限树,返回权限 GetPermissionTreeIdByUrl(ctx context.Context, path string) (*sys_entity.SysPermission, error) // CheckPermission 校验权限,如果多个则需要同时满足 CheckPermission(ctx context.Context, tree ...base_permission.IPermission) (has bool, err error) // CheckPermissionOr 校验权限,任意一个满足则有权限 CheckPermissionOr(ctx context.Context, tree ...base_permission.IPermission) (has bool, err error) // CheckPermissionByIdentifier 通过标识符校验权限 CheckPermissionByIdentifier(ctx context.Context, identifier string) (bool, error) // PermissionTypeForm 通过枚举值取枚举类型 PermissionTypeForm(code int64, mapItems *gmap.StrAnyMap) *sys_model.SysPermission }
func SysPermission ¶
func SysPermission() ISysPermission
type ISysPersonLicense ¶ added in v0.4.13
type ISysPersonLicense interface { // GetAuditData 订阅审核数据获取Hook, 将审核数据渲染成个人资质然后进行输出 GetAuditData(ctx context.Context, auditEvent sys_enum.AuditEvent, info *sys_entity.SysAudit) error // AuditChange 审核成功的处理逻辑 Hook AuditChange(ctx context.Context, auditEvent sys_enum.AuditEvent, info *sys_entity.SysAudit) error // GetLicenseById 根据ID获取个人资质认证|信息 GetLicenseById(ctx context.Context, id int64) (*sys_entity.SysPersonLicense, error) // QueryLicenseList 查询个人资质认证|列表 QueryLicenseList(ctx context.Context, search base_model.SearchParams) (*sys_model.PersonLicenseListRes, error) // CreateLicense 新增个人资质|信息 CreateLicense(ctx context.Context, info sys_model.AuditPersonLicense) (*sys_entity.SysPersonLicense, error) // UpdateLicense 更新个人资质认证,如果是已经通过的认证,需要重新认证通过后才生效|信息 UpdateLicense(ctx context.Context, info sys_model.AuditPersonLicense, id int64) (*sys_entity.SysPersonLicense, error) // GetLicenseByLatestAuditId 获取最新的审核记录Id获取资质信息 GetLicenseByLatestAuditId(ctx context.Context, auditId int64) *sys_entity.SysPersonLicense // SetLicenseState 设置个人资质信息状态 0失效、1正常 SetLicenseState(ctx context.Context, id int64, state int) (bool, error) // SetLicenseAuditNumber 设置个人资质神审核编号 SetLicenseAuditNumber(ctx context.Context, id int64, auditNumber string) (bool, error) // DeleteLicense 删除个人资质 DeleteLicense(ctx context.Context, id int64, flag bool) (bool, error) // UpdateLicenseAuditLogId 设置个人资质资质关联的审核ID UpdateLicenseAuditLogId(ctx context.Context, id int64, latestAuditLogId int64) (bool, error) // QueryLicenseByUserId 根据UserId 查找用户的资质|列表 (按照创建时间desc 倒叙排序) QueryLicenseByUserId(ctx context.Context, userId int64) (*sys_model.PersonLicenseListRes, error) // GetLatestUserNormalLicense 获取用户最新,正在生效的主体资质 (最新,正在生效的) GetLatestUserNormalLicense(ctx context.Context, userId int64) (*sys_model.PersonLicenseRes, error) // Masker 个人资质信息脱敏 Masker(license *sys_entity.SysPersonLicense) *sys_entity.SysPersonLicense }
func SysPersonLicense ¶ added in v0.4.13
func SysPersonLicense() ISysPersonLicense
type ISysRole ¶
type ISysRole interface { // InstallInviteRegisterHook 订阅邀约注册Hook InstallInviteRegisterHook(action sys_enum.RoleMemberChange, hookFunc sys_hook.RoleMemberChangeHookFunc) // QueryRoleList 获取角色列表 QueryRoleList(ctx context.Context, info base_model.SearchParams, unionMainId int64) (*sys_model.RoleListRes, error) // GetRoleById 根据id获取角色 GetRoleById(ctx context.Context, id int64) (*sys_entity.SysRole, error) // Create 创建角色信息 Create(ctx context.Context, info sys_model.SysRole) (*sys_entity.SysRole, error) // Update 更新角色信息 Update(ctx context.Context, info sys_model.SysRole) (*sys_entity.SysRole, error) // Save 新增或保存角色信息 Save(ctx context.Context, info sys_model.SysRole) (*sys_entity.SysRole, error) // Delete 删除角色信息 Delete(ctx context.Context, roleId int64) (bool, error) // SetRoleMember 设置角色用户 SetRoleMember(ctx context.Context, roleId int64, userIds []int64, makeUserUnionMainId int64) (bool, error) // RemoveRoleMember 移除角色中的用户 RemoveRoleMember(ctx context.Context, roleId int64, userIds []int64) (bool, error) // GetRoleMemberIds 获取角色下的所有用户ID GetRoleMemberIds(ctx context.Context, roleId int64, makeUserUnionMainId int64) ([]int64, error) // GetRoleMemberList 获取角色下的所有用户 GetRoleMemberList(ctx context.Context, roleId int64, makeUserUnionMainId int64) ([]*sys_model.SysUser, error) // GetRoleListByUserId 获取用户拥有的所有角色 GetRoleListByUserId(ctx context.Context, userId int64) ([]*sys_entity.SysRole, error) // SetRolePermissions 设置角色权限 SetRolePermissions(ctx context.Context, roleId int64, permissionIds []int64, makeUserUnionMainId int64) (bool, error) }
type ISysSession ¶
type ISysSession interface { // Init 初始化上下文对象指针到上下文对象中,以便后续的请求流程中可以修改。 Init(sessionContext *sys_model.SessionContext, r *ghttp.Request, ctx ...*context.Context) NewSessionCtx(ctx context.Context) context.Context HasCustom(ctx context.Context) bool // GetSessionKey 获取上下文缓存Key GetSessionKey(ctx context.Context) string // Get 获得上下文变量,如果没有设置,那么返回nil Get(ctx context.Context) *sys_model.SessionContext SetUserById(ctx *context.Context, userId int64) *sys_model.SessionContext // SetUser 将上下文信息设置到上下文请求中,注意是完整覆盖 SetUser(ctx context.Context, claimsUser *sys_model.JwtCustomClaims) }
func SysSession ¶
func SysSession() ISysSession
type ISysSettings ¶ added in v0.4.2
type ISysSettings interface { // QueryList 获取列表 QueryList(ctx context.Context, params *base_model.SearchParams, isExport bool) (*sys_model.SysSettingListRes, error) // GetByName 根据 name 查询配置信息 GetByName(ctx context.Context, name string, info *base_model.SearchParams) (*sys_model.SysSettingsRes, error) // Create 创建系统配置信息 Create(ctx context.Context, info *sys_model.SysSettings) (*sys_model.SysSettingsRes, error) // Update 修改系统配置信息 Update(ctx context.Context, info *sys_model.SysSettings) (*sys_model.SysSettingsRes, error) // Delete 删除 Delete(ctx context.Context, name string, unionMainId int64) (bool, error) }
func SysSettings ¶ added in v0.4.2
func SysSettings() ISysSettings
type ISysSms ¶
type ISysUser ¶
type ISysUser interface { // InstallHook 安装Hook InstallHook(event sys_enum.UserEvent, hookFunc sys_hook.UserHookFunc) int64 // UnInstallHook 卸载Hook UnInstallHook(savedHookId int64) // CleanAllHook 清除所有Hook CleanAllHook() // QueryUserList 获取用户列表 QueryUserList(ctx context.Context, info *base_model.SearchParams, unionMainId int64, isExport bool) (response *sys_model.SysUserListRes, err error) // SetUserRoleIds 设置用户角色 SetUserRoleIds(ctx context.Context, roleIds []int64, userId int64) (bool, error) // CreateUser 创建用户 CreateUser(ctx context.Context, info sys_model.UserInnerRegister, userState sys_enum.UserState, userType sys_enum.UserType, customId ...int64) (*sys_model.SysUser, error) // SetUserPermissions 设置用户权限 SetUserPermissions(ctx context.Context, userId int64, permissionIds []int64) (bool, error) // GetSysUserByUsername 根据用户名获取用户 GetSysUserByUsername(ctx context.Context, username string) (response *sys_model.SysUser, err error) // CheckPassword 检查密码是否正确 CheckPassword(ctx context.Context, userId int64, password string) (bool, error) // HasSysUserByUsername 判断用户名是否存在 HasSysUserByUsername(ctx context.Context, username string) bool // GetSysUserById 根据用户ID获取用户信息 GetSysUserById(ctx context.Context, userId int64) (*sys_model.SysUser, error) MakeSession(ctx context.Context, userId int64) // SetUserPermissionIds 设置用户权限 SetUserPermissionIds(ctx context.Context, userId int64, permissionIds []int64) (bool, error) // DeleteUser 删除用户信息,该方法一般由后端业务层内部调用 DeleteUser(ctx context.Context, id int64) (bool, error) // SetUsername 修改自己的账号登陆名称 SetUsername(ctx context.Context, newUsername string, userId int64) (bool, error) // SetUserState 设置用户状态 SetUserState(ctx context.Context, userId int64, state sys_enum.UserType) (bool, error) // UpdateUserPassword 修改用户登录密码 UpdateUserPassword(ctx context.Context, info sys_model.UpdateUserPassword, userId int64) (bool, error) // ResetUserPassword 重置用户密码 (超级管理员无需验证验证,XX商管理员重置员工密码无需验证) ResetUserPassword(ctx context.Context, userId int64, password string, confirmPassword string) (bool, error) // HasSysUserEmail 邮箱是否存在 HasSysUserEmail(ctx context.Context, email string) bool // GetSysUserByEmail 根据邮箱获取用户信息 GetSysUserByEmail(ctx context.Context, email string) (response *sys_model.SysUser, err error) // ResetUserEmail 重置用户邮箱 ResetUserEmail(ctx context.Context, userId int64, email string) (bool, error) // SetUserRoles 设置用户角色 SetUserRoles(ctx context.Context, userId int64, roleIds []int64, makeUserUnionMainId int64) (bool, error) // UpdateUserExDetail 更新用户扩展信息 UpdateUserExDetail(ctx context.Context, user *sys_model.SysUser) (*sys_model.SysUser, error) // GetUserDetail 查看用户详情,含完整手机号 GetUserDetail(ctx context.Context, userId int64) (*sys_model.SysUser, error) // GetUserListByMobileOrMail 根据手机号或者邮箱查询用户列表 GetUserListByMobileOrMail(ctx context.Context, info string) (*sys_model.SysUserListRes, error) // SetUserMobile 设置用户手机号 SetUserMobile(ctx context.Context, newMobile string, captcha string, password string, userId int64) (bool, error) // SetUserMail 设置用户邮箱 SetUserMail(ctx context.Context, oldMail string, newMail string, captcha string, password string, userId int64) (bool, error) }
Source Files ¶
- sdk_aliyun.go
- sdk_baidu.go
- sdk_ctyun.go
- sdk_huawei.go
- sdk_tencent.go
- sys_announcement.go
- sys_area.go
- sys_audit.go
- sys_auth.go
- sys_captcha.go
- sys_casbin.go
- sys_config.go
- sys_file.go
- sys_front_settings.go
- sys_industry.go
- sys_invite.go
- sys_jwt.go
- sys_logs.go
- sys_mail.go
- sys_member_level.go
- sys_menu.go
- sys_message.go
- sys_middleware.go
- sys_organization.go
- sys_permission.go
- sys_person_lincense.go
- sys_role.go
- sys_session.go
- sys_settings.go
- sys_sms.go
- sys_user.go
Click to show internal directories.
Click to hide internal directories.