You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
598 B
Go
31 lines
598 B
Go
package logic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"dcg/app/user_center/internal/svc"
|
|
"dcg/app/user_center/pb"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type GiveTitleLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewGiveTitleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GiveTitleLogic {
|
|
return &GiveTitleLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
func (l *GiveTitleLogic) GiveTitle(in *pb.GiveTitleReq) (*pb.BuyTitleResp, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &pb.BuyTitleResp{}, nil
|
|
}
|