api

package
v0.0.0-...-59da782 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RespMiddleWareDisabled = "RespMiddleWareDisabled"

	UserId     = "userId"
	Token      = "token"
	AppId      = "appId"
	DeviceName = "deviceName"
	DeviceType = "deviceType"
	Uuid       = "uuid"
	Version    = "version"
	Time       = "time"

	ReqError  = "error"
	ReqResult = "result"

	AdminId = "adminId"
)

Variables

This section is empty.

Functions

func AccumulateInviteInfos

func AccumulateInviteInfos(c *gin.Context)

累加邀请奖励列表

func ActiveAd

func ActiveAd(c *gin.Context)

激活广告

func AddFriend

func AddFriend(c *gin.Context)

申请添加好友

func AddFriendNotConfirm

func AddFriendNotConfirm(c *gin.Context)

申请添加好友

func AdminAccount

func AdminAccount(c *gin.Context)

最近统计消息

func AdminAuthMiddleWare

func AdminAuthMiddleWare() gin.HandlerFunc

func AdminLogin

func AdminLogin(c *gin.Context)

管理员登录

func AdminOperateLog

func AdminOperateLog(c *gin.Context)

查询管理员操作记录

func AdminRoomsCount

func AdminRoomsCount(c *gin.Context)

群统计

func AdminRoomsList

func AdminRoomsList(c *gin.Context)

群明细查询

func AdminSetPermission

func AdminSetPermission(c *gin.Context)

管理员设置群

func AdminUsersCount

func AdminUsersCount(c *gin.Context)

用户数量统计

func AdminUsersList

func AdminUsersList(c *gin.Context)

用户明细查询

func Advertisement(c *gin.Context)

获取开屏广告

func AllTickerSymbol

func AllTickerSymbol(c *gin.Context)

oss相关接口

func AppConfig

func AppConfig(c *gin.Context)

查看App配置

func AppInfo

func AppInfo(c *gin.Context)

获取app列表api

func AppOpen

func AppOpen(c *gin.Context)

应用启动

func AppSpecificVersionAsPlatform

func AppSpecificVersionAsPlatform(c *gin.Context)

版本平台信息

func AppSpecificVersionDetails

func AppSpecificVersionDetails(c *gin.Context)

单个版本明细

func AppUpdate

func AppUpdate(c *gin.Context)

更新App配置

func AppVersionDetails

func AppVersionDetails(c *gin.Context)

全部版本明细

func AuthMiddleWare

func AuthMiddleWare() gin.HandlerFunc

func Balance

func Balance(c *gin.Context)

查询账户余额

func BanRoom

func BanRoom(c *gin.Context)

封禁群

func BanRoomCancel

func BanRoomCancel(c *gin.Context)

解封群

func BanUser

func BanUser(c *gin.Context)

封禁账号

func BanUserCancel

func BanUserCancel(c *gin.Context)

解封账号

func BatchJoinRoomApply

func BatchJoinRoomApply(c *gin.Context)

批量入群申请

func BlockFriend

func BlockFriend(c *gin.Context)

加入黑名单

func CheckAnswer

func CheckAnswer(c *gin.Context)

验证答案是否正确

func CheckNumber

func CheckNumber(
	v *validator.Validate, topStruct reflect.Value, currentStructOrField reflect.Value,
	field reflect.Value, fieldType reflect.Type, fieldKind reflect.Kind, param string,
) bool

func ClearlySearch

func ClearlySearch(c *gin.Context)

精确搜索用户或群

func CoinSupport

func CoinSupport(c *gin.Context)

获取支持的币种

func Confirm

func Confirm(c *gin.Context)

是否需要验证

func Cors

func Cors() gin.HandlerFunc

处理跨域请求,支持options访问

func CreateAd

func CreateAd(c *gin.Context)

--------------------------开屏广告-------------------------//

func CreateRoom

func CreateRoom(c *gin.Context)

创建群

func DeleteAd

func DeleteAd(c *gin.Context)

删除广告

func DeleteFriend

func DeleteFriend(c *gin.Context)

删除好友

func EditReward

func EditReward(c *gin.Context)

