go-common/app/admin/ep/merlin/service/machine_log.go
2019-04-22 18:49:16 +08:00

16 lines
453 B
Go

package service
import "go-common/app/admin/ep/merlin/model"
// AddMachineLog add machine log.
func (s *Service) AddMachineLog(username string, machineID int64, operateType string, operateResult string) (err error) {
machineLog := &model.MachineLog{}
machineLog.OperateType = operateType
machineLog.Username = username
machineLog.MachineID = machineID
machineLog.OperateResult = operateResult
err = s.dao.InsertMachineLog(machineLog)
return
}