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