123456789101112131415161718192021222324252627282930313233 |
- package logic
- import (
- "context"
- "fmt"
- "points_service/rpc/integral"
- "points_service/rpc/internal/svc"
- "github.com/tal-tech/go-zero/core/logx"
- )
- type IntegralBalanceCheckLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewIntegralBalanceCheckLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IntegralBalanceCheckLogic {
- return &IntegralBalanceCheckLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // 积分余额查询
- func (l *IntegralBalanceCheckLogic) IntegralBalanceCheck(in *integral.AddReq) (*integral.AddResp, error) {
- // todo: add your logic here and delete this line
- var bc int64
- flag,bc := integralService.IntegralBalanceCheckService("ABC","10000")
- fmt.Println(flag,bc)
- return &integral.AddResp{}, nil
- }
|