globalBroadcast.go 716 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
package user_m

import (
	"git.hilo.cn/hilo-common/domain"
	"git.hilo.cn/hilo-common/resource/mysql"
	"time"
)

type UserGlobalBroadcast struct {
	mysql.Entity
	*domain.Model `gorm:"-"`
	UserId        mysql.ID
	Msg           mysql.Str
	GroupId       mysql.Str
	Status        mysql.UserYesNo
}

type UserGlobalBroadcastProhibit struct {
	mysql.Entity
	*domain.Model         `gorm:"-"`
	UserId                mysql.ID
	UserGlobalBroadcastId mysql.ID
}

//
type UserGlobalBroadcastLimit struct {
	mysql.Entity
	*domain.Model `gorm:"-"`
	UserId        mysql.ID
	EndTime       *time.Time
}

//管理全球广播的人
type GlobalBroadcastManager struct {
	mysql.Entity
	*domain.Model `gorm:"-"`
	UserId        mysql.ID
}