service/api/proto/streamerauthapprovaldetails/proto/streamerauthapproval_api_vo.go

22 lines
614 B
Go

package proto
import "service/dbstruct"
type StreamerAuthApprovalDetailsApiVO struct {
*dbstruct.StreamerAuthApprovalDetails
UserId *int64 `json:"user_id"`
}
func (vo *StreamerAuthApprovalDetailsApiVO) CopyStreamerAuthApprovalDetails(streamerauthapprovaldetails *dbstruct.StreamerAuthApprovalDetails) *StreamerAuthApprovalDetailsApiVO {
vo.StreamerAuthApprovalDetails = streamerauthapprovaldetails
return vo
}
func (vo *StreamerAuthApprovalDetailsApiVO) CopyAccount(account *dbstruct.Account) *StreamerAuthApprovalDetailsApiVO {
if account == nil {
return vo
}
vo.UserId = account.UserId
return vo
}