first commit

This commit is contained in:
Yangtao
2025-11-18 17:48:20 +08:00
commit 6e56cab848
196 changed files with 65809 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package dto
type ChatRoomModelDTO struct {
Id string
OwnerUserId string
RoomNo string
RoomName string
MessageRoomId string
TabId string //分类ID
TemplateId string
CreateTime string
Status string
OpenTime string
RoomPwd string
MaxMemberCount string
IsHot string
RobotCount string
RoomTagIcon string
GuestCanUseEmoji string
SendMessageTimeGap string //发送消息间隔
UpSeatType string //1=排麦 2=自由麦
AudioQualityLevel string //音质等级 1=正常 2=高音质 3=超高音质
ViewSkewer string //是否显示福签 1=显示 0=不显示
IsViewHitegg string // 是否显示砸蛋
}

View File

@ -0,0 +1,5 @@
package dto
type RequestDTO struct {
Token string
}

View File

@ -0,0 +1,17 @@
package dto
type UserDTO struct {
UserId string
UserNo string
NickName string
Avatar string
Gender string
BirthDay string
VipLevel string
VipExp string
IsAuth string
Status string
TrueName string
Mobile string
AvatarDecoration string //头饰
}

View File

@ -0,0 +1,7 @@
package dto
type UserInviteSummaryDTO struct {
UserId string
InviteDiamond string
InviteUserCount string
}

View File

@ -0,0 +1,51 @@
package response
import "servicebase/pkg/common/http/dto"
type CommonResponse struct {
Code string
Result interface{}
Msg string
}
// 用户信息
type UserInfoResponse struct {
Code string
Result dto.UserDTO
Msg string
}
//获取用户邀请汇总数据返回
type UserInviteSummaryResponse struct {
Code string
Result dto.UserInviteSummaryDTO
Msg string
}
func Success(data interface{}) (res CommonResponse) {
res.Code = "6000"
res.Result = data
return
}
func Page(data interface{}, count int64) (res CommonResponse) {
res.Code = "6000"
res.Result = map[string]interface{}{
"list": data,
"count": count,
}
return
}
func Failed(msg string) (res CommonResponse) {
res.Code = "8020"
res.Msg = msg
return
}
func Gen(code, msg string, result interface{}) (res CommonResponse) {
res.Code = code
res.Msg = msg
res.Result = result
return
}