logic

package
v0.0.0-...-ff0c412 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, svcCtx *svc.ServiceContext, l logx.Logger, postModel *model.Post) (*post.Post, error)

func GetPostUserInfos

func GetPostUserInfos(ctx context.Context, svcCtx *svc.ServiceContext, l logx.Logger, postUserInfosModel *model.PostUserInfo) (*post.PostUserInfos, error)

Types

type DeleteLogic

type DeleteLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteLogic

func NewDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteLogic

func (*DeleteLogic) Delete

func (l *DeleteLogic) Delete(in *post.DeleteReq) (*post.EmptyResp, error)

type GetByPathLogic

type GetByPathLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetByPathLogic

func NewGetByPathLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetByPathLogic

func (*GetByPathLogic) GetByPath

func (l *GetByPathLogic) GetByPath(in *post.GetByPathReq) (*post.Post, error)

type GetLogic

type GetLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetLogic

func NewGetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetLogic

func (*GetLogic) Get

func (l *GetLogic) Get(in *post.GetReq) (*post.Post, error)

type GetPostUserInfosLogic

type GetPostUserInfosLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetPostUserInfosLogic

func NewGetPostUserInfosLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetPostUserInfosLogic

func (*GetPostUserInfosLogic) GetPostUserInfos

type InsertLogic

type InsertLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewInsertLogic

func NewInsertLogic(ctx context.Context, svcCtx *svc.ServiceContext) *InsertLogic

func (*InsertLogic) Insert

func (l *InsertLogic) Insert(in *post.InsertReq) (*post.Post, error)

type ListLogic

type ListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListLogic

func NewListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListLogic

func (*ListLogic) List

func (l *ListLogic) List(in *post.ListReq) (*post.ListResp, error)

type ListPostUserInfosLogic

type ListPostUserInfosLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListPostUserInfosLogic

func NewListPostUserInfosLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListPostUserInfosLogic

func (*ListPostUserInfosLogic) ListPostUserInfos

type PatchLogic

type PatchLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPatchLogic

func NewPatchLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PatchLogic

func (*PatchLogic) Patch

func (l *PatchLogic) Patch(in *post.PatchReq) (*post.Post, error)

type PublishLogic

type PublishLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPublishLogic

func NewPublishLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PublishLogic

func (*PublishLogic) Publish

func (l *PublishLogic) Publish(in *post.PublishReq) (*post.Post, error)

type RevertLogic

type RevertLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRevertLogic

func NewRevertLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RevertLogic

func (*RevertLogic) Revert

func (l *RevertLogic) Revert(in *post.RevertReq) (*post.Post, error)

type SearchLogic

type SearchLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSearchLogic

func NewSearchLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SearchLogic

func (*SearchLogic) Search

func (l *SearchLogic) Search(in *post.SearchReq) (*post.SearchResp, error)

type UpdateLogic

type UpdateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateLogic

func NewUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateLogic

func (*UpdateLogic) Update

func (l *UpdateLogic) Update(in *post.UpdateReq) (*post.Post, error)

Jump to

Keyboard shortcuts

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