Documentation ¶
Overview ¶
Package agent 代理商相关API models
Index ¶
- type AdvertiserRechargeRequest
- type AdvertiserRechargeResponse
- type AdvertiserRechargeResponseData
- type AdvertiserRefundRequest
- type AdvertiserRefundResponse
- type AdvertiserRefundResponseData
- type AdvertiserSelectRequest
- type AdvertiserSelectResponse
- type AdvertiserSelectResponseData
- type AdvertiserUpdateRequest
- type AdvertiserUpdateResponse
- type AdvertiserUpdateResponseData
- type ChildAgentSelectRequest
- type ChildAgentSelectResponse
- type ChildAgentSelectResponseData
- type Info
- type InfoRequest
- type InfoResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvertiserRechargeRequest ¶
type AdvertiserRechargeRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // AgentID 代理商ID AgentID uint64 `json:"agent_id,omitempty"` // TransferType 转账类型(新增字段). 枚举:CASH:现金,GRANT:赠款 TransferType string `json:"transfer_type,omitempty"` // Amount 金额,单位(元),最低转账金额500元 Amount float64 `json:"amount,omitempty"` }
AdvertiserRechargeRequest 代理商转账 API Request
func (AdvertiserRechargeRequest) Encode ¶
func (r AdvertiserRechargeRequest) Encode() []byte
Encode implement PostRequest interface
type AdvertiserRechargeResponse ¶
type AdvertiserRechargeResponse struct { model.BaseResponse // Data json返回值 Data *AdvertiserRechargeResponseData `json:"data,omitempty"` }
AdvertiserRechargeResponse 代理商转账 API Response
type AdvertiserRechargeResponseData ¶
type AdvertiserRechargeResponseData struct { // TransactionSeq 交易序列号 TransactionSeq string `json:"transaction_seq,omitempty"` }
AdvertiserRechargeResponseData json返回值
type AdvertiserRefundRequest ¶
type AdvertiserRefundRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // AgentID 代理商ID AgentID uint64 `json:"agent_id,omitempty"` // TransferType 转账类型(新增字段). 枚举:CASH:现金,GRANT:赠款 TransferType string `json:"transfer_type,omitempty"` // Amount 金额,单位(元),最低转账金额500元 Amount float64 `json:"amount,omitempty"` }
AdvertiserRefundRequest 代理商退款 API Request
func (AdvertiserRefundRequest) Encode ¶
func (r AdvertiserRefundRequest) Encode() []byte
Encode implement PostRequest interface
type AdvertiserRefundResponse ¶
type AdvertiserRefundResponse struct { model.BaseResponse // Data json返回值 Data *AdvertiserRefundResponseData `json:"data,omitempty"` }
AdvertiserRefundResponse 代理商退款 API Response
type AdvertiserRefundResponseData ¶
type AdvertiserRefundResponseData struct { // TransactionSeq 交易序列号 TransactionSeq string `json:"transaction_seq,omitempty"` }
AdvertiserRefundResponseData json返回值
type AdvertiserSelectRequest ¶
type AdvertiserSelectRequest struct { // AdvertiserID 代理商ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // Page 页码.默认值: 1 Page int `json:"page,omitempty"` // PageSize 页面数据量.默认值: 100 PageSize int `json:"page_size,omitempty"` }
AdvertiserSelectRequest 代理商管理账户列表 API Request
func (AdvertiserSelectRequest) Encode ¶
func (r AdvertiserSelectRequest) Encode() string
Encode implement GetRequest interface
type AdvertiserSelectResponse ¶
type AdvertiserSelectResponse struct { model.BaseResponse // Data json返回值 Data *AdvertiserSelectResponseData `json:"data,omitempty"` }
AdvertiserSelectResponse 代理商管理账户列表 API Response
type AdvertiserSelectResponseData ¶
type AdvertiserSelectResponseData struct { // List 广告主ID列表 List []uint64 `json:"list,omitempty"` // AccountSource 账号列表的账号类型 // 枚举值:AD广告主、STAR星图、LUBAN鲁班、DOMESTIC 入海 AccountSource string `json:"account_source,omitempty"` // PageInfo 分页信息 PageInfo *model.PageInfo `json:"page_info,omitempty"` }
AdvertiserSelectResponseData json返回值
type AdvertiserUpdateRequest ¶
type AdvertiserUpdateRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // Name 账户名称 Name string `json:"name,omitempty"` // Contacter 联系人 Contacter string `json:"contacter,omitempty"` // Phonenumber 手机号码 Phonenumber string `json:"phonenumber,omitempty"` // Telephone 固定电话 Telephone string `json:"telephone,omitempty"` }
AdvertiserUpdateRequest 修改广告主 API Request
func (AdvertiserUpdateRequest) Encode ¶
func (r AdvertiserUpdateRequest) Encode() []byte
Encode implement PostRequest interface
type AdvertiserUpdateResponse ¶
type AdvertiserUpdateResponse struct { model.BaseResponse // Data json返回值 Data *AdvertiserUpdateResponseData `json:"data,omitempty"` }
AdvertiserUpdateResponse 修改广告主 API Response
type AdvertiserUpdateResponseData ¶
type AdvertiserUpdateResponseData struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // NeedAudit 此次修改是否触发进入待审状态(1表示进入待审状态,0表示不进入待审状态) NeedAudit int `json:"need_audit,omitempty"` }
AdvertiserUpdateResponseData json返回值
type ChildAgentSelectRequest ¶
type ChildAgentSelectRequest struct { // AdvertiserID 代理商ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // Page 页码.默认值: 1 Page int `json:"page,omitempty"` // PageSize 页面数据量.默认值: 100 PageSize int `json:"page_size,omitempty"` }
ChildAgentSelectRequest 二级代理商列表 API Request
func (ChildAgentSelectRequest) Encode ¶
func (r ChildAgentSelectRequest) Encode() string
Encode implement GetRequest interface
type ChildAgentSelectResponse ¶
type ChildAgentSelectResponse struct { model.BaseResponse // Data json返回值 Data *ChildAgentSelectResponseData `json:"data,omitempty"` }
ChildAgentSelectResponse 二级代理商列表 API Response
type ChildAgentSelectResponseData ¶
type ChildAgentSelectResponseData struct { // ChildAgentIDs 二级代理商ID列表 ChildAgentIDs []uint64 `json:"child_agent_ids,omitempty"` }
ChildAgentSelectResponseData json返回值
type Info ¶
type Info struct { // AgentID 代理商ID AgentID uint64 `json:"agent_id,omitempty"` // AgentName 代理商名称 AgentName string `json:"agent_name,omitempty"` // CustomerID 客户id CustomerID uint64 `json:"customer_id,omitempty"` // CompanyID 公司id CompanyID uint64 `json:"company_id,omitempty"` // CompanyName 公司名称 CompanyName string `json:"company_name,omitempty"` // AccountStatus 用户状态 AccountStatus string `json:"account_status,omitempty"` // CreateTime 注册时间 CreateTime string `json:"create_time,omitempty"` // Role 角色 Role string `json:"role,omitempty"` }
Info 代理商信息
type InfoRequest ¶
type InfoRequest struct { // AdvertiserIDs 代理商ids AdvertiserIDs []uint64 `json:"advertiser_ids,omitempty"` // Fields 查询字段集合, 如果指定, 则返回结果数组中, 每个元素是包含所查询字段的字典,默认全部指定.允许值: "agent_id", "agent_name", "customer_id", "customer_name","company_id", "company_name", "create_time", "role" Fields []string `json:"fields,omitempty"` }
InfoRequest 获取代理商信息 API Request
func (InfoRequest) Encode ¶
func (r InfoRequest) Encode() string
Encode implement GetRequest inteface
type InfoResponse ¶
type InfoResponse struct { model.BaseResponse // Data json返回值 Data []Info `json:"data,omitempty"` }
InfoResponse 获取代理商信息 API Response