123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package logic
- import (
- "context"
- "bp.jydev.jianyu360.cn/BaseService/biService/entity"
- "bp.jydev.jianyu360.cn/BaseService/biService/service"
- "bp.jydev.jianyu360.cn/BaseService/biService/rpc/internal/svc"
- "bp.jydev.jianyu360.cn/BaseService/biService/rpc/pb"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type CallLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewCallLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CallLogic {
- return &CallLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- func (l *CallLogic) Call(in *pb.CallReq) (*pb.BiResp, error) {
- resp := &pb.BiResp{}
- hlyj := service.HlyjStruct{
- Account: entity.Hlyj.Account,
- TokenUrl: entity.Hlyj.TokenUrl,
- Appid: entity.Hlyj.Appid,
- Secret: entity.Hlyj.Secret,
- CallUrl: entity.Hlyj.CallUrl,
- Integratedid: entity.Hlyj.Integratedid,
- CallFlag: entity.Hlyj.CallFlag,
- }
- resp.Data = hlyj.Call(in.Phone, in.PositionId)
- return resp, nil
- }
|