Suggestion.ts 603 B

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