-------------------------资金管理--------------------------//

func ExportAppSpecificVersionDetails

func ExportAppSpecificVersionDetails(c *gin.Context)

导出单个版本明细

func ExportAppVersionDetails

func ExportAppVersionDetails(c *gin.Context)

导出全部版本明细

func ExportSumDetails

func ExportSumDetails(c *gin.Context)

导出明细数据

func FindUserSession

func FindUserSession(c *gin.Context)

用户session

func ForwardEncryptMsg

func ForwardEncryptMsg(c *gin.Context)

func ForwardMsg

func ForwardMsg(c *gin.Context)

消息转发

func FriendBlockList

func FriendBlockList(c *gin.Context)

获取黑名单列表

func FriendChatLog

func FriendChatLog(c *gin.Context)

获取好友消息记录

func FriendFliesLog

func FriendFliesLog(c *gin.Context)

获取好友消息记录

func FriendInfo

func FriendInfo(c *gin.Context)

查看好友详情

func FriendList

func FriendList(c *gin.Context)

获取好友列表

func FriendPhotosLog

func FriendPhotosLog(c *gin.Context)

获取好友消息记录

func FriendSetDND

func FriendSetDND(c *gin.Context)

设置好友免打扰

func FriendSetExtRemark

func FriendSetExtRemark(c *gin.Context)

设置详细备注

func FriendSetRemark

func FriendSetRemark(c *gin.Context)

设置备注名

func FriendSetTop

func FriendSetTop(c *gin.Context)

设置好友置顶

func GetAllAd

func GetAllAd(c *gin.Context)

func GetAllFriendUnreadMsg

func GetAllFriendUnreadMsg(c *gin.Context)

GetAllFriendUnreadMsg获取所有好友未读消息统计

func GetAppVersions

func GetAppVersions(c *gin.Context)

-----------------------------版本统计--------------------// 获取所有版本

func GetApplyList

func GetApplyList(c *gin.Context)

获取请求列表

func GetCoinInfo

func GetCoinInfo(c *gin.Context)

获取代币信息

func GetExcel

func GetExcel(c *gin.Context)

获取文件

func GetLimit

func GetLimit(c *gin.Context)

群统计

func GetOnlineNumber

func GetOnlineNumber(c *gin.Context)

获取群在线人数

func GetOssConfig

func GetOssConfig(c *gin.Context)

获取oss配置信息

func GetRoomChatLog

func GetRoomChatLog(c *gin.Context)

获取消息记录

func GetRoomFileList

func GetRoomFileList(c *gin.Context)

获取群文件列表

func GetRoomInfo

func GetRoomInfo(c *gin.Context)

获取群信息

func GetRoomList

func GetRoomList(c *gin.Context)

获取群列表

func GetRoomPhotoList

func GetRoomPhotoList(c *gin.Context)

获取群图片列表

func GetRoomSearchMember

func GetRoomSearchMember(c *gin.Context)

搜索群成员信息

func GetRoomUserInfo

func GetRoomUserInfo(c *gin.Context)

获取群成员信息

func GetRoomUserList

func GetRoomUserList(c *gin.Context)

获取群成员列表

func GetSystemMsg

func GetSystemMsg(c *gin.Context)

获取群公告

func GetUnreadApplyNumber

func GetUnreadApplyNumber(c *gin.Context)

获取请求列表

func GetUserClientNums

func GetUserClientNums(c *gin.Context)

func GetUserNums

func GetUserNums(c *gin.Context)

func HandleFriendRequest

func HandleFriendRequest(c *gin.Context)

处理好友申请

func Init

func Init(c *types.Config) *gin.Engine

func InviteStatistics

func InviteStatistics(c *gin.Context)

邀请奖励统计信息

func IsChain

func IsChain(c *gin.Context)

TODO 上链

func IsFriend

func IsFriend(c *gin.Context)

判断是否是好友

func JoinRoomApply

func JoinRoomApply(c *gin.Context)

入群申请

func JoinRoomApprove

func JoinRoomApprove(c *gin.Context)

入群申请处理

func JoinRoomInvite

func JoinRoomInvite(c *gin.Context)

邀请入群

