mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 07:20:24 +08:00
13 lines
646 B
Go
13 lines
646 B
Go
package entity
|
||
|
||
import "mayfly-go/pkg/model"
|
||
|
||
type MachineFile struct {
|
||
model.Model
|
||
|
||
Name string `json:"name" gorm:"not null;size:50;comment:机器文件配置(linux一切皆文件,故也可以表示目录)"` // 机器文件配置(linux一切皆文件,故也可以表示目录)
|
||
MachineId uint64 `json:"machineId" gorm:"not null;comment:机器id"` // 机器id
|
||
Type int8 `json:"type" gorm:"not null;comment:1:目录;2:文件"` // 1:目录;2:文件
|
||
Path string `json:"path" gorm:"not null;size:150;comment:路径"` // 路径
|
||
}
|