interface.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. // 这里放项目里面的类型
  2. export enum PayStatusEnum {
  3. error = 'error',
  4. WAIT_BUYER_PAY = 'WAIT_BUYER_PAY',
  5. TRADE_SUCCESS = 'TRADE_SUCCESS',
  6. }
  7. export type IList<T> = {
  8. nowPage?: string;
  9. pageSize?: string;
  10. orderBy?: string;
  11. orderName?: string;
  12. keyWord?: string;
  13. rangTimeType?: 'created_at' | 'updated_at' | 'deleted_at';
  14. rangTimeStart?: string;
  15. rangTimeEnd?: string;
  16. } & T;
  17. export interface IPaging<T> {
  18. nowPage: number;
  19. pageSize: number;
  20. hasMore: boolean;
  21. total: number;
  22. rows: T[];
  23. }
  24. export interface IOrder {
  25. id?: number;
  26. billd_live_user_id?: number;
  27. user: IUser;
  28. out_trade_no?: string;
  29. total_amount?: string;
  30. subject?: string;
  31. product_code?: string;
  32. qr_code?: string;
  33. buyer_logon_id?: string;
  34. buyer_pay_amount?: string;
  35. buyer_user_id?: string;
  36. invoice_amount?: string;
  37. point_amount?: string;
  38. receipt_amount?: string;
  39. send_pay_date?: string;
  40. trade_no?: string;
  41. trade_status?: string;
  42. created_at?: string;
  43. updated_at?: string;
  44. deleted_at?: string;
  45. }
  46. export enum liveTypeEnum {
  47. webrtcPull = 'webrtcPull',
  48. srsWebrtcPull = 'srsWebrtcPull',
  49. srsFlvPull = 'srsFlvPull',
  50. srsPush = 'srsPush',
  51. webrtcPush = 'webrtcPush',
  52. }
  53. export interface BilldHtmlWebpackPluginLog {
  54. pkgName: string;
  55. pkgVersion: string;
  56. pkgRepository: string;
  57. commitSubject: string;
  58. commitBranch: string;
  59. committerDate: string;
  60. commitHash: string;
  61. committerName: string;
  62. committerEmail: string;
  63. lastBuildDate: string;
  64. }
  65. export enum PlatformEnum {
  66. qqLogin = 'qq_login',
  67. }
  68. export interface IAuth {
  69. id?: number;
  70. auth_name?: string;
  71. auth_value?: string;
  72. type?: number;
  73. priority?: number | string;
  74. p_id?: number | null;
  75. created_at?: string;
  76. updated_at?: string;
  77. deleted_at?: null;
  78. c_auths?: number[];
  79. }
  80. export interface IRole {
  81. id?: number;
  82. role_name?: string;
  83. role_value?: string;
  84. type?: number;
  85. priority?: number | string;
  86. p_id?: number | null;
  87. created_at?: string;
  88. updated_at?: string;
  89. deleted_at?: null;
  90. role_auths?: number[];
  91. c_roles?: number[];
  92. }
  93. export interface IUser {
  94. id?: number;
  95. username?: string;
  96. password?: string;
  97. status?: number;
  98. avatar?: string;
  99. desc?: string;
  100. token?: string;
  101. user_roles?: number[];
  102. created_at?: string;
  103. updated_at?: string;
  104. deleted_at?: string;
  105. qq_users?: IQqUser[];
  106. }
  107. export interface IQqUser {
  108. id?: number;
  109. client_id?: number;
  110. openid?: string;
  111. unionid?: string;
  112. username?: string;
  113. figureurl?: string;
  114. figureurl_1?: string;
  115. figureurl_2?: string;
  116. figureurl_qq_1?: string;
  117. figureurl_qq_2?: string;
  118. constellation?: string;
  119. gender?: string;
  120. city?: string;
  121. province?: string;
  122. year?: string;
  123. created_at?: string;
  124. updated_at?: string;
  125. deleted_at?: any;
  126. }
  127. export interface ILive {
  128. id?: number;
  129. system?: number;
  130. socketId?: string;
  131. roomId?: string;
  132. roomName?: string;
  133. track_video?: boolean;
  134. track_audio?: boolean;
  135. coverImg?: string;
  136. streamurl?: string;
  137. flvurl?: string;
  138. created_at?: string;
  139. updated_at?: string;
  140. deleted_at?: string;
  141. }
  142. export enum MediaTypeEnum {
  143. camera,
  144. screen,
  145. }
  146. export enum DanmuMsgTypeEnum {
  147. danmu,
  148. otherJoin,
  149. userLeaved,
  150. }
  151. export interface ILiveUser {
  152. socketId: string;
  153. userInfo?: IUser;
  154. }
  155. export interface IDanmu {
  156. msgType: DanmuMsgTypeEnum;
  157. msg: string;
  158. socketId: string;
  159. userInfo?: IUser;
  160. }
  161. export interface IAdminIn {
  162. roomId: string;
  163. socketId: string;
  164. isAdmin: boolean;
  165. data: any;
  166. }
  167. export interface IOffer {
  168. socketId: string;
  169. roomId: string;
  170. data: {
  171. sdp: any;
  172. target: string;
  173. sender: string;
  174. receiver: string;
  175. };
  176. isAdmin: boolean;
  177. }
  178. export interface ICandidate {
  179. socketId: string;
  180. roomId: string;
  181. data: {
  182. candidate: string;
  183. sdpMid: string | null;
  184. sdpMLineIndex: number | null;
  185. receiver: string;
  186. sender: string;
  187. };
  188. }
  189. export interface IJoin {
  190. roomId: string;
  191. socketId: string;
  192. data: {
  193. roomName: string;
  194. coverImg: string;
  195. userInfo?: IUser;
  196. srs?: { streamurl: string; flvurl: string };
  197. track: { audio: boolean; video: boolean };
  198. liveId?: number;
  199. };
  200. isAdmin?: boolean;
  201. }