dataInterface.ts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. //自助建站接口契约
  2. //首页 start ---------------------------------------->
  3. export interface IWebSiteBase{
  4. website_foot:IWebSiteFoot;
  5. website_head:IWebSiteHead;
  6. }
  7. export interface IWebSiteHead{
  8. ad_key: string;
  9. api_url: string|null;
  10. description: string;
  11. id: number;
  12. keywords: string;
  13. login_url: string|null;
  14. logo: string;
  15. suffix: string;
  16. title: string;
  17. weblog_url: string|null;
  18. website_name: string;
  19. website_url: string[];
  20. }
  21. export interface IWebSiteFoot{
  22. foot_cate:any[];
  23. foot_info:IWebSiteFootInfo;
  24. link_foot:any[];
  25. link_img:any[];
  26. link_text:any[];
  27. }
  28. export interface IWebSiteFootInfo{
  29. action_id:number;
  30. communications:string;
  31. communications_img:string;
  32. company_address:string;
  33. company_logo:string;
  34. company_name:string;
  35. company_url:string;
  36. contact_number:string;
  37. copyright_information:string;
  38. created_at:string;
  39. customer_service:string;
  40. customer_service_qq:string;
  41. email:string;
  42. icp_number:string;
  43. icp_number_img:string;
  44. icp_number_url:string;
  45. id:number;
  46. online_service:string;
  47. organizer:string;
  48. page_type:number[];
  49. project_logo:string;
  50. project_name:string;
  51. project_url:string;
  52. record_number:string;
  53. record_number_url:string;
  54. service_qq_img:string;
  55. statement:string;
  56. statistics:string;
  57. statistics_onetext:string;
  58. statistics_onetype:string;
  59. statistics_oneurl:string;
  60. statistics_twotext:string;
  61. statistics_twotype:string;
  62. statistics_twourl:string;
  63. status:number;
  64. template_id:number;
  65. updated_at:string;
  66. user_id:number;
  67. website_id:number;
  68. }
  69. //首页 end ---------------------------------------->
  70. //列表页 start ---------------------------------------->
  71. //列表数据是数组 所以是否为必填无所谓,默认就是空
  72. export interface IListData {
  73. id: number,
  74. title: string,
  75. imgurl: string,
  76. author: string,
  77. updated_at: string,
  78. introduce: string,
  79. islink: number,
  80. linkurl: string,
  81. copyfrom: string,
  82. cat_arr_id: string|null,
  83. catid: number,
  84. category_name: string,
  85. pinyin: string
  86. }
  87. //列表页 end ---------------------------------------->
  88. //详情页 start ---------------------------------------->
  89. //文章正文
  90. export interface IArticleDetail {
  91. id?:number;
  92. catid?:number;
  93. title:string;//文章标题-必备字段
  94. introduce:string;//文章简介-必备字段
  95. tag?:string;
  96. keyword:string;//关键字-必备字段
  97. author:string;//作者-必备字段
  98. copyfrom:string;//来源-必备字段
  99. fromurl?:string;
  100. hits?:number;
  101. ip?:string;
  102. status?:number;
  103. islink?:number;
  104. linkurl?:string;
  105. imgurl?:string;
  106. admin_user_id?:number;
  107. cat_arr_id?:string;
  108. created_at?:string;
  109. updated_at:string;//更新时间-必备字段
  110. is_original?:number;
  111. survey_id?:string;
  112. survey_name?:string;
  113. is_survey?:number;
  114. survey_type?:number;
  115. web_site_id?:string;
  116. ignore_ids?: string|null;
  117. reason?: string|null;
  118. department_arr_id?: string;
  119. department_id?: number;
  120. city_arr_id?: string;
  121. city_id?: number;
  122. level?: string;
  123. commend_id?: string;
  124. level_text?: string;
  125. content: string;//文章正文-必备字段
  126. article_id?: number;
  127. website_url?: string|null;
  128. email?: string|null;
  129. contacts?: string|null;
  130. contacts_mobile?:string|null;
  131. contacts_address?:string|null;
  132. zip_code?: string|null;
  133. enterprise_name?: string|null;
  134. category_id?: number;
  135. cat_name?: string;
  136. website_name: string;//网站名称-必备字段
  137. suffix: string;//关键字-必备字段
  138. commendArticle?:any[];//推荐文章,暂时未确定
  139. }
  140. //投票结果
  141. export interface ISurveyResult {
  142. choice: number[];
  143. data: ISurveyResultData[];
  144. }
  145. export interface ISurveyResultData {
  146. art_id: number;
  147. choice_name: string;
  148. created_at: string;
  149. id: number;
  150. is_other: number;
  151. other_id: number;
  152. results: number;
  153. sur_id: string;
  154. survey_name: string;
  155. updated_at: string;
  156. user_id: number|null;
  157. website_id: number;
  158. status?:number;
  159. }
  160. //详情页 end ---------------------------------------->
  161. //单页-详情/列表 start ---------------------------------------->
  162. export interface INewsDetail {
  163. id?:number;
  164. list_title?:string;
  165. con_title:string;
  166. content:string;
  167. fcat_id?:number;
  168. created_at?:string;
  169. updated_at?:string;
  170. type_id:number;
  171. }
  172. //左侧悬浮菜单
  173. export interface IBottomMenu {
  174. id:number;
  175. name:string;
  176. website_id:number;
  177. type:number;
  178. created_at:string;
  179. updated_at:string;
  180. name_pinyin:string;
  181. pid:number;
  182. }
  183. //单页-详情 end ---------------------------------------->