Command.cs 794 B

1234567891011121314151617181920212223
  1. using Application.Abstractions.Messaging;
  2. using SharedKernel.Results;
  3. namespace Application.Features.Api.Forum.StockBoard.CreatePost;
  4. /// <summary>예측 입력 (선택) — 방향/기간(5|20 영업일)/목표가(선택).</summary>
  5. public sealed record PredictionInput(
  6. byte Direction,
  7. short HorizonDays,
  8. decimal? TargetPrice
  9. );
  10. /// <summary>
  11. /// 종목 가상보드 글 작성 (d2 §③·§④ M2) — stockCode 파티션의 단일 물리 Board(Code="stock")에 등록.
  12. /// prediction 지정 시 최신 T+1 종가를 BasePrice 로 스냅샷하고 Pending 예측을 생성한다(채점은 M4).
  13. /// </summary>
  14. public sealed record Command(
  15. int MemberID,
  16. string StockCode,
  17. string Subject,
  18. string Content,
  19. PredictionInput? Prediction
  20. ) : ICommand<Result<int>>;