add: anowflake email kafka, refa: redis connectg

This commit is contained in:
wwweww
2026-02-25 01:16:13 +08:00
parent fdbcde13b2
commit 300058ad01
67 changed files with 3596 additions and 139 deletions
@@ -0,0 +1,34 @@
// Code generated by goctl. DO NOT EDIT.
// goctl 1.9.2
// Source: snowflake.proto
package server
import (
"context"
"juwan-backend/app/snowflake/rpc/internal/logic"
"juwan-backend/app/snowflake/rpc/internal/svc"
"juwan-backend/app/snowflake/rpc/snowflake"
)
type SnowflakeServiceServer struct {
svcCtx *svc.ServiceContext
snowflake.UnimplementedSnowflakeServiceServer
}
func NewSnowflakeServiceServer(svcCtx *svc.ServiceContext) *SnowflakeServiceServer {
return &SnowflakeServiceServer{
svcCtx: svcCtx,
}
}
func (s *SnowflakeServiceServer) NextId(ctx context.Context, in *snowflake.NextIdReq) (*snowflake.NextIdResp, error) {
l := logic.NewNextIdLogic(ctx, s.svcCtx)
return l.NextId(in)
}
func (s *SnowflakeServiceServer) NextIds(ctx context.Context, in *snowflake.NextIdsReq) (*snowflake.NextIdsResp, error) {
l := logic.NewNextIdsLogic(ctx, s.svcCtx)
return l.NextIds(in)
}