|
@@ -0,0 +1,37 @@
|
|
|
+package logic
|
|
|
+
|
|
|
+import (
|
|
|
+ "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/svc"
|
|
|
+ "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/types"
|
|
|
+ "bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice"
|
|
|
+ "context"
|
|
|
+
|
|
|
+ "github.com/zeromicro/go-zero/core/logx"
|
|
|
+)
|
|
|
+
|
|
|
+type UpdateCompanyNameReqLogic struct {
|
|
|
+ logx.Logger
|
|
|
+ ctx context.Context
|
|
|
+ svcCtx *svc.ServiceContext
|
|
|
+}
|
|
|
+
|
|
|
+func NewUpdateCompanyNameReqLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateCompanyNameReqLogic {
|
|
|
+ return &UpdateCompanyNameReqLogic{
|
|
|
+ Logger: logx.WithContext(ctx),
|
|
|
+ ctx: ctx,
|
|
|
+ svcCtx: svcCtx,
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (l *UpdateCompanyNameReqLogic) UpdateCompanyNameReq(req *types.UpdateCompanyNameReq) (resp *types.BiResp, err error) {
|
|
|
+ // todo: add your logic here and delete this line
|
|
|
+ res, err := l.svcCtx.BiServiceRpc.UpdateCompanyName(l.ctx, &biservice.UpdateCompanyNameReq{
|
|
|
+ MainClueId: req.MainClueId,
|
|
|
+ NewCompanyName: req.NewCompanyName,
|
|
|
+ NewEntId: req.NewEntId,
|
|
|
+ OldCompanyName: req.OldCompanyName,
|
|
|
+ OldEntId: req.OldEntId,
|
|
|
+ })
|
|
|
+ return &types.BiResp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg}, err
|
|
|
+
|
|
|
+}
|