Files
mayfly-go/server/internal/machine/domain/entity/machine_file.go
2025-02-20 17:07:13 +08:00

13 lines
646 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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:路径"` // 路径
}