22 lines
537 B
Go
22 lines
537 B
Go
package proto
|
|
|
|
import "service/dbstruct"
|
|
|
|
type StreamerAuthApprovalApiVO struct {
|
|
*dbstruct.StreamerAuthApproval
|
|
UserId *int64 `json:"user_id"`
|
|
}
|
|
|
|
func (vo *StreamerAuthApprovalApiVO) CopyStreamerAuthApproval(streamerauthapproval *dbstruct.StreamerAuthApproval) *StreamerAuthApprovalApiVO {
|
|
vo.StreamerAuthApproval = streamerauthapproval
|
|
return vo
|
|
}
|
|
|
|
func (vo *StreamerAuthApprovalApiVO) CopyAccount(account *dbstruct.Account) *StreamerAuthApprovalApiVO {
|
|
if account == nil {
|
|
return vo
|
|
}
|
|
vo.UserId = account.UserId
|
|
return vo
|
|
}
|