31 lines
658 B
Go
31 lines
658 B
Go
package logic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"godemo/gallery/gallery"
|
|
"godemo/gallery/internal/svc"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type GetImageDetailLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewGetImageDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetImageDetailLogic {
|
|
return &GetImageDetailLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
func (l *GetImageDetailLogic) GetImageDetail(in *gallery.ImageDetailRequest) (*gallery.ImageDetailResponse, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &gallery.ImageDetailResponse{}, nil
|
|
}
|