controller

package
v0.0.0-...-5591726 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(c *gin.Context)

func ChatAhead

func ChatAhead(c *gin.Context)

@summary 会话置顶 @description 会话置顶 @accept json @tags chat @produce json @param x-token header string true "校验的header" required @param entity body msg.ChatAheadReq true "请求参数" required @router /chat/ahead [POST] @success 200 {object} ginproxy.Resp "请求返回"

func ChatByIds

func ChatByIds(c *gin.Context)

@summary 通过会话id获取会话 @description 通过会话id获取会话 @accept json @tags chat @produce json @param x-token header string true "校验的header" required @param ids query string true "需要查看的id列表,逗号分割所有的id,例如:1234,12511,1100" @router /chat/by-ids [GET] @success 200 {object} msg.ChatByIdsResp "请求返回"

func ChatByUids

func ChatByUids(c *gin.Context)

@summary 查看自己的会话列表 @description 查看自己的会话列表 @accept json @tags chat @produce json @param x-token header string true "校验的header" required @param page query int true "总页数,从0开始" @param page_size query int false "每页数量,默认200条" @router /chat/list [GET] @success 200 {object} msg.ChatByUidsResp "请求返回"

func ChatIds

func ChatIds(c *gin.Context)

@summary 会话的id列表 @description 会话的id列表,因为会话是个经常变化的属性,所以每次进入app,只需要拉取会话id,跟本地对比 @accept json @tags chat @produce json @param x-token header string true "校验的header" required @router /chat/ids [GET] @success 200 {object} msg.ChatIdsResp "请求返回"

func ChatMute

func ChatMute(c *gin.Context)

@summary 会话免打扰 @description 会话免打扰 @accept json @tags chat @produce json @param x-token header string true "校验的header" required @param entity body msg.ChatMuteReq true "请求参数" required @router /chat/mute [POST] @success 200 {object} ginproxy.Resp "请求返回"

func ChatRecordByIds

func ChatRecordByIds(c *gin.Context)

@summary 通过聊天记录id查找聊天记录 @description 通过聊天记录id查找聊天记录 @accept json @tags chat @produce json @param x-token header string true "校验的header" required @param chat_id query string true "会话id" @param ids query string true "需要查看的id列表,逗号分割所有的id,例如:1234,12511,1100" @router /chat/record/by-ids [GET] @success 200 {object} msg.ChatRecordByIdsResp "请求返回"

func ChatRecordIds

func ChatRecordIds(c *gin.Context)

@summary 查找聊天记录id @description 查找聊天记录id @accept json @tags chat @produce json @param x-token header string true "校验的header" required @param chat_id query string true "会话id" @param page query int true "总页数,从0开始" @param page_size query int false "每页数量,默认200条" @router /chat/record/ids [GET] @success 200 {object} msg.ChatRecordIdsResp "请求返回"

func ChatRemove

func ChatRemove(c *gin.Context)

@summary 移除会话 @description 移除会话 @accept json @tags chat @produce json @param x-token header string true "校验的header" required @param entity body msg.ChatRemoveReq true "请求参数" required @router /chat/remove [POST] @success 200 {object} ginproxy.Resp "请求返回"

func ChatTouch

func ChatTouch(c *gin.Context)

@summary 创建会话 @description 创建会话 @accept json @tags chat @produce json @param x-token header string true "校验的header" required @param entity body msg.ChatTouchReq true "请求参数" required @router /chat/touch [POST] @success 200 {object} ginproxy.Resp "请求返回"

func Exchange

func Exchange(c *gin.Context)

@summary 交换消息服务器令牌 @description 交换消息服务器令牌 @accept json @tags msg @produce json @param x-token header string true "校验的header" required @param entity body msg.ExchangeReq true "请求参数" required @router /msg/exchange [POST] @success 200 {object} ginproxy.Resp "请求返回"

func FriendByIds

func FriendByIds(c *gin.Context)

