initial commit
This commit is contained in:
31
gallery/internal/logic/generateurllogic.go
Normal file
31
gallery/internal/logic/generateurllogic.go
Normal file
@ -0,0 +1,31 @@
|
||||
package logic
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"godemo/gallery/gallery"
|
||||
"godemo/gallery/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
type GenerateUrlLogic struct {
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
logx.Logger
|
||||
}
|
||||
|
||||
func NewGenerateUrlLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GenerateUrlLogic {
|
||||
return &GenerateUrlLogic{
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
Logger: logx.WithContext(ctx),
|
||||
}
|
||||
}
|
||||
|
||||
// 访问控制
|
||||
func (l *GenerateUrlLogic) GenerateUrl(in *gallery.GenerateUrlRequest) (*gallery.GenerateUrlResponse, error) {
|
||||
// todo: add your logic here and delete this line
|
||||
|
||||
return &gallery.GenerateUrlResponse{}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user