1 Star 0 Fork 0

BOBO/电商竞品分析核心库

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
article.go 2.17 KB
一键复制 编辑 原始数据 按行查看 历史
zhouyp 提交于 2024-07-10 14:55 . 初始化服务
// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"context"
"gitee.com/bobo-rs/ecomp-analyzer-services/framework/logic/base"
"gitee.com/bobo-rs/ecomp-analyzer-services/framework/model"
"gitee.com/bobo-rs/ecomp-analyzer-services/framework/model/entity"
)
type (
IArticle interface {
// SaveArticle 保存文章数据
SaveArticle(ctx context.Context, item entity.Article) error
// GetArticleList 获取文章列表
GetArticleList(ctx context.Context, in model.ArticleGetListInput) (out *model.ArticleGetListOutput, err error)
// GetArticleDetail 获取文章详情
GetArticleDetail(ctx context.Context, id uint) (detail *model.ArticleDetailItem, err error)
// SaveCategory 保存文章分类数据
SaveCategory(ctx context.Context, item entity.ArticleCategory) error
// GetCategoryTreeList 获取文章分类树形列表
GetCategoryTreeList(ctx context.Context, where interface{}) ([]map[string]interface{}, error)
// GetCategoryAssocTreeList 获取文章分类关联列表
GetCategoryAssocTreeList(ctx context.Context) ([]map[string]interface{}, error)
// ArticleModel 文章Model
ArticleModel() *base.TblBaseService
// CategoryModel 文章分类Model
CategoryModel() *base.TblBaseService
// ProcessDetailById 通过文章ID获取文章详情
ProcessDetailById(ctx context.Context, id uint, pointer interface{}) error
// CheckExistsById 通过文章ID检测文章是否存在
CheckExistsById(ctx context.Context, id uint) bool
// ArticleWhere 处理并获取文章条件
ArticleWhere(in model.ArticleWhereItem) map[string]interface{}
// FormatArticle 格式化文章详情状态
FormatArticle(detail *model.ArticleDetailFmtItem)
}
)
var (
localArticle IArticle
)
func Article() IArticle {
if localArticle == nil {
panic("implement not found for interface IArticle, forgot register?")
}
return localArticle
}
func RegisterArticle(i IArticle) {
localArticle = i
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/bobo-rs/ecomp-analyzer-services.git
git@gitee.com:bobo-rs/ecomp-analyzer-services.git
bobo-rs
ecomp-analyzer-services
电商竞品分析核心库
v1.0.0

搜索帮助