@summary 通过好友id,获取好友信息 @description 通过好友id,获取好友信息 @accept json @tags friend @produce json @param x-token header string true "校验的header" required @param ids query string true "需要查看的id列表,逗号分割所有的id,例如:1234,12511,1100" @router /friend/by-ids [GET] @success 200 {object} user.FriendByIdsResp "请求返回"

func FriendDel

func FriendDel(c *gin.Context)

@summary 删除好友 @description 删除好友 @accept json @tags friend @produce json @param x-token header string true "校验的header" required @param entity body user.FriendDelReq true "请求参数" required @router /friend/del [POST] @success 200 {object} ginproxy.Resp "请求返回"

func FriendIds

func FriendIds(c *gin.Context)

@summary 好友id列表 @description 好友id列表,每次进入app的时候调用一次,跟本地的db进行比对,如果有多余或者少的,就需要在本地处理,如果id比本地多了,则需要删除,如果id比本地少了,就需要添加 @accept json @tags friend @produce json @param x-token header string true "校验的header" required @router /friend/list [GET] @success 200 {object} user.FriendIdsResp "请求返回"

func FriendMarknameUpdate

func FriendMarknameUpdate(c *gin.Context)

@summary 更新备注名称 @description 更新备注名称 @accept json @tags friend @produce json @param x-token header string true "校验的header" required @param entity body user.FriendMarknameUpdateReq true "请求参数" required @router /friend/mark-name [POST] @success 200 {object} ginproxy.Resp "请求返回"

func FriendNewAgree

func FriendNewAgree(c *gin.Context)

@summary 同意添加好友 @description 同意添加好友 @accept json @tags friend @produce json @param x-token header string true "校验的header" required @param entity body user.FriendNewAgreeReq true "请求参数" required @router /friend/new/agree [POST] @success 200 {object} ginproxy.Resp "请求返回"

func FriendNewApply

func FriendNewApply(c *gin.Context)

@summary 申请添加新好友 @description 申请添加新好友 @accept json @tags friend @produce json @param x-token header string true "校验的header" required @param entity body user.FriendNewApplyReq true "请求参数" required @router /friend/new/apply [POST] @success 200 {object} ginproxy.Resp "请求返回"

func FriendNewDel

func FriendNewDel(c *gin.Context)

@summary 删除新好友列表 @description 删除新好友列表的其中一个内容 @accept json @tags friend @produce json @param x-token header string true "校验的header" required @param entity body user.FriendNewDelReq true "请求参数" required @router /friend/new/del [POST] @success 200 {object} ginproxy.Resp "请求返回"

func FriendNewIgnore

func FriendNewIgnore(c *gin.Context)

@summary 忽略这个好友 @description 忽略这个好友的申请 @accept json @tags friend @produce json @param x-token header string true "校验的header" required @param entity body user.FriendNewIgnoreReq true "请求参数" required @router /friend/new/ignore [POST] @success 200 {object} ginproxy.Resp "请求返回"

func FriendNewReject

func FriendNewReject(c *gin.Context)

@summary 拒绝添加好友 @description 拒绝添加好友 @accept json @tags friend @produce json @param x-token header string true "校验的header" required @param entity body user.FriendNewRejectReq true "请求参数" required @router /friend/new/reject [POST] @success 200 {object} ginproxy.Resp "请求返回"

func FriendsByUid

func FriendsByUid(c *gin.Context)

@summary 获取自己的好友列表 @description 获取自己的好友列表 @accept json @tags friend @produce json @param x-token header string true "校验的header" required @param page query int true "总页数,从0开始" @param page_size query int false "每页数量,默认30条" @router /friend/list [GET] @success 200 {object} user.FriendsByUidResp "请求返回"

func GetSysMsg

func GetSysMsg(c *gin.Context)

@summary 得到系统消息 @description 得到系统消息 @accept json @tags msg @produce json @param x-token header string true "校验的header" required @param page query int true "总页数,从0开始" @param page_size query int false "每页数量,默认200条" @router /msg/sys [GET] @success 200 {object} msg.GetSysMsgResp "请求返回"

