models

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log = UnilogLog

type UnilogLog

type UnilogLog struct {
	Id         uint   `gorm:"column:id;type:uint;primaryKey;autoIncrement:true;comment:日志Id" json:"id"`                    // 日志Id
	UserId     uint   `gorm:"column:user_id;type:uint;not null;default:0;comment:用户Id;index" json:"user_id"`               // 用户Id
	UserName   string `gorm:"column:user_name;type:varchar(100);not null;default:'';comment:用户名称;index" json:"user_name"`  // 用户名称
	ClientIP   string `gorm:"column:client_ip;type:varchar(100);not null;default:'';comment:客户端IP;index" json:"client_ip"` // 客户端IP
	Type1      string `gorm:"column:type1;type:varchar(100);not null;default:'';comment:类型1;index" json:"type1"`           // 类型1
	Type2      string `gorm:"column:type2;type:varchar(100);not null;default:'';comment:类型2;index" json:"type2"`           // 类型2
	Type3      string `gorm:"column:type3;type:varchar(100);not null;default:'';comment:类型3;index" json:"type3"`           // 类型3
	Type4      string `gorm:"column:type4;type:varchar(100);not null;default:'';comment:类型4;index" json:"type4"`           // 类型4
	Type5      string `gorm:"column:type5;type:varchar(100);not null;default:'';comment:类型5;index" json:"type5"`           // 类型5
	Content    string `gorm:"column:content;type:varchar(500);not null;default:'';comment:日志内容" json:"content"`            // 日志内容
	CreateTime string `gorm:"column:create_time;type:varchar(20);not null;default:'';comment:创建时间" json:"create_time"`     // 创建时间
	UpdateTime string `gorm:"column:update_time;type:varchar(20);not null;default:'';comment:修改时间" json:"update_time"`     // 修改时间
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL