From 6edcf1c593562a42a38688cfbb74a12d3bca23c6 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 11 Dec 2024 16:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=93=8D=E4=BD=9C=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/admin_log.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/model/admin_log.go diff --git a/src/model/admin_log.go b/src/model/admin_log.go new file mode 100644 index 0000000..7f7e8a1 --- /dev/null +++ b/src/model/admin_log.go @@ -0,0 +1,15 @@ +package model + +import ( + "time" +) + +type AdminLog struct { + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Type string `json:"type" xorm:"VARCHAR(255)"` + AdminId int `json:"admin_id" xorm:"default 0 INT(11)"` + Memo string `json:"memo" xorm:"VARCHAR(2000)"` + Time time.Time `json:"time" xorm:"DATETIME"` + Ip string `json:"ip" xorm:"VARCHAR(255)"` + Data string `json:"data" xorm:"TEXT"` +}