func GroupAppointManager

func GroupAppointManager(c *gin.Context)

@summary 群主指定管理员 @description 群主指定管理员 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupAppointManagerReq true "请求参数" required @router /group/appoint/manager [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupBlock

func GroupBlock(c *gin.Context)

@summary 拉黑某个人 @description 拉黑某个人 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupBlockReq true "请求参数" required @router /group/block [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupBlockList

func GroupBlockList(c *gin.Context)

@summary 禁言列表 @description 禁言列表 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param group_id query int true "群组id" @router /group/mute/list [GET] @success 200 {object} user.GroupMuteListResp "请求返回"

func GroupCreate

func GroupCreate(c *gin.Context)

@summary 创建群组 @description 创建群组 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupCreateReq true "请求参数" required @router /group/create [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupDismiss

func GroupDismiss(c *gin.Context)

@summary 解散群组 @description 解散群组 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupDismissReq true "请求参数" required @router /group/dismiss [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupInfoById

func GroupInfoById(c *gin.Context)

@summary 通过id查询群组 @description 通过id查询一个群组 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param group_id query int true "群组id" @router /group/info [GET] @success 200 {object} user.GroupInfoResp "请求返回"

func GroupInfoByIds

func GroupInfoByIds(c *gin.Context)

@summary 通过id查询群组列表 @description 通过id查询多个群组 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param group_ids query string true "需要查看的id列表,逗号分割所有的id,例如:1234,12511,1100" @router /group/infos [GET] @success 200 {object} user.GroupInfoResp "请求返回"

func GroupJoin

func GroupJoin(c *gin.Context)

@summary 申请加入群组 @description 申请加入群组 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupJoinReq true "请求参数" required @router /group/join/apply [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupJoinAgree

func GroupJoinAgree(c *gin.Context)

@summary 同意申请加入群组 @description 同意申请加入群组 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupJoinAgreeReq true "请求参数" required @router /group/join/agree [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupJoinIgnore

func GroupJoinIgnore(c *gin.Context)

@summary 忽略申请加入群组 @description 忽略申请加入群组 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupJoinIgnoreReq true "请求参数" required @router /group/join/ignore [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupJoinReject

func GroupJoinReject(c *gin.Context)

@summary 拒绝申请加入群组 @description 拒绝申请加入群组 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupJoinRejectReq true "请求参数" required @router /group/join/reject [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupLeave

func GroupLeave(c *gin.Context)

@summary 离开群组 @description 离开群组 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupLeaveReq true "请求参数" required @router /group/leave [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupManagerList

func GroupManagerList(c *gin.Context)

@summary 群组管理员列表 @description 群组管理员列表 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param group_id query int true "群组id" @router /group/managers [GET] @success 200 {object} user.GroupManagerListResp "请求返回"

func GroupMemberAdd

func GroupMemberAdd(c *gin.Context)

@summary 添加群成员 @description 添加群成员 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupMemberAddReq true "请求参数" required @router /group/member/add [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupMemberByIds

func GroupMemberByIds(c *gin.Context)

@summary 通过群组成员id获取成员 @description 通过群组成员id获取成员 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param group_id query int true "群组id" @param ids query string true "需要查看的成员id列表,逗号分割所有的id,例如:1234,12511,1100" @router /group/member/by-ids [GET] @success 200 {object} user.GroupMemberByIdsResp "请求返回"

func GroupMemberDel

func GroupMemberDel(c *gin.Context)

@summary 删除群成员 @description 添加群成员 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupMemberDelReq true "请求参数" required @router /group/member/del [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupMemberIds

func GroupMemberIds(c *gin.Context)

@summary 获取群组成员id列表 @description 获取群组成员id列表 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param group_id query int true "群组id" @router /group/member/ids [GET] @success 200 {object} user.GroupMemberIdsResp "请求返回"

func GroupMembersByGroupId

func GroupMembersByGroupId(c *gin.Context)

@summary 所在群的群成员 @description 所在群的群成员 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param group_id query int true "群组id" @param page query int true "总页数,从0开始" @param page_size query int false "每页数量,默认30条" @router /group/members [GET] @success 200 {object} user.GroupMemberIdsResp "请求返回"

func GroupMute

func GroupMute(c *gin.Context)

@summary 群组禁言 @description 群组禁言 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupMuteReq true "请求参数" required @router /group/mute [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupMuteList

func GroupMuteList(c *gin.Context)

@summary 禁言列表 @description 禁言列表 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param group_id query int true "群组id" @router /group/mute/list [GET] @success 200 {object} user.GroupMuteListResp "请求返回"

func GroupMuteUser

func GroupMuteUser(c *gin.Context)

@summary 禁言某些人 @description 禁言某些人 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupMuteUserReq true "请求参数" required @router /group/mute/user [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupTransfer

func GroupTransfer(c *gin.Context)

@summary 转让群组 @description 转让群组 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupTransferReq true "请求参数" required @router /group/transfer [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupUpdateAvatar

func GroupUpdateAvatar(c *gin.Context)

@summary 更新群头像 @description 更新群头像 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupUpdateAvatarReq true "请求参数" required @router /group/update/avatar [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupUpdateJoinType

func GroupUpdateJoinType(c *gin.Context)

@summary 修改群加入类型 @description 修改群加入类型 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupUpdateJoinTypeReq true "请求参数" required @router /group/update/jointype [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupUpdateName

func GroupUpdateName(c *gin.Context)

@summary 更新群组名称 @description 更新群组名称 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupUpdateNameReq true "请求参数" required @router /group/update/name [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupUpdateNotice

func GroupUpdateNotice(c *gin.Context)

@summary 更新群通知 @description 更新群通知 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param entity body user.GroupUpdateNoticeReq true "请求参数" required @router /group/update/notice [POST] @success 200 {object} ginproxy.Resp "请求返回"

func GroupsByUid

func GroupsByUid(c *gin.Context)

@summary 个人群组列表 @description 个人群组列表 @accept json @tags group @produce json @param x-token header string true "校验的header" required @param page query int true "总页数,从0开始" @param page_size query int false "每页数量,默认30条" @router /user/groups [GET] @success 200 {object} user.GroupsByUidResp "请求返回"

func Locations

func Locations(c *gin.Context)

@summary 获取省市 @description 获取省市 @accept json @tags file @produce json @router /file/locations [GET] @success 200 {object} file.GetProvinceAndCityResp "请求返回"

func LoginQq

func LoginQq(c *gin.Context)

@summary qq号登陆 @description qq号登陆 @accept json @tags passport @produce json @param entity body passport.QqloginReq true "请求参数" required @router /passport/login/qq [POST] @success 200 {object} passport.LoginResp "请求返回"

func LoginSms

func LoginSms(c *gin.Context)

@summary 发送登陆短信 @description 发送登陆短信 @accept json @tags passport @produce json @param entity body passport.SmsReq true "请求参数" required @router /passport/login/sms [POST] @success 200 {object} ginproxy.Resp "请求返回"

func LoginTel

func LoginTel(c *gin.Context)

@summary 手机号登陆 @description 手机号登陆 @accept json @tags passport @produce json @param entity body passport.TelLoginReq true "请求参数" required @router /passport/login/tel [POST] @success 200 {object} passport.LoginResp "请求返回"

func LoginWx

func LoginWx(c *gin.Context)

@summary 微信号登陆 @description 微信号登陆 @accept json @tags passport @produce json @param entity body passport.WxLoginReq true "请求参数" required @router /passport/login/wx [POST] @success 200 {object} passport.LoginResp "请求返回"

func Logout

func Logout(c *gin.Context)

@summary 登出 @description 登出 @accept json @tags passport @produce json @param x-token header string true "校验的header" required @router /passport/logout [POST] @success 200 {object} ret.StringResp "请求返回"

func ManagerChatMsgRevert

func ManagerChatMsgRevert(c *gin.Context)

@summary 管理员撤回消息 @description 管理员撤回消息 @accept json @tags msg @produce json @param x-token header string true "校验的header" required @param entity body msg.ManagerChatMsgRevertReq true "请求参数" required @router /msg/revert/by-manager [POST] @success 200 {object} ginproxy.Resp "请求返回"

func MarkChatRead

func MarkChatRead(c *gin.Context)

@summary 标记会话已读 @description 标记会话已读 @accept json @tags chat @produce json @param x-token header string true "校验的header" required @param entity body msg.MarkChatReadReq true "请求参数" required @router /chat/mark-read [POST] @success 200 {object} ginproxy.Resp "请求返回"

func Msg

func Msg(c *gin.Context)

@summary 发送消息 @description 发送消息 @accept json @tags msg @produce json @param x-token header string true "校验的header" required @param entity body msg.MsgReq true "请求参数" required @router /msg [POST] @success 200 {object} msg.MsgResp "请求返回"

func NewApplyList

func NewApplyList(c *gin.Context)

@summary 新的朋友&群组列表 @description 新的朋友&群组列表 @accept json @tags friend @produce json @param x-token header string true "校验的header" required @param page query int true "总页数,从0开始" @param page_size query int false "每页数量,默认30条" @router /friend/new/apply/list [GET] @success 200 {object} user.NewApplyListResp "请求返回"

func Proto

func Proto(c *gin.Context)

@summary 得到proto文件 @description 请用 https://tool.chinaz.com/tools/urlencode.aspx 进行文本的decode @tags common @produce json @param name query string true "文件名:stream,errmsg,model" @router /proto [GET] @success 200 {object} ginproxy.Resp "resp"

func RefreshToken

func RefreshToken(c *gin.Context)

@summary 刷新token @description 刷新token @accept json @tags passport @produce json @param x-token header string true "校验的header" required @param entity body passport.RefreshReq true "请求参数" required @router /passport/refresh [POST] @success 200 {object} ret.StringResp "请求返回"

func RevertSelfMsg

func RevertSelfMsg(c *gin.Context)

@summary 撤回自己的消息 @description 撤回自己的消息 @accept json @tags msg @produce json @param x-token header string true "校验的header" required @param entity body msg.RevertSelfMsgReq true "请求参数" required @router /msg/revert [POST] @success 200 {object} ginproxy.Resp "请求返回"

func ServerTime

func ServerTime(c *gin.Context)

@summary 得到系统时间。 @tags common @produce json @router /time [GET] @success 200 {object} ginproxy.Resp "resp"

func SysAvatars

func SysAvatars(c *gin.Context)

@summary 获取所有系统头像 @description 获取所有系统头像 @accept json @tags file @produce json @router /file/sys/avatars [GET] @success 200 {object} file.GetSysAvatarsResp "请求返回"

func UserInfo

func UserInfo(c *gin.Context)

@summary 查看用户信息 @description 查看用户信息 @accept json @tags user @produce json @param x-token header string true "校验的header" required @param id query int false "需要查看的用户id" @router /user/info [GET] @success 200 {object} user.InfoResp "请求返回"

func UserLastactive

func UserLastactive(c *gin.Context)

@summary 用户上次活跃 @description 用户上次活跃 @accept json @tags user @produce json @param x-token header string true "校验的header" required @router /user/lastactive [POST] @success 200 {object} ginproxy.Resp "请求返回"

func UserUpdate

func UserUpdate(c *gin.Context)

@summary 更新用户信息 @description 更新用户信息 @accept json @tags user @produce json @param x-token header string true "校验的header" required @param entity body user.UpdateReq true "请求参数" required @router /user/update [POST] @success 200 {object} ginproxy.Resp "请求返回"

Types

This section is empty.

Jump to

Keyboard shortcuts

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