|
|
@ -10,12 +10,14 @@ import (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type ShortenLogic struct {
|
|
|
|
type ShortenLogic struct {
|
|
|
|
|
|
|
|
svcCtx *svc.ServiceContext
|
|
|
|
ctx context.Context
|
|
|
|
ctx context.Context
|
|
|
|
logx.Logger
|
|
|
|
logx.Logger
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func NewShortenLogic(ctx context.Context, svcCtx *svc.ServiceContext) ShortenLogic {
|
|
|
|
func NewShortenLogic(ctx context.Context, svcCtx *svc.ServiceContext) ShortenLogic {
|
|
|
|
return ShortenLogic{
|
|
|
|
return ShortenLogic{
|
|
|
|
|
|
|
|
svcCtx: svcCtx,
|
|
|
|
ctx: ctx,
|
|
|
|
ctx: ctx,
|
|
|
|
Logger: logx.WithContext(ctx),
|
|
|
|
Logger: logx.WithContext(ctx),
|
|
|
|
}
|
|
|
|
}
|
|
|
|