machine_log.go 453 B

123456789101112131415
  1. package service
  2. import "go-common/app/admin/ep/merlin/model"
  3. // AddMachineLog add machine log.
  4. func (s *Service) AddMachineLog(username string, machineID int64, operateType string, operateResult string) (err error) {
  5. machineLog := &model.MachineLog{}
  6. machineLog.OperateType = operateType
  7. machineLog.Username = username
  8. machineLog.MachineID = machineID
  9. machineLog.OperateResult = operateResult
  10. err = s.dao.InsertMachineLog(machineLog)
  11. return
  12. }