func KickOutRoom

func KickOutRoom(c *gin.Context)

踢出群

func LatestData

func LatestData(c *gin.Context)

------------------------------统计数据------------------------------// 最近统计消息

func LatestDataPlatfrom

func LatestDataPlatfrom(c *gin.Context)

近期统计数据 根据平台分

func LeaderBoard

func LeaderBoard(c *gin.Context)

赞赏榜单

func LeaderBoardHistory

func LeaderBoardHistory(c *gin.Context)

历史榜单

func LoginOutRoom

func LoginOutRoom(c *gin.Context)

退出群

func ModuleEnable

func ModuleEnable(c *gin.Context)

获取模块启用状态

func OssUpdate

func OssUpdate(c *gin.Context)

oss相关接口

func ParseHeaderMiddleWare

func ParseHeaderMiddleWare() gin.HandlerFunc

func Payment

func Payment(c *gin.Context)

付款

func PersonalVerifyList

func PersonalVerifyList(c *gin.Context)

func PhoneLogin

func PhoneLogin(context *gin.Context)

验证验证码,返回token

func Ping

func Ping(c *gin.Context)

func PraiseDetailList

func PraiseDetailList(c *gin.Context)

获取奖赏详情

func PraiseDetails

func PraiseDetails(c *gin.Context)

获取奖赏详情

func PraiseLike

func PraiseLike(c *gin.Context)

点赞

func PraiseList

func PraiseList(c *gin.Context)

获取奖赏记录

func PraiseReward

func PraiseReward(c *gin.Context)

打赏

func PraiseRewardUser

func PraiseRewardUser(c *gin.Context)

打赏用户

func PrintScreen

func PrintScreen(c *gin.Context)

func Push

func Push(c *gin.Context)

func Question

func Question(c *gin.Context)

设置答案验证

func RPFeeConfig

func RPFeeConfig(c *gin.Context)

获取红包手续费列表

func RPFeeStatistics

func RPFeeStatistics(c *gin.Context)

红包手续费统计信息

func RPStatistics

func RPStatistics(c *gin.Context)

红包统计信息

func ReadSnapMsg

func ReadSnapMsg(c *gin.Context)

阅读指定一条阅后即焚消息

func ReceiveEntry

func ReceiveEntry(c *gin.Context)

(登录用户)领取红包

func RecommendRooms

func RecommendRooms(c *gin.Context)

获取推荐群列表

func RedEnvelopeDetail

func RedEnvelopeDetail(c *gin.Context)

红包查看详情

func RedEnvelopeReceiveDetail

func RedEnvelopeReceiveDetail(c *gin.Context)

func RemoveRoom

func RemoveRoom(c *gin.Context)

删除群

func RespMiddleWare

func RespMiddleWare() gin.HandlerFunc

func RevokeFiles

func RevokeFiles(c *gin.Context)

批量撤回文件消息

func RevokeMsg

func RevokeMsg(c *gin.Context)

撤回消息记录

func RewardList

func RewardList(c *gin.Context)

获取奖励列表

func RewardRule

func RewardRule(c *gin.Context)

func RewardStatistics

func RewardStatistics(c *gin.Context)

获取奖励统计信息系

func RoomSessionKey

func RoomSessionKey(c *gin.Context)

获取群会话秘钥

func RoomVerificationState

func RoomVerificationState(c *gin.Context)

认证审核状态

func RoomVerifyList

func RoomVerifyList(c *gin.Context)

func SaveGTCid

func SaveGTCid(c *gin.Context)

弃用 储存个推cid

func Send

func Send(c *gin.Context)

发红包

func SendCode

func SendCode(context *gin.Context)

发送验证码

func SetAdName

func SetAdName(c *gin.Context)

func SetInviteConfirm

func SetInviteConfirm(c *gin.Context)

设置入群邀请确认

func SetLevel

func SetLevel(c *gin.Context)

群内用户身份设置

func SetLimit

