kra/internal/data/model/sys_ignore_apis.gen.go

29 lines
1.1 KiB
Go

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysIgnoreAPI = "sys_ignore_apis"
// SysIgnoreAPI mapped from table <sys_ignore_apis>
type SysIgnoreAPI struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_ignore_apis_deleted_at,priority:1" json:"deleted_at"`
Path string `gorm:"column:path;type:varchar(191);comment:api路径" json:"path"` // api路径
Method string `gorm:"column:method;type:varchar(191);default:POST;comment:方法" json:"method"` // 方法
}
// TableName SysIgnoreAPI's table name
func (*SysIgnoreAPI) TableName() string {
return TableNameSysIgnoreAPI
}