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