agent

package
v1.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvertiserRechargeRequest

type AdvertiserRechargeRequest struct {
	AdvertiserID uint64  `json:"advertiser_id,omitempty"` // 广告主ID
	AgentID      uint64  `json:"agent_id,omitempty"`      // 代理商ID
	TransferType string  `json:"transfer_type,omitempty"` // 转账类型(新增字段). 枚举:CASH:现金,GRANT:赠款
	Amount       float64 `json:"amount,omitempty"`        // 金额,单位(元),最低转账金额500元
}

func (AdvertiserRechargeRequest) Encode

func (r AdvertiserRechargeRequest) Encode() []byte

type AdvertiserRechargeResponse

type AdvertiserRechargeResponse struct {
	model.BaseResponse
	Data *AdvertiserRechargeResponseData `json:"data,omitempty"`
}

type AdvertiserRechargeResponseData

type AdvertiserRechargeResponseData struct {
	TransactionSeq string `json:"transaction_seq,omitempty"` // 交易序列号
}

type AdvertiserRefundRequest

type AdvertiserRefundRequest struct {
	AdvertiserID uint64  `json:"advertiser_id,omitempty"` // 广告主ID
	AgentID      uint64  `json:"agent_id,omitempty"`      // 代理商ID
	TransferType string  `json:"transfer_type,omitempty"` // 转账类型(新增字段). 枚举:CASH:现金,GRANT:赠款
	Amount       float64 `json:"amount,omitempty"`        // 金额,单位(元),最低转账金额500元
}

func (AdvertiserRefundRequest) Encode

func (r AdvertiserRefundRequest) Encode() []byte

type AdvertiserRefundResponse

type AdvertiserRefundResponse struct {
	model.BaseResponse
	Data *AdvertiserRefundResponseData `json:"data,omitempty"`
}

type AdvertiserRefundResponseData

type AdvertiserRefundResponseData struct {
	TransactionSeq string `json:"transaction_seq,omitempty"` // 交易序列号
}

type AdvertiserSelectRequest

type AdvertiserSelectRequest struct {
	AdvertiserID uint64 `json:"advertiser_id,omitempty"` // 代理商ID
	Page         int    `json:"page,omitempty"`          // 页码.默认值: 1
	PageSize     int    `json:"page_size,omitempty"`     // 页面数据量.默认值: 100
}

func (AdvertiserSelectRequest) Encode

func (r AdvertiserSelectRequest) Encode() string

type AdvertiserSelectResponse

type AdvertiserSelectResponse struct {
	model.BaseResponse
	Data *AdvertiserSelectResponseData `json:"data,omitempty"`
}

type AdvertiserSelectResponseData

type AdvertiserSelectResponseData struct {
	List     []uint64        `json:"list,omitempty"`
	PageInfo *model.PageInfo `json:"page_info,omitempty"`
}

type AdvertiserUpdateRequest

type AdvertiserUpdateRequest struct {
	AdvertiserID uint64 `json:"advertiser_id,omitempty"` // 广告主ID
	Name         string `json:"name,omitempty"`          // 账户名称
	Contacter    string `json:"contacter,omitempty"`     // 联系人
	Phonenumber  string `json:"phonenumber,omitempty"`   // 手机号码
	Telephone    string `json:"telephone,omitempty"`     // 固定电话
}

func (AdvertiserUpdateRequest) Encode

func (r AdvertiserUpdateRequest) Encode() []byte

type AdvertiserUpdateResponse

type AdvertiserUpdateResponse struct {
	model.BaseResponse
	Data *AdvertiserUpdateResponseData `json:"data,omitempty"`
}

type AdvertiserUpdateResponseData

type AdvertiserUpdateResponseData struct {
	AdvertiserID uint64 `json:"advertiser_id,omitempty"` // 广告主ID
	NeedAudit    int    `json:"need_audit,omitempty"`    // 此次修改是否触发进入待审状态(1表示进入待审状态,0表示不进入待审状态)
}

type ChildAgentSelectRequest

type ChildAgentSelectRequest struct {
	AdvertiserID uint64 `json:"advertiser_id,omitempty"` // 代理商ID
	Page         int    `json:"page,omitempty"`          // 页码.默认值: 1
	PageSize     int    `json:"page_size,omitempty"`     // 页面数据量.默认值: 100
}

func (ChildAgentSelectRequest) Encode

func (r ChildAgentSelectRequest) Encode() string

type ChildAgentSelectResponse

type ChildAgentSelectResponse struct {
	model.BaseResponse
	Data *ChildAgentSelectResponseData `json:"data,omitempty"`
}

type ChildAgentSelectResponseData

type ChildAgentSelectResponseData struct {
	ChildAgentIDs []uint64 `json:"child_agent_ids,omitempty"`
}

type Info

type Info struct {
	AgentID       uint64 `json:"agent_id,omitempty"`       // 代理商ID
	AgentName     string `json:"agent_name,omitempty"`     // 代理商名称
	CustomerID    uint64 `json:"customer_id,omitempty"`    // 客户id
	CompanyID     uint64 `json:"company_id,omitempty"`     // 公司id
	CompanyName   string `json:"company_name,omitempty"`   // 公司名称
	AccountStatus string `json:"account_status,omitempty"` // 用户状态
	CreateTime    string `json:"create_time,omitempty"`    // 注册时间
	Role          string `json:"role,omitempty"`           // 角色
}

type InfoRequest

type InfoRequest struct {
	AdvertiserIDs []uint64 `json:"advertiser_ids,omitempty"` // 代理商ids
	Fields        []string `json:"fields,omitempty"`         // 查询字段集合, 如果指定, 则返回结果数组中, 每个元素是包含所查询字段的字典,默认全部指定.允许值: "agent_id", "agent_name", "customer_id", "customer_name","company_id", "company_name", "create_time", "role"
}

func (InfoRequest) Encode

func (r InfoRequest) Encode() string

type InfoResponse

type InfoResponse struct {
	model.BaseResponse
	Data []Info `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL