This commit is contained in:
aozhiwei 2024-08-13 14:06:55 +08:00
parent b6b14b9428
commit 166509bf93
2 changed files with 14 additions and 2 deletions

View File

@ -56,10 +56,11 @@ DROP TABLE IF EXISTS `t_login_annc`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_login_annc` (
`idx` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`annc_type` int(11) NOT NULL DEFAULT '0' COMMENT ' 1:最低版本支持公告 2白名单版本公告 3当前版本公告',
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
`version` varchar(32) NOT NULL DEFAULT '' COMMENT '版本',
`model` int(11) NOT NULL DEFAULT '0' COMMENT '型号 1:Android 2:ios',
`type` int(11) NOT NULL DEFAULT '0' COMMENT ' 1:停服公告 2:普通公告',
`platform` int(11) NOT NULL DEFAULT '0' COMMENT '平台 1:Android 2:ios',
`click_type` int(11) NOT NULL DEFAULT '0' COMMENT ' 0:不能进游戏 1:可以进游戏',
`is_effect` int(11) NOT NULL DEFAULT '0' COMMENT '是否生效',
`content` text DEFAULT '' COMMENT '内容',
PRIMARY KEY (`idx`),

View File

@ -28,6 +28,17 @@ const (
EMAIL_KEY = "520d8eeb8cf1d833a42c820432c020b2fd60f4b7|" + EMAIL_URL_DEV
)
const (
LOGIN_ANNC_TYPE_LEAST_VERSION = 1
LOGIN_ANNC_TYPE_WHITE_VERSION = 2
LOGIN_ANNC_TYPE_CURRENT_VERSION = 3
)
const (
PLATFORM_ANDROID = 1
PLATFORM_IOS = 2
)
/* const (
FULL_PERMISSION = "*"
PLAYER_INFO = "playerinfo" //玩家基本信息查询