mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-27 03:20:25 +08:00
简单基于DDD重构,并实现机器文件及脚本管理
This commit is contained in:
15
devops/models/machine_script.go
Normal file
15
devops/models/machine_script.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "mayfly-go/base/model"
|
||||
|
||||
type MachineScript struct {
|
||||
model.Model
|
||||
Name string `json:"name"`
|
||||
// 机器id
|
||||
MachineId uint64 `json:"machineId"`
|
||||
Type int `json:"type"`
|
||||
// 脚本内容
|
||||
Description string `json:"description"`
|
||||
// 脚本内容
|
||||
Script string `json:"script"`
|
||||
}
|
||||
Reference in New Issue
Block a user