Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenRequest ¶
type AccessTokenRequest struct { AppId string `json:"app_id,omitempty"` Secret string `json:"secret,omitempty"` GrandType string `json:"grand_type,omitempty"` AuthCode string `json:"auth_code,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` }
func (AccessTokenRequest) Encode ¶
func (r AccessTokenRequest) Encode() []byte
type AccessTokenResponse ¶
type AccessTokenResponse struct { model.BaseResponse Data *AccessTokenResponseData `json:"data,omitempty"` }
type AccessTokenResponseData ¶
type AccessTokenResponseData struct { AccessToken string `json:"access_token,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` ExpiresIn int64 `json:"expires_in,omitempty"` RefreshTokenExpiresIn int64 `json:"refresh_token_expires_in,omitempty"` AdvertiserID uint64 `json:"advertiser_id,omitempty"` AdvertiserIDs []uint64 `json:"advertiser_ids,omitempty"` }
type Advertiser ¶
type Advertiser struct { AdvertiserID uint64 `json:"advertiser_id,omitempty"` // 账号id AdvertiserName string `json:"advertiser_name,omitempty"` // 账号名称 AdvertiserRole uint `json:"advertiser_role,omitempty"` // 账号角色,1-普通广告主,2-账号管家,3-一级代理商,4-二级代理商 IsValid bool `json:"is_valid,omitempty"` // 授权有效性,允许值:true/false;false表示对应的user在客户中心/一站式平台代理商平台变更了对此账号的权限,需要到对应平台进行调整过来; AccountRole enum.AccountRole `json:"account_role,omitempty"` // 新版授权账号角色 }
type AdvertiserGetRequest ¶
type AdvertiserGetRequest struct { AppId string `json:"app_id,omitempty"` Secret string `json:"secret,omitempty"` AccessToken string `json:"access_token,omitempty"` }
func (AdvertiserGetRequest) Encode ¶
func (r AdvertiserGetRequest) Encode() string
type AdvertiserGetResponse ¶
type AdvertiserGetResponse struct { model.BaseResponse Data *AdvertiserGetResponseData `json:"data,omitempty"` }
type AdvertiserGetResponseData ¶
type AdvertiserGetResponseData struct {
List []Advertiser `json:"list,omitempty"`
}
type UserInfoResponse ¶
type UserInfoResponse struct { model.BaseResponse Data *UserInfoResponseData `json:"data,omitempty"` }
type UserInfoResponseData ¶
Click to show internal directories.
Click to hide internal directories.