first commit
This commit is contained in:
25
pkg/common/http/dto/ChatRoomDTO.go
Normal file
25
pkg/common/http/dto/ChatRoomDTO.go
Normal 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 // 是否显示砸蛋
|
||||
}
|
||||
5
pkg/common/http/dto/RequestDTO.go
Normal file
5
pkg/common/http/dto/RequestDTO.go
Normal file
@ -0,0 +1,5 @@
|
||||
package dto
|
||||
|
||||
type RequestDTO struct {
|
||||
Token string
|
||||
}
|
||||
17
pkg/common/http/dto/UserDTO.go
Normal file
17
pkg/common/http/dto/UserDTO.go
Normal 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 //头饰
|
||||
}
|
||||
7
pkg/common/http/dto/UserInviteSummaryDTO.go
Normal file
7
pkg/common/http/dto/UserInviteSummaryDTO.go
Normal file
@ -0,0 +1,7 @@
|
||||
package dto
|
||||
|
||||
type UserInviteSummaryDTO struct {
|
||||
UserId string
|
||||
InviteDiamond string
|
||||
InviteUserCount string
|
||||
}
|
||||
51
pkg/common/http/response/Activity.go
Normal file
51
pkg/common/http/response/Activity.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user