Suggestion.ts 596 B

1234567891011121314151617181920212223242526272829
  1. import { IUserApiResponse } from "./Auth";
  2. import { IChannelApiData } from "./Channel";
  3. export interface ISuggestionData {
  4. id: string;
  5. book: number;
  6. paragraph: number;
  7. word_start: number;
  8. word_end: number;
  9. channel: IChannelApiData;
  10. content: string;
  11. html: string;
  12. editor: IUserApiResponse;
  13. created_at: string;
  14. updated_at: string;
  15. }
  16. export interface ISuggestionResponse {
  17. ok: boolean;
  18. message: string;
  19. data: ISuggestionData;
  20. }
  21. export interface ISuggestionListResponse {
  22. ok: boolean;
  23. message: string;
  24. data: {
  25. rows: ISuggestionData[];
  26. count: number;
  27. };
  28. }