Documentation ¶
Index ¶
- Variables
- func CheckEmailNotExists(c *gin.Context, emailStr string) errcode.Err
- func DeleteExpiredFile() task.DoFunc
- func ExistsSetting(c context.Context, accountID, relationID int64) (bool, errcode.Err)
- func GetMsgInfoByID(c context.Context, msgID int64) (*db.GetMsgByIDRow, errcode.Err)
- func PublishFile(c context.Context, params model.PublishFile) (model.PublishFileRe, errcode.Err)
Constants ¶
This section is empty.
Variables ¶
View Source
var Group = new(group)
Functions ¶
func CheckEmailNotExists ¶
CheckEmailNotExists 判断邮箱是否已经注册
func ExistsSetting ¶
ExistsSetting 是否存在account和relation关系的联系 参数: accountID, relationID 成功: 是否存在,nil 失败: 打印错误日志 errcode.ErrServer
func GetMsgInfoByID ¶
GetMsgInfoByID 获取消息详情 参数: msgID 消息ID 成功: 消息详情,nil 失败: 打印错误日志 errcode.ErrServer,myerr.MsgNotExists
func PublishFile ¶
func PublishFile(c context.Context, params model.PublishFile) (model.PublishFileRe, errcode.Err)
PublishFile 上传文件,传出context与relationID,accountID,file(*multipart.FileHeader),返回 model.PublishFileRe 错误代码 1003:系统错误 8001:文件存储失败(aly) 8004:文件过大
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.