23 lines
539 B
Go
23 lines
539 B
Go
package proto
|
|
|
|
import (
|
|
accountproto "service/api/proto/account/proto"
|
|
"service/dbstruct"
|
|
)
|
|
|
|
type TextAuditTaskVO struct {
|
|
*dbstruct.TextAuditTask
|
|
Account *accountproto.OpListVO `json:"account"`
|
|
TextAudit *dbstruct.TextAudit `json:"text_audit"`
|
|
}
|
|
|
|
func (vo *TextAuditTaskVO) CopyTextAuditTask(textAuditTask *dbstruct.TextAuditTask) *TextAuditTaskVO {
|
|
vo.TextAuditTask = textAuditTask
|
|
return vo
|
|
}
|
|
|
|
func (vo *TextAuditTaskVO) CopyTextAudit(textAudit *dbstruct.TextAudit) *TextAuditTaskVO {
|
|
vo.TextAudit = textAudit
|
|
return vo
|
|
}
|