Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertPhotoPb ¶
func ConvertPhotoPb(in *types.PhotoNewReq) (out *photorpc.PhotoNewReq)
func ConvertPhotoTypes ¶
func ConvertPhotoTypes(in *photorpc.PhotoDetails) (out *types.PhotoBackDTO)
Types ¶
type AddPhotoLogic ¶
func NewAddPhotoLogic ¶
func NewAddPhotoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddPhotoLogic
创建照片
func (*AddPhotoLogic) AddPhoto ¶
func (l *AddPhotoLogic) AddPhoto(req *types.PhotoNewReq) (resp *types.PhotoBackDTO, err error)
type BatchDeletePhotoLogic ¶
func NewBatchDeletePhotoLogic ¶
func NewBatchDeletePhotoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BatchDeletePhotoLogic
批量删除照片
func (*BatchDeletePhotoLogic) BatchDeletePhoto ¶
type DeletePhotoLogic ¶
func NewDeletePhotoLogic ¶
func NewDeletePhotoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeletePhotoLogic
删除照片
func (*DeletePhotoLogic) DeletePhoto ¶
type FindPhotoListLogic ¶
func NewFindPhotoListLogic ¶
func NewFindPhotoListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindPhotoListLogic
分页获取照片列表
func (*FindPhotoListLogic) FindPhotoList ¶
func (l *FindPhotoListLogic) FindPhotoList(req *types.PhotoQuery) (resp *types.PageResp, err error)
type UpdatePhotoLogic ¶
func NewUpdatePhotoLogic ¶
func NewUpdatePhotoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdatePhotoLogic
更新照片
func (*UpdatePhotoLogic) UpdatePhoto ¶
func (l *UpdatePhotoLogic) UpdatePhoto(req *types.PhotoNewReq) (resp *types.PhotoBackDTO, err error)
Click to show internal directories.
Click to hide internal directories.