types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrawlResult

type CrawlResult struct {
	URL                string   // 需要被抓取的原始链接地址
	Number             int      // 当前子协程的编号
	Err                error    // 抓取过程中出现的错误
	Html               string   // 链接地址对应的抓取内容
	ImgSavePathSuccess []string // 图片存储的硬盘路径地址
	WriteContent       string   // 需要被写入的文字内容
}

type CrawlingRequest

type CrawlingRequest struct {
	ImgSavePath    string   `json:"img_save_path"`   // 图片保存路径
	ImgUrls        []string `json:"img_urls"`        // 图片链接地址
	TimeoutSeconds int64    `json:"timeout_seconds"` // 下载超时时间
}

type CrawlingResponse

type CrawlingResponse struct {
	TextContentSavePath string `json:"text_content_save_path"` // 文字内容保存路径
	CrawlUrlCount       int64  `json:"crawl_url_count"`        // 抓取的链接地址数量
	CrawlImgCount       int64  `json:"crawl_img_count"`        // 抓取成功并保存成功的图片数量
	ErrContent          string `json:"err_content"`            // 错误信息
	CastTimeStr         string `json:"cast_time_str"`          // 耗时字符串
}

type CropResult

type CropResult struct {
	ImgPath string // 图片存储的硬盘路径地址
	Err     error  // 裁剪过程中出现的错误
}

type CroppingRequest

type CroppingRequest struct {
	ImgSavePath string `json:"img_save_path"` // 图片保存路径
	BottomPixel int    `json:"bottom_pixel"`  // 裁剪图片底部像素
}

type CroppingResponse

type CroppingResponse struct {
	CropImgPath  string `json:"crop_img_path"`  // 裁剪图片保存路径
	CropImgCount int64  `json:"crop_img_count"` // 裁剪成功的图片数量
	ErrContent   string `json:"err_content"`    // 错误信息
	CastTimeStr  string `json:"cast_time_str"`  // 耗时字符串
}

type GetPreferenceInfoResponse

type GetPreferenceInfoResponse struct {
	SaveImgPath        string `json:"save_img_path"`         // 图片保存路径
	DownloadTimeout    int    `json:"download_timeout"`      // 下载超时时间
	CropImgBottomPixel int    `json:"crop_img_bottom_pixel"` // 裁剪图片底部像素
	UpdatedTime        int64  `json:"updated_time"`          // 更新时间
}

type SelectFileResponse

type SelectFileResponse struct {
	FilePath  string   `json:"file_path"`  // 选择的文件路径
	ValidURLs []string `json:"valid_urls"` // 从文件中读取的有效URL列表
}

type SetPreferenceInfoRequest

type SetPreferenceInfoRequest struct {
	SaveImgPath        string `json:"save_img_path"`         // 图片保存路径
	DownloadTimeout    int    `json:"download_timeout"`      // 下载超时时间
	CropImgBottomPixel int    `json:"crop_img_bottom_pixel"` // 裁剪图片底部像素
}

type SetPreferenceInfoResponse

type SetPreferenceInfoResponse struct {
	UpdatedTime int64 `json:"updated_time"` // 更新时间
}

type ShufflingRequest

type ShufflingRequest struct {
	ImgSavePath string `json:"img_save_path"` // 图片保存路径
	MaxNumImage int    `json:"max_num_image"` // 当一个目录中的图片超过多少张时,开始拆分目录
}

type ShufflingResponse

type ShufflingResponse struct {
	ShuffleImgPath string `json:"shuffle_img_path"` // 打乱的图片路径
	CastTimeStr    string `json:"cast_time_str"`    // 耗时字符串
}

type SystemConfig

type SystemConfig struct {
	ID        int64  `db:"id"`         // 自增主键
	Key       string `db:"key"`        // 配置项的key
	Content   string `db:"content"`    // 配置项的内容
	Version   int    `db:"version"`    // 版本号
	CreatedAt int64  `db:"created_at"` // 创建时间
	UpdatedAt int64  `db:"updated_at"` // 更新时间
}

Jump to

Keyboard shortcuts

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