package entity import ( "time" ) type TranscribeJob struct { Id string State string FileID *string IsError bool ErrorText *string Worker *string AcquiredAt *time.Time CreatedAt time.Time RecognitionOpID *string // ID операции распознавания в Yandex Cloud TranscriptionText *string // Результат распознавания } const ( StateCreated = "created" StateConverted = "converted" StateUploaded = "uploaded" StateTranscribe = "transcribe" StateDone = "done" StatusFailed = "failed" ) func (j *TranscribeJob) MoveToState(state string) { j.State = state j.Worker = nil j.AcquiredAt = nil }