log

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package log 工具-查询工具-日志查询API models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	// ContentTitle 操作内容
	ContentTitle string `json:"content_title,omitempty"`
	// ObjectType 操作对象类型
	ObjectType string `json:"object_type,omitempty"`
	// ObjectID 操作对象ID
	ObjectID uint64 `json:"object_id,omitempty"`
	// ObjectName 操作对象名称
	ObjectName string `json:"object_name,omitempty"`
	// CreateTime 操作时间
	CreateTime string `json:"create_time,omitempty"`
	// ContentLog 操作前后内容
	ContentLog []string `json:"content_log,omitempty"`
	// Operator 操作人
	Operator string `json:"operator,omitempty"`
	// OptIP 操作IP
	OptIP string `json:"opt_ip,omitempty"`
}

Log 日志详情

type SearchRequest

type SearchRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// ObjectID 操作对象ID, 1 <= len <= 20 , 可以为campaign_id、ad_id、creative_id, 各种id可以随意组合
	ObjectID []uint64 `json:"object_id,omitempty"`
	// StartTime 日志查询开始时间,格式 "2019-07-24 21:46:57"
	StartTime string `json:"start_time,omitempty"`
	// EndTime 日志查询结束时间,格式 "2019-07-24 21:46:57"
	EndTime string `json:"end_time,omitempty"`
	// Page 页码
	Page int `json:"page,omitempty"`
	// PageSize 页面大小
	PageSize int `json:"page_size,omitempty"`
}

SearchRequest 日志查询 API Request

func (SearchRequest) Encode

func (r SearchRequest) Encode() string

Encode implement GetRequest interface

type SearchResponse

type SearchResponse struct {
	model.BaseResponse
	// Data json返回值
	Data *SearchResponseData `json:"data,omitempty"`
}

SearchResponse 日志查询 API Response

type SearchResponseData

type SearchResponseData struct {
	// Logs 日志详情
	Logs []Log `json:"logs,omitempty"`
	// PageInfo 分页信息
	PageInfo *model.PageInfo `json:"page_info,omitempty"`
}

SearchResponseData json返回值

Jump to

Keyboard shortcuts

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