mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
项目目录优化,任务模块后端代码
This commit is contained in:
24
apps/log/entity/log_login.go
Normal file
24
apps/log/entity/log_login.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"pandax/base/model"
|
||||
"time"
|
||||
)
|
||||
|
||||
type LogLogin struct {
|
||||
InfoId int64 `json:"infoId" gorm:"primary_key;AUTO_INCREMENT"` //主键
|
||||
Username string `json:"username" gorm:"type:varchar(128);comment:用户名"`
|
||||
Status string `json:"status" gorm:"type:varchar(1);comment:状态"`
|
||||
Ipaddr string `json:"ipaddr" gorm:"type:varchar(255);comment:ip地址"`
|
||||
LoginLocation string `json:"loginLocation" gorm:"type:varchar(255);comment:归属地"`
|
||||
Browser string `json:"browser" gorm:"type:varchar(255);comment:浏览器"`
|
||||
Os string `json:"os" gorm:"type:varchar(255);comment:系统"`
|
||||
Platform string `json:"platform" gorm:"type:varchar(255);comment:固件"`
|
||||
LoginTime time.Time `json:"loginTime" gorm:"type:timestamp;comment:登录时间"`
|
||||
CreateBy string `json:"createBy" gorm:"type:varchar(128);comment:创建人"`
|
||||
UpdateBy string `json:"updateBy" gorm:"type:varchar(128);comment:更新者"`
|
||||
Params string `json:"params" gorm:"-"`
|
||||
Remark string `json:"remark" gorm:"type:varchar(255);"` //备注
|
||||
Msg string `json:"msg" gorm:"type:varchar(255);"`
|
||||
model.BaseModel
|
||||
}
|
||||
19
apps/log/entity/log_oper.go
Normal file
19
apps/log/entity/log_oper.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"pandax/base/model"
|
||||
)
|
||||
|
||||
type LogOper struct {
|
||||
OperId int64 `json:"operId" gorm:"primary_key;AUTO_INCREMENT"` //主键
|
||||
Title string `json:"title" gorm:"type:varchar(128);comment:操作的模块"`
|
||||
BusinessType string `json:"businessType" gorm:"type:varchar(1);comment:0其它 1新增 2修改 3删除"`
|
||||
Method string `json:"method" gorm:"type:varchar(255);comment:请求方法"`
|
||||
OperName string `json:"operName" gorm:"type:varchar(255);comment:操作人员"`
|
||||
OperUrl string `json:"operUrl" gorm:"type:varchar(255);comment:操作url"`
|
||||
OperIp string `json:"operIp" gorm:"type:varchar(255);comment:操作IP"`
|
||||
OperLocation string `json:"operLocation" gorm:"type:varchar(255);comment:操作地点"`
|
||||
OperParam string `json:"operParam" gorm:"type:varchar(255);comment:请求参数"` //
|
||||
Status string `json:"status" gorm:"type:varchar(1);comment:0=正常,1=异常"`
|
||||
model.BaseModel
|
||||
}
|
||||
Reference in New Issue
Block a user