func SetLimit(c *gin.Context)
func AdminGetUsers(c *gin.Context) {
	type requestParams struct {
		Types []string   `json:"types" binding:"required"`
		Query string   `json:"query"`
		Page int    `json:"page" binding:"required"`
		Count int   `json:"count" binding:"required"`
	}
	var params requestParams
	if err := c.ShouldBindJSON(&params); err != nil {
		c.Set(ReqError, result.NewError(result.ParamsError).SetChildErr(result.ServiceChat, nil, err.Error()))
		return
	}

	err := model.BanUserCancel(c.MustGet(AdminId).(string), params.Id)
	c.Set(ReqError, err)
}

-----------------------群管理----------------------// 群统计

func SetMemberNickname

func SetMemberNickname(c *gin.Context)

群成员设置群内昵称

func SetNoDisturbing

func SetNoDisturbing(c *gin.Context)

群成员设置免打扰

func SetRPFeeConfig

func SetRPFeeConfig(c *gin.Context)

设置红包手续费

func SetRecommend

func SetRecommend(c *gin.Context)

设置推荐群

func SetRoomAvatar

func SetRoomAvatar(c *gin.Context)

设置群头像

func SetRoomMuted

func SetRoomMuted(c *gin.Context)

设置群中禁言

func SetRoomMutedSingle

func SetRoomMutedSingle(c *gin.Context)

单个禁言

func SetRoomName

func SetRoomName(c *gin.Context)

设置群名称

func SetStickyOnTop

func SetStickyOnTop(c *gin.Context)

群成员设置消息置顶

func SetSystemMsg

func SetSystemMsg(c *gin.Context)

发布群公告

func ShowReward

func ShowReward(c *gin.Context)

func SingleInviteInfos

func SingleInviteInfos(c *gin.Context)

单次邀请奖励列表

func SumDetails

func SumDetails(c *gin.Context)

明细数据

func SumGraph

func SumGraph(c *gin.Context)

折线图

func UnblockFriend

func UnblockFriend(c *gin.Context)

移出黑名单

func UpdatePushDeviceToken

func UpdatePushDeviceToken(c *gin.Context)

更新推送deviceToken

func UploadAd

func UploadAd(c *gin.Context)

func UploadSecretKey

func UploadSecretKey(c *gin.Context)

func UserCheckPayPwd

func UserCheckPayPwd(c *gin.Context)

func UserConf

func UserConf(c *gin.Context)

查看用户设置

func UserEditAvatar

func UserEditAvatar(c *gin.Context)

func UserEditNickname

func UserEditNickname(c *gin.Context)

func UserInfo

func UserInfo(c *gin.Context)

func UserIsInRoom

func UserIsInRoom(c *gin.Context)

判断用户是否在群里

func UserIsSetPayPwd

func UserIsSetPayPwd(c *gin.Context)

查询用户是否设置支付密码

func UserListByUid

func UserListByUid(c *gin.Context)

通过UID查询好友详情

func UserLogin

func UserLogin(context *gin.Context)

合约登陆接口

func UserLoginOut

func UserLoginOut(c *gin.Context)

删除session 删除deviceToken

func UserSetPayPwd

func UserSetPayPwd(c *gin.Context)

func UserTokenLogin

func UserTokenLogin(context *gin.Context)

根据token登录

func UserVerificationState

func UserVerificationState(c *gin.Context)

认证审核状态

func VerifyApplyForRoom

func VerifyApplyForRoom(c *gin.Context)

群认证申请

func VerifyApplyForUser

func VerifyApplyForUser(c *gin.Context)

认证申请

func VerifyApprove

func VerifyApprove(c *gin.Context)

-------------------------------认证------------------//

func VerifyFeeStatistics

func VerifyFeeStatistics(c *gin.Context)

func VerifyGetConfig

func VerifyGetConfig(c *gin.Context)

func VerifyGetConfigByType

func VerifyGetConfigByType(c *gin.Context)

func VerifySetFee

func VerifySetFee(c *gin.Context)

func VersionController

func VersionController(c *gin.Context)

检查版本更新

func VersionGraph

func VersionGraph(c *gin.Context)

版本统计折线图

func WriteMsg

func WriteMsg(w io.Writer, msg []byte)

WriteMsg 给接口请求返回消息

Types

This section is empty.

Jump to

Keyboard shortcuts

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