You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
662 B
30 lines
662 B
package logic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"backend/usercenter/rpc/internal/svc"
|
|
"backend/usercenter/rpc/pb/usercenter"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type GetProfileLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewGetProfileLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetProfileLogic {
|
|
return &GetProfileLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
func (l *GetProfileLogic) GetProfile(in *usercenter.GetProfileRequest) (*usercenter.GetProfileResponse, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &usercenter.GetProfileResponse{}, nil
|
|
}
|
|
|