feat: user base

This commit is contained in:
zzw
2026-08-13 15:43:03 +08:00
parent fd34f43ed5
commit d65eb9f55f
12 changed files with 1157 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
package logic
import (
"context"
"user/internal/svc"
"user/user"
"github.com/zeromicro/go-zero/core/logx"
)
type PingLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewPingLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PingLogic {
return &PingLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
func (l *PingLogic) Ping(in *user.Request) (*user.Response, error) {
// todo: add your logic here and delete this line
return &user.Response{}, nil
}