1234567891011121314151617181920212223242526272829303132333435363738 |
- package logic
- import (
- "context"
- "bp.jydev.jianyu360.cn/CRM/application/service"
- "bp.jydev.jianyu360.cn/CRM/application/api/internal/svc"
- "bp.jydev.jianyu360.cn/CRM/application/api/internal/types"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type EntinfoLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewEntinfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *EntinfoLogic {
- return &EntinfoLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *EntinfoLogic) Entinfo(req *types.EntInfoReq) (resp *types.Reply, err error) {
- // todo: add your logic here and delete this line
- resp = &types.Reply{}
- entService := &service.EntService{}
- data, err := entService.EntInfo(req.EntName)
- /*if err != nil {
- resp.Error_msg = "未查询到企业信息"
- }*/
- resp.Data = data
- return
- }
|