Documentation ¶
Index ¶
- func Auth(c *gin.Context)
- func ChatAhead(c *gin.Context)
- func ChatByIds(c *gin.Context)
- func ChatByUids(c *gin.Context)
- func ChatIds(c *gin.Context)
- func ChatMute(c *gin.Context)
- func ChatRecordByIds(c *gin.Context)
- func ChatRecordIds(c *gin.Context)
- func ChatRemove(c *gin.Context)
- func ChatTouch(c *gin.Context)
- func Exchange(c *gin.Context)
- func FriendByIds(c *gin.Context)
- func FriendDel(c *gin.Context)
- func FriendIds(c *gin.Context)
- func FriendMarknameUpdate(c *gin.Context)
- func FriendNewAgree(c *gin.Context)
- func FriendNewApply(c *gin.Context)
- func FriendNewDel(c *gin.Context)
- func FriendNewIgnore(c *gin.Context)
- func FriendNewReject(c *gin.Context)
- func FriendsByUid(c *gin.Context)
- func GetSysMsg(c *gin.Context)
- func GroupAppointManager(c *gin.Context)
- func GroupBlock(c *gin.Context)
- func GroupBlockList(c *gin.Context)
- func GroupCreate(c *gin.Context)
- func GroupDismiss(c *gin.Context)
- func GroupInfoById(c *gin.Context)
- func GroupInfoByIds(c *gin.Context)
- func GroupJoin(c *gin.Context)
- func GroupJoinAgree(c *gin.Context)
- func GroupJoinIgnore(c *gin.Context)
- func GroupJoinReject(c *gin.Context)
- func GroupLeave(c *gin.Context)
- func GroupManagerList(c *gin.Context)
- func GroupMemberAdd(c *gin.Context)
- func GroupMemberByIds(c *gin.Context)
- func GroupMemberDel(c *gin.Context)
- func GroupMemberIds(c *gin.Context)
- func GroupMembersByGroupId(c *gin.Context)
- func GroupMute(c *gin.Context)
- func GroupMuteList(c *gin.Context)
- func GroupMuteUser(c *gin.Context)
- func GroupTransfer(c *gin.Context)
- func GroupUpdateAvatar(c *gin.Context)
- func GroupUpdateJoinType(c *gin.Context)
- func GroupUpdateName(c *gin.Context)
- func GroupUpdateNotice(c *gin.Context)
- func GroupsByUid(c *gin.Context)
- func Locations(c *gin.Context)
- func LoginQq(c *gin.Context)
- func LoginSms(c *gin.Context)
- func LoginTel(c *gin.Context)
- func LoginWx(c *gin.Context)
- func Logout(c *gin.Context)
- func ManagerChatMsgRevert(c *gin.Context)
- func MarkChatRead(c *gin.Context)
- func Msg(c *gin.Context)
- func NewApplyList(c *gin.Context)
- func Proto(c *gin.Context)
- func RefreshToken(c *gin.Context)
- func RevertSelfMsg(c *gin.Context)
- func ServerTime(c *gin.Context)
- func SysAvatars(c *gin.Context)
- func UserInfo(c *gin.Context)
- func UserLastactive(c *gin.Context)
- func UserUpdate(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatAhead ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@summary 获取省市 @description 获取省市 @accept json @tags file @produce json @router /file/locations [GET] @success 200 {object} file.GetProvinceAndCityResp "请求返回"
func LoginQq ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@summary 得到系统时间。 @tags common @produce json @router /time [GET] @success 200 {object} ginproxy.Resp "resp"
func SysAvatars ¶
@summary 获取所有系统头像 @description 获取所有系统头像 @accept json @tags file @produce json @router /file/sys/avatars [GET] @success 200 {object} file.GetSysAvatarsResp "请求返回"
func UserInfo ¶
@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 ¶
@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 ¶
@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.