derivedellogic.go 701 B

12345678910111213141516171819202122232425262728293031
  1. package logic
  2. import (
  3. "context"
  4. "jyBXSubscribe/rpc/model"
  5. "jyBXSubscribe/rpc/internal/svc"
  6. "jyBXSubscribe/rpc/type/bxsubscribe"
  7. "github.com/zeromicro/go-zero/core/logx"
  8. )
  9. type DeriveDelLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewDeriveDelLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeriveDelLogic {
  15. return &DeriveDelLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. // 删除自动数据导出筛选条件
  22. func (l *DeriveDelLogic) DeriveDel(in *bxsubscribe.DeriveReq) (*bxsubscribe.StatusResp, error) {
  23. // todo: add your logic here and delete this line
  24. return model.ScreeningDelete(in.InfoId), nil
  25. }