package logic import ( "context" "godemo/gallery/gallery" "godemo/gallery/internal/svc" "github.com/zeromicro/go-zero/core/logx" ) type DeleteImageLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewDeleteImageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteImageLogic { return &DeleteImageLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } func (l *DeleteImageLogic) DeleteImage(in *gallery.DeleteImageRequest) (*gallery.DeleteImageResponse, error) { // todo: add your logic here and delete this line return &gallery.DeleteImageResponse{}, nil }