升级至8069版本:版本号更新/代理配置系统/红包计时埋点/长连接重构/回调修复
This commit is contained in:
@@ -339,6 +339,22 @@ func SetChatroomNameApi(ctx *gin.Context) {
|
||||
ctx.JSON(http.StatusOK, result)
|
||||
}
|
||||
|
||||
// SetGroupNicknameApi 设置我在本群的昵称
|
||||
func SetGroupNicknameApi(ctx *gin.Context) {
|
||||
reqModel := new(req.ChatroomNameModel)
|
||||
queryKey, isExist := ctx.GetQuery("key")
|
||||
if !isExist || strings.Trim(queryKey, "") == "" || strings.Trim(queryKey, "") == "null" {
|
||||
//确保每次都有Key
|
||||
ctx.JSON(http.StatusOK, vo.NewFailUUId(""))
|
||||
return
|
||||
}
|
||||
if !validateData(ctx, &reqModel) {
|
||||
return
|
||||
}
|
||||
result := service.SetGroupNicknameService(queryKey, *reqModel)
|
||||
ctx.JSON(http.StatusOK, result)
|
||||
}
|
||||
|
||||
// SendPatApi 群拍一拍功能
|
||||
func SendPatApi(ctx *gin.Context) {
|
||||
reqModel := new(req.SendPatModel)
|
||||
|
||||
Reference in New Issue
Block a user