mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-01 13:30:25 +08:00
fix: 机器文件内容写入导致内容清空、feat: ioc支持根据类型注入
This commit is contained in:
@@ -36,11 +36,6 @@ type machineCmdConfAppImpl struct {
|
||||
|
||||
var _ (MachineCmdConf) = (*machineCmdConfAppImpl)(nil)
|
||||
|
||||
// 注入MachineCmdConfRepo
|
||||
func (m *machineCmdConfAppImpl) InjectMachineCmdConfRepo(repo repository.MachineCmdConf) {
|
||||
m.Repo = repo
|
||||
}
|
||||
|
||||
func (m *machineCmdConfAppImpl) SaveCmdConf(ctx context.Context, cmdConfParam *dto.SaveMachineCmdConf) error {
|
||||
cmdConf := cmdConfParam.CmdConf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user