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