Documentation ¶
Index ¶
- type Books
- func (t *Books) AddData(data ...interface{}) (result sql.Result, err error)
- func (t *Books) Count() int
- func (t *Books) DeleteData(where interface{}) (result sql.Result, err error)
- func (t *Books) GetData(where interface{}) (result gdb.Result, err error)
- func (t *Books) GetDataExt(params Params) (result gdb.Result, err error)
- func (t *Books) GetDataOne(where interface{}) (record gdb.Record, err error)
- func (t *Books) Rows(flag int) *base
- func (t *Books) UpdateData(data, where interface{}) (result sql.Result, err error)
- type Chapters
- func (t *Chapters) AddData(data ...interface{}) (result sql.Result, err error)
- func (t *Chapters) Count() int
- func (t *Chapters) DeleteData(where interface{}) (result sql.Result, err error)
- func (t *Chapters) GetData(where interface{}, sort string) (result gdb.Result, err error)
- func (t *Chapters) GetDataExt(params Params) (result gdb.Result, err error)
- func (t *Chapters) GetDataOne(where interface{}) (record gdb.Record, err error)
- func (t *Chapters) Rows(flag int) *base
- func (t *Chapters) UpdateData(data, where interface{}) (result sql.Result, err error)
- type Images
- func (t *Images) AddData(data ...interface{}) (result sql.Result, err error)
- func (t *Images) AddDataBatch(data []TbImages, batch int) (result sql.Result, err error)
- func (t *Images) Count() int
- func (t *Images) DeleteData(where interface{}) (result sql.Result, err error)
- func (t *Images) GetData(where interface{}) (result gdb.Result, err error)
- func (t *Images) GetDataExt(params Params) (result gdb.Result, err error)
- func (t *Images) GetDataOne(where interface{}) (record gdb.Record, err error)
- func (t *Images) Rows(flag int) *base
- func (t *Images) UpdateData(data, where interface{}) (result sql.Result, err error)
- type Params
- type TbBooks
- type TbChapters
- type TbImages
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Books ¶
type Books struct {
// contains filtered or unexported fields
}
Books 漫画
func (*Books) DeleteData ¶
DeleteData 删除数据
func (*Books) GetDataExt ¶
GetDataExt 获取一组数据 (扩展型)
func (*Books) GetDataOne ¶
GetDataOne 获取一条信息
type Chapters ¶
type Chapters struct {
// contains filtered or unexported fields
}
Chapters 漫画章节
func (*Chapters) DeleteData ¶
DeleteData 删除数据
func (*Chapters) GetDataExt ¶
GetDataExt 获取一组数据 (扩展型)
func (*Chapters) GetDataOne ¶
GetDataOne 获取一条信息
type Images ¶
type Images struct {
// contains filtered or unexported fields
}
Images 图片
func (*Images) AddDataBatch ¶
AddDataBatch 批量添加一组图片
func (*Images) DeleteData ¶
DeleteData 删除数据
func (*Images) GetDataExt ¶
GetDataExt 获取一组数据 (扩展型)
func (*Images) GetDataOne ¶
GetDataOne 获取一条信息
type TbBooks ¶
type TbBooks struct { ID int64 `json:"id" gconv:"id"` // ID Name string `json:"name" gconv:"name"` // 漫画名 ImageURL string `json:"image_url" gconv:"image_url"` // 漫画图标地址 Status int `json:"status" gconv:"status"` // 状态 (0正在更新,1暂停更新,2完结) OriginURL string `json:"origin_url" gconv:"origin_url"` // 漫画采集地址 OriginWeb string `json:"origin_web" gconv:"origin_web"` // 源站名 OriginWebType string `json:"origin_web_type" gconv:"origin_web_type"` // 采集源类型 (pc, mobile, api) OriginFlag string `json:"origin_flag" gconv:"origin_flag"` // 源站标识 OriginImageURL string `json:"origin_image_url" gconv:"origin_image_url"` // 源站漫画图标地址 OriginPathURL string `json:"origin_path_url" gconv:"origin_path_url"` // 上次采集图片实际路径 OriginBookID int `json:"origin_book_id" gconv:"origin_book_id"` // 本书ID UpdatedAt int64 `json:"updated_at" gconv:"updated_at"` // 更新时间 CreatedAt int64 `json:"created_at" gconv:"created_at"` // 创建时间 }
TbBooks 漫画表
type TbChapters ¶
type TbChapters struct { ID int64 `json:"id" gconv:"id"` // ID BookID int64 `json:"book_id" gconv:"book_id"` // 漫画 ID EpisodeID int `json:"episode_id" gconv:"episode_id"` // 话序 ID Title string `json:"title" gconv:"title"` // 章节标题 OrderID int `json:"order_id" gconv:"order_id"` // 章节排序 OriginID int `json:"origin_id" gconv:"origin_id"` // 源章节ID Status int `json:"status" gconv:"status"` // 状态 (0.采集成功, 1.采集失败, 2. 停止采集) OriginURL string `json:"origin_url" gconv:"origin_url"` // 采集地址 CreatedAt int64 `json:"created_at" gconv:"created_at"` // 创建时间 UpdatedAt int64 `json:"updated_at" gconv:"updated_at"` // 最后更新时间 }
TbChapters 章节表
type TbImages ¶
type TbImages struct { ID int64 `json:"id" gconv:"id"` // ID BookID int64 `json:"book_id" gconv:"book_id"` // 漫画 ID ChapterID int64 `json:"chapter_id" gconv:"chapter_id"` // 章节 ID EpisodeID int `json:"episode_id" gconv:"episode_id"` // 话序 ID ImageURL string `json:"image_url" gconv:"image_url"` // 图片地址 OriginURL string `json:"origin_url" gconv:"origin_url"` // 漫画图片采集地址 Size int64 `json:"size" gconv:"size"` // 文件大小 OrderID int `json:"order_id" gconv:"order_id"` // 图片排序 IsRemote int `json:"is_remote" gconv:"is_remote"` // 是否远程图片 CreatedAt int64 `json:"created_at" gconv:"created_at"` // 创建时间 }
TbImages 图片表
Click to show internal directories.
Click to hide internal directories.