makeentrelationlogic.go 755 B

12345678910111213141516171819202122232425262728
  1. package logic
  2. import (
  3. "context"
  4. "bp.jydev.jianyu360.cn/BaseService/biService/rpc/internal/svc"
  5. "bp.jydev.jianyu360.cn/BaseService/biService/rpc/pb"
  6. "bp.jydev.jianyu360.cn/BaseService/biService/service"
  7. "github.com/zeromicro/go-zero/core/logx"
  8. )
  9. type MakeEntRelationLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewMakeEntRelationLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MakeEntRelationLogic {
  15. return &MakeEntRelationLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. func (l *MakeEntRelationLogic) MakeEntRelation(in *pb.MakeEntRelationReq) (*pb.MakeEntRelationResp, error) {
  22. return &pb.MakeEntRelationResp{Status: service.MakeEntRelation(in.EntName)}, nil
  23. }