game2006go/README.md
aozhiwei b6b14b9428 1
2024-08-13 13:39:08 +08:00

85 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 本地host文件修改
192.144.140.87 mysql-test.kingsome.cn
192.144.140.87 redis-test.kingsome.cn
192.144.200.110 polyservice-test.kingsome.cn
# 数据库规范
所有的表都必须有一下字段
CREATE TABLE `t_xxx` (
`idx` bigint(20) NOT NULL AUTO_INCREMENT,
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8;
表字段没特别原因下,必须有默认值
表名称t_开始
version表因为历史原因不以t_开头
每个库都必须有一个version表
# 脚本说明
生成协议、配置表想关代码
cd server/imserver
node ../../tools/pbtools/app.js
# go代码风格
main包里所有的函数、字段都小写开头
# golang的巨坑!!!
当interface类型的返回值已经明确为nil时应该直接返回nil而不是具体实现结构的未赋值空指针
https://www.jianshu.com/p/ffbf8b9b4f79
packets.go:122: closing bad idle connection: EOF
# imserver
SMLogin
# mailserver
收件人类型
所有用户
用户群<=创建时间
用户群>=创建时间
用户群创建时间range(开始时间,结束时间)
用户群指定账号列表
邮件类型
纯个人邮件
群邮件
全局邮件
邮件
增删改
用户组
增删改
事件类型
邮件:新增、变更、删除
用户组:新增、变更、删除
# 参考
https://gorm.io/zh_CN/docs/
# bug
0x8308b66adccf350e5956cf3cf3570dd744ede760
t_staking_daily_settlement
10452
idx: 10137
0xefdc640ecd4fcb2b4e91f9a934270d741d40d9e9
2024/07/29
# 登录公告
<最低版本支持公告
>=白名单版本公告
==当前版本公告