BaseParams.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package com.smppw.analysis.domain.dto.style;
  2. import com.smppw.common.pojo.enums.Frequency;
  3. import com.smppw.common.pojo.enums.RaiseType;
  4. import com.smppw.constants.Consts;
  5. import lombok.Getter;
  6. import lombok.Setter;
  7. import java.io.Serializable;
  8. /**
  9. * @author wangzaijun
  10. * @date 2023/3/13 20:28
  11. * @description 风格评测 公共参数
  12. */
  13. @Setter
  14. @Getter
  15. public abstract class BaseParams implements Serializable {
  16. private static final long serialVersionUID = Consts.DEFAULT_SERIAL_VERSION_UID;
  17. /**
  18. * 标的id,包括基金、机构行业经理
  19. */
  20. private String secId;
  21. /**
  22. * 开始日期
  23. */
  24. private String startDate;
  25. /**
  26. * 结束日期
  27. */
  28. private String endDate;
  29. /**
  30. * 滚动期数,默认24期
  31. */
  32. private String winlen;
  33. /**
  34. * 滚动步长,默认1
  35. */
  36. private String step;
  37. /**
  38. * 净值频率
  39. */
  40. private Frequency frequency;
  41. private RaiseType raiseType;
  42. private String strategy;
  43. public Frequency getFrequency() {
  44. return frequency == Frequency.Default ? Frequency.Daily : this.frequency;
  45. }
  46. }