logic

package
v0.0.0-...-b89eba7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Group = new(group)

Functions

func CheckEmailNotExists

func CheckEmailNotExists(c *gin.Context, emailStr string) errcode.Err

CheckEmailNotExists 判断邮箱是否已经注册

func DeleteExpiredFile

func DeleteExpiredFile() task.DoFunc

DeleteExpiredFile 定时删除没有relation的文件

func ExistsSetting

func ExistsSetting(c context.Context, accountID, relationID int64) (bool, errcode.Err)

ExistsSetting 是否存在account和relation关系的联系 参数: accountID, relationID 成功: 是否存在,nil 失败: 打印错误日志 errcode.ErrServer

func GetMsgInfoByID

func GetMsgInfoByID(c context.Context, msgID int64) (*db.GetMsgByIDRow, errcode.Err)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL