github.com/bububa/oceanengine/marketing-api@v0.0.0-20210315120513-0b953137f7a6/model/advertiser/avatar_get.go (about)

     1  package advertiser
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/bububa/oceanengine/marketing-api/model"
     7  )
     8  
     9  type AvatarGetRequest struct {
    10  	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
    11  }
    12  
    13  func (r AvatarGetRequest) Encode() string {
    14  	return fmt.Sprintf("advertiser_id=%d", r.AdvertiserID)
    15  }
    16  
    17  type AvatarGetResponse struct {
    18  	model.BaseResponse
    19  	Data *AvatarGetResponseData `json:"data,omitempty"`
    20  }
    21  
    22  type AvatarGetResponseData struct {
    23  	AdvertiserID uint64      `json:"advertiser_id,omitempty"` // 广告主id
    24  	AvatarStatus int         `json:"avatar_status,omitempty"` // 头像审核状态 0-未设置,1-审核中,2-审核被拒,3-审核通过
    25  	AvatarReason string      `json:"avatar_reason,omitempty"` // 头像被拒原因
    26  	SourceStatus int         `json:"source_status,omitempty"` // 品牌审核状态 0-未设置,1-审核中,2-审核被拒,3-审核通过,
    27  	SourceReason string      `json:"source_reason,omitempty"` // 品牌信息被拒原因
    28  	AvatarInfo   *AvatarInfo `json:"avatar_info,omitempty"`   // 头像信息
    29  }
    30  
    31  type AvatarInfo struct {
    32  	WebUri      string `json:"web_uri,omitempty"`       // 当前头像的uri
    33  	AuditWebUri string `json:"audit_web_uri,omitempty"` // 审核中头像的uri
    34  	Height      int    `json:"height,omitempty"`        // 审核中头像的高度
    35  	Width       int    `json:"width,omitempty"`         // 审核中头像的宽度
    36  }