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