This commit is contained in:
aozhiwei 2024-04-11 20:17:22 +08:00
parent 272b75b2e7
commit 4cd5c36a00
2 changed files with 21 additions and 2 deletions

View File

@ -212,8 +212,8 @@ DROP TABLE IF EXISTS `t_log`;
CREATE TABLE `t_log` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id',
`type` varchar(255) NOT NULL DEFAULT '' COMMENT '日志类型',
`subtype` varchar(255) NOT NULL DEFAULT '' COMMENT '日志子类型',
`log_type` varchar(255) NOT NULL DEFAULT '' COMMENT '日志类型',
`log_subtype` varchar(255) NOT NULL DEFAULT '' COMMENT '日志子类型',
`param1` varchar(666) NOT NULL DEFAULT '' COMMENT 'param1',
`param2` varchar(666) NOT NULL DEFAULT '' COMMENT 'param2',
`param3` varchar(666) NOT NULL DEFAULT '' COMMENT 'param3',

View File

@ -1,9 +1,18 @@
package dblog
import (
"f5"
"main/constant"
)
type dbLogMgr struct {
}
const (
LOG_TYPE_FRIEND_ADD = "friend"
)
func (this* dbLogMgr) Init() {
}
@ -19,3 +28,13 @@ func (this *dbLogMgr) FriendAdd(string, string) {
func (this* dbLogMgr) FriendDel(string, string) {
}
func (this *dbLogMgr) addLog(fields [][]string) {
f5.GetJsStyleDb().Insert(
constant.FRIEND_DB,
"t_log",
fields,
func (error, int64, int64) {
})
}