ww 5 months ago
commit c129f19a50
  1. 3
      .eslintignore
  2. 66
      .eslintrc copy.cjs
  3. 6
      .eslintrc.cjs
  4. 16
      .eslintrc_1.cjs
  5. 2
      .gitignore
  6. 36
      generated/core/ApiError.ts
  7. 31
      generated/core/ApiRequestOptions.ts
  8. 12
      generated/core/ApiResult.ts
  9. 221
      generated/core/CancelablePromise.ts
  10. 33
      generated/core/OpenAPI.ts
  11. 591
      generated/core/request.ts
  12. 134
      generated/index.ts
  13. 9
      generated/models/BaseResponse.ts
  14. 11
      generated/models/BaseResponse_CoursesDTO_.ts
  15. 11
      generated/models/BaseResponse_List_CourseObjectivesTreeVO_.ts
  16. 11
      generated/models/BaseResponse_List_CourseResources_.ts
  17. 11
      generated/models/BaseResponse_List_LearningRecords_.ts
  18. 11
      generated/models/BaseResponse_List_ObjectivesType_.ts
  19. 11
      generated/models/BaseResponse_List_TeacherInfVO_.ts
  20. 9
      generated/models/BaseResponse_Map_string_object_.ts
  21. 11
      generated/models/BaseResponse_ObjectiveContentKnowVO_.ts
  22. 11
      generated/models/BaseResponse_ObjectiveContents_.ts
  23. 11
      generated/models/BaseResponse_PageDTO_CoursesVO_.ts
  24. 11
      generated/models/BaseResponse_Page_.ts
  25. 11
      generated/models/BaseResponse_Page_CourseFavourDetailVO_.ts
  26. 11
      generated/models/BaseResponse_Page_CourseResources_.ts
  27. 9
      generated/models/BaseResponse_boolean_.ts
  28. 9
      generated/models/BaseResponse_long_.ts
  29. 9
      generated/models/BaseResponse_string_.ts
  30. 9
      generated/models/CommonResult.ts
  31. 11
      generated/models/CommonResult_UmsAdmin_.ts
  32. 9
      generated/models/CommonResult_string_.ts
  33. 7
      generated/models/CourseFavourAddRequest.ts
  34. 5
      generated/models/CourseFavourAllRequest.ts
  35. 33
      generated/models/CourseFavourDetailVO.ts
  36. 13
      generated/models/CourseFavourQueryRequest.ts
  37. 35
      generated/models/CourseObjectivesDTO.ts
  38. 85
      generated/models/CourseObjectivesTreeVO.ts
  39. 19
      generated/models/CourseResources.ts
  40. 7
      generated/models/CourseThumbAddRequest.ts
  41. 123
      generated/models/CoursesDTO.ts
  42. 83
      generated/models/CoursesVO.ts
  43. 9
      generated/models/KnowFavourAddRequest.ts
  44. 7
      generated/models/KnowThumbAddRequest.ts
  45. 33
      generated/models/LearningRecords.ts
  46. 15
      generated/models/ObjectiveContentKnowDTO.ts
  47. 31
      generated/models/ObjectiveContentKnowVO.ts
  48. 21
      generated/models/ObjectiveContents_.ts
  49. 19
      generated/models/ObjectivesType_.ts
  50. 7
      generated/models/OrderItem.ts
  51. 25
      generated/models/Page.ts
  52. 29
      generated/models/PageDTO_CoursesVO_.ts
  53. 27
      generated/models/Page_CourseFavourDetailVO_.ts
  54. 27
      generated/models/Page_CourseResources_.ts
  55. 7
      generated/models/ResourceFavourAddRequest.ts
  56. 15
      generated/models/ResourceFavourQueryRequest.ts
  57. 7
      generated/models/ResourceThumbAddRequest.ts
  58. 9
      generated/models/StudentCoursesDTO.ts
  59. 19
      generated/models/TeacherInfVO.ts
  60. 19
      generated/models/UmsAdmin.ts
  61. 13
      generated/models/UmsAdminParam.ts
  62. 41
      generated/models/UmsStudentAndTeacherDTO.ts
  63. 27
      generated/models/UpdateAdminPasswordParam.ts
  64. 184
      generated/services/CourseResourceControllerService.ts
  65. 82
      generated/services/FavourInformationControllerService.ts
  66. 186
      generated/services/LearningRecordsControllerService.ts
  67. 104
      generated/services/ResourceControllerService.ts
  68. 186
      generated/services/SeCourseFavourControllerService.ts
  69. 96
      generated/services/SeCourseThumbControllerService.ts
  70. 52
      generated/services/SeKnowFavourControllerService.ts
  71. 52
      generated/services/SeKnowThumbControllerService.ts
  72. 98
      generated/services/SeResourceFavourControllerService.ts
  73. 52
      generated/services/SeResourceThumbControllerService.ts
  74. 1012
      generated/services/Service.ts
  75. 520
      generated/services/UmsAdminControllerService.ts
  76. 531
      public/data.json
  77. 3486
      public/nodeList.json
  78. 44
      src/api/courseChaptersApi.ts
  79. 6
      src/api/record.js
  80. 4
      src/layout/index.vue
  81. 2
      src/layout/tabbar/setting/index.vue
  82. 6
      src/main.ts
  83. 2
      src/permission.ts
  84. 4
      src/router/index.ts
  85. 48
      src/store/modules/user.ts
  86. 127
      src/views/MyCourseStudy/ContainerKno.vue
  87. 8
      src/views/MyCourseStudy/courseCollections.vue
  88. 4
      src/views/course/spritetext.js
  89. 1052
      src/views/portal/LearningPathRecommendations.vue
  90. 2
      src/views/portal/components/KnowledgeGraph.vue
  91. 100
      src/views/portal/index.vue
  92. 1
      tsconfig.json

@ -1,2 +1,3 @@
dist
node_modules
node_modules
src/views/course/spritetext.js

@ -0,0 +1,66 @@
// @see https://eslint.bootcss.com/docs/rules/
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
jquery: true,
},
globals: {
VANTA: 'readonly', //VANTA 已经cdn引入 这里拒绝eslint报错 全局声明一下
ElMessage: 'readonly',
ElMessageBox: 'readonly',
ElLoading: 'readonly',
},
/* 指定如何解析语法 */
parser: 'vue-eslint-parser',
/** 优先级低于 parse 的语法解析配置 */
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
parser: '@typescript-eslint/parser',
jsxPragma: 'React',
ecmaFeatures: {
jsx: true,
},
},
/* 继承已有的规则 */
extends: [
'eslint:recommended',
'plugin:vue/vue3-essential',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
plugins: ['vue', '@typescript-eslint'],
/*
* "off" 或 0 ==> 关闭规则
* "warn" 或 1 ==> 打开的规则作为警告(不影响代码执行)
* "error" 或 2 ==> 规则作为一个错误(代码不能执行,界面报错)
*/
rules: {
// eslint(https://eslint.bootcss.com/docs/rules/)
'no-var': 'error', // 要求使用 let 或 const 而不是 var
'no-multiple-empty-lines': ['warn', { max: 1 }], // 不允许多个空行
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unexpected-multiline': 'error', // 禁止空余的多行
'no-useless-escape': 'off', // 禁止不必要的转义字符
// typeScript (https://typescript-eslint.io/rules)
'@typescript-eslint/no-unused-vars': 'error', // 禁止定义未使用的变量
'@typescript-eslint/prefer-ts-expect-error': 'off', // 禁止使用 @ts-ignore
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-explicit-any': 'off', // 禁止使用 any 类型
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-namespace': 'off', // 禁止使用自定义 TypeScript 模块和命名空间。
'@typescript-eslint/semi': 'off',
// eslint-plugin-vue (https://eslint.vuejs.org/rules/)
'vue/multi-word-component-names': 'off', // 要求组件名称始终为 “-” 链接的单词
'vue/script-setup-uses-vars': 'error', // 防止<script setup>使用的变量<template>被标记为未使用
'vue/no-mutating-props': 'off', // 不允许组件 prop的改变
'vue/attribute-hyphenation': 'off', // 对模板中的自定义组件强制执行属性命名样式
},
}

@ -43,13 +43,13 @@ module.exports = {
// eslint(https://eslint.bootcss.com/docs/rules/)
'no-var': 'error', // 要求使用 let 或 const 而不是 var
'no-multiple-empty-lines': ['warn', { max: 1 }], // 不允许多个空行
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'off' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unexpected-multiline': 'error', // 禁止空余的多行
'no-unexpected-multiline': 'off', // 禁止空余的多行
'no-useless-escape': 'off', // 禁止不必要的转义字符
// typeScript (https://typescript-eslint.io/rules)
'@typescript-eslint/no-unused-vars': 'error', // 禁止定义未使用的变量
'@typescript-eslint/no-unused-vars': 'off', // 禁止定义未使用的变量
'@typescript-eslint/prefer-ts-expect-error': 'off', // 禁止使用 @ts-ignore
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-explicit-any': 'off', // 禁止使用 any 类型

@ -40,16 +40,16 @@ module.exports = {
*/
rules: {
// eslint(https://eslint.bootcss.com/docs/rules/)
'no-var': 'error', // 要求使用 let 或 const 而不是 var
'no-multiple-empty-lines': ['warn', { max: 1 }], // 不允许多个空行
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unexpected-multiline': 'error', // 禁止空余的多行
'no-var': 'off', // 要求使用 let 或 const 而不是 var
'no-multiple-empty-lines': ['off', { max: 1 }], // 不允许多个空行
'no-console': process.env.NODE_ENV === 'production' ? 'off' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'off' : 'off',
'no-unexpected-multiline': 'off', // 禁止空余的多行
'no-useless-escape': 'off', // 禁止不必要的转义字符
// typeScript (https://typescript-eslint.io/rules)
'@typescript-eslint/no-unused-vars': 'error', // 禁止定义未使用的变量
'@typescript-eslint/prefer-ts-expect-error': 'off', // 禁止使用 @ts-ignore
'@typescript-eslint/no-unused-vars': 'off', // 禁止定义未使用的变量
'@typescript-eslint/prefer-ts-expect-off': 'off', // 禁止使用 @ts-ignore
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-explicit-any': 'off', // 禁止使用 any 类型
'@typescript-eslint/no-non-null-assertion': 'off',
@ -58,7 +58,7 @@ module.exports = {
// eslint-plugin-vue (https://eslint.vuejs.org/rules/)
'vue/multi-word-component-names': 'off', // 要求组件名称始终为 “-” 链接的单词
'vue/script-setup-uses-vars': 'error', // 防止<script setup>使用的变量<template>被标记为未使用
'vue/script-setup-uses-vars': 'off', // 防止<script setup>使用的变量<template>被标记为未使用
'vue/no-mutating-props': 'off', // 不允许组件 prop的改变
'vue/attribute-hyphenation': 'off', // 对模板中的自定义组件强制执行属性命名样式
},

2
.gitignore vendored

@ -21,4 +21,4 @@ dist-ssr
*.ntvs*
*.njsproj
*.sln
*.sw?
*.sw?

@ -2,24 +2,28 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ApiRequestOptions } from './ApiRequestOptions';
import type { ApiResult } from './ApiResult';
import type { ApiRequestOptions } from './ApiRequestOptions'
import type { ApiResult } from './ApiResult'
export class ApiError extends Error {
public readonly url: string;
public readonly status: number;
public readonly statusText: string;
public readonly body: any;
public readonly request: ApiRequestOptions;
public readonly url: string
public readonly status: number
public readonly statusText: string
public readonly body: any
public readonly request: ApiRequestOptions
constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
super(message);
constructor(
request: ApiRequestOptions,
response: ApiResult,
message: string,
) {
super(message)
this.name = 'ApiError';
this.url = response.url;
this.status = response.status;
this.statusText = response.statusText;
this.body = response.body;
this.request = request;
}
this.name = 'ApiError'
this.url = response.url
this.status = response.status
this.statusText = response.statusText
this.body = response.body
this.request = request
}
}

@ -3,15 +3,22 @@
/* tslint:disable */
/* eslint-disable */
export type ApiRequestOptions = {
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
readonly url: string;
readonly path?: Record<string, any>;
readonly cookies?: Record<string, any>;
readonly headers?: Record<string, any>;
readonly query?: Record<string, any>;
readonly formData?: Record<string, any>;
readonly body?: any;
readonly mediaType?: string;
readonly responseHeader?: string;
readonly errors?: Record<number, string>;
};
readonly method:
| 'GET'
| 'PUT'
| 'POST'
| 'DELETE'
| 'OPTIONS'
| 'HEAD'
| 'PATCH'
readonly url: string
readonly path?: Record<string, any>
readonly cookies?: Record<string, any>
readonly headers?: Record<string, any>
readonly query?: Record<string, any>
readonly formData?: Record<string, any>
readonly body?: any
readonly mediaType?: string
readonly responseHeader?: string
readonly errors?: Record<number, string>
}

@ -3,9 +3,9 @@
/* tslint:disable */
/* eslint-disable */
export type ApiResult = {
readonly url: string;
readonly ok: boolean;
readonly status: number;
readonly statusText: string;
readonly body: any;
};
readonly url: string
readonly ok: boolean
readonly status: number
readonly statusText: string
readonly body: any
}

@ -3,129 +3,128 @@
/* tslint:disable */
/* eslint-disable */
export class CancelError extends Error {
constructor(message: string) {
super(message);
this.name = 'CancelError';
}
public get isCancelled(): boolean {
return true;
}
constructor(message: string) {
super(message)
this.name = 'CancelError'
}
public get isCancelled(): boolean {
return true
}
}
export interface OnCancel {
readonly isResolved: boolean;
readonly isRejected: boolean;
readonly isCancelled: boolean;
readonly isResolved: boolean
readonly isRejected: boolean
readonly isCancelled: boolean
(cancelHandler: () => void): void;
(cancelHandler: () => void): void
}
export class CancelablePromise<T> implements Promise<T> {
#isResolved: boolean;
#isRejected: boolean;
#isCancelled: boolean;
readonly #cancelHandlers: (() => void)[];
readonly #promise: Promise<T>;
#resolve?: (value: T | PromiseLike<T>) => void;
#reject?: (reason?: any) => void;
constructor(
executor: (
resolve: (value: T | PromiseLike<T>) => void,
reject: (reason?: any) => void,
onCancel: OnCancel
) => void
) {
this.#isResolved = false;
this.#isRejected = false;
this.#isCancelled = false;
this.#cancelHandlers = [];
this.#promise = new Promise<T>((resolve, reject) => {
this.#resolve = resolve;
this.#reject = reject;
const onResolve = (value: T | PromiseLike<T>): void => {
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
return;
}
this.#isResolved = true;
if (this.#resolve) this.#resolve(value);
};
const onReject = (reason?: any): void => {
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
return;
}
this.#isRejected = true;
if (this.#reject) this.#reject(reason);
};
const onCancel = (cancelHandler: () => void): void => {
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
return;
}
this.#cancelHandlers.push(cancelHandler);
};
Object.defineProperty(onCancel, 'isResolved', {
get: (): boolean => this.#isResolved,
});
Object.defineProperty(onCancel, 'isRejected', {
get: (): boolean => this.#isRejected,
});
Object.defineProperty(onCancel, 'isCancelled', {
get: (): boolean => this.#isCancelled,
});
return executor(onResolve, onReject, onCancel as OnCancel);
});
}
get [Symbol.toStringTag]() {
return "Cancellable Promise";
}
public then<TResult1 = T, TResult2 = never>(
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null
): Promise<TResult1 | TResult2> {
return this.#promise.then(onFulfilled, onRejected);
}
public catch<TResult = never>(
onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null
): Promise<T | TResult> {
return this.#promise.catch(onRejected);
}
#isResolved: boolean
#isRejected: boolean
#isCancelled: boolean
readonly #cancelHandlers: (() => void)[]
readonly #promise: Promise<T>
#resolve?: (value: T | PromiseLike<T>) => void
#reject?: (reason?: any) => void
constructor(
executor: (
resolve: (value: T | PromiseLike<T>) => void,
reject: (reason?: any) => void,
onCancel: OnCancel,
) => void,
) {
this.#isResolved = false
this.#isRejected = false
this.#isCancelled = false
this.#cancelHandlers = []
this.#promise = new Promise<T>((resolve, reject) => {
this.#resolve = resolve
this.#reject = reject
const onResolve = (value: T | PromiseLike<T>): void => {
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
return
}
this.#isResolved = true
if (this.#resolve) this.#resolve(value)
}
public finally(onFinally?: (() => void) | null): Promise<T> {
return this.#promise.finally(onFinally);
}
const onReject = (reason?: any): void => {
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
return
}
this.#isRejected = true
if (this.#reject) this.#reject(reason)
}
public cancel(): void {
const onCancel = (cancelHandler: () => void): void => {
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
return;
return
}
this.#isCancelled = true;
if (this.#cancelHandlers.length) {
try {
for (const cancelHandler of this.#cancelHandlers) {
cancelHandler();
}
} catch (error) {
console.warn('Cancellation threw an error', error);
return;
}
this.#cancelHandlers.push(cancelHandler)
}
Object.defineProperty(onCancel, 'isResolved', {
get: (): boolean => this.#isResolved,
})
Object.defineProperty(onCancel, 'isRejected', {
get: (): boolean => this.#isRejected,
})
Object.defineProperty(onCancel, 'isCancelled', {
get: (): boolean => this.#isCancelled,
})
return executor(onResolve, onReject, onCancel as OnCancel)
})
}
get [Symbol.toStringTag]() {
return 'Cancellable Promise'
}
public then<TResult1 = T, TResult2 = never>(
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null,
): Promise<TResult1 | TResult2> {
return this.#promise.then(onFulfilled, onRejected)
}
public catch<TResult = never>(
onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null,
): Promise<T | TResult> {
return this.#promise.catch(onRejected)
}
public finally(onFinally?: (() => void) | null): Promise<T> {
return this.#promise.finally(onFinally)
}
public cancel(): void {
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
return
}
this.#isCancelled = true
if (this.#cancelHandlers.length) {
try {
for (const cancelHandler of this.#cancelHandlers) {
cancelHandler()
}
this.#cancelHandlers.length = 0;
if (this.#reject) this.#reject(new CancelError('Request aborted'));
} catch (error) {
console.warn('Cancellation threw an error', error)
return
}
}
this.#cancelHandlers.length = 0
if (this.#reject) this.#reject(new CancelError('Request aborted'))
}
public get isCancelled(): boolean {
return this.#isCancelled;
}
public get isCancelled(): boolean {
return this.#isCancelled
}
}

@ -2,34 +2,35 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import { GET_TKOEN } from '@/utils/token';
import type { ApiRequestOptions } from './ApiRequestOptions';
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
type Headers = Record<string, string>;
import type { ApiRequestOptions } from './ApiRequestOptions'
// @ts-expect-error
import { GET_TKOEN } from '@/utils/token'
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>
type Headers = Record<string, string>
export type OpenAPIConfig = {
BASE: string;
VERSION: string;
WITH_CREDENTIALS: boolean;
CREDENTIALS: 'include' | 'omit' | 'same-origin';
TOKEN?: string | Resolver<string> | undefined;
USERNAME?: string | Resolver<string> | undefined;
PASSWORD?: string | Resolver<string> | undefined;
HEADERS?: Headers | Resolver<Headers> | undefined;
ENCODE_PATH?: ((path: string) => string) | undefined;
};
BASE: string
VERSION: string
WITH_CREDENTIALS: boolean
CREDENTIALS: 'include' | 'omit' | 'same-origin'
TOKEN?: string | Resolver<string> | undefined
USERNAME?: string | Resolver<string> | undefined
PASSWORD?: string | Resolver<string> | undefined
HEADERS?: Headers | Resolver<Headers> | undefined
ENCODE_PATH?: ((path: string) => string) | undefined
}
export const OpenAPI: OpenAPIConfig = {
BASE: 'http://39.106.16.162:8080',
VERSION: '1.0.0',
WITH_CREDENTIALS: false,
CREDENTIALS: 'include',
TOKEN: GET_TKOEN('TOKEN'),
TOKEN: GET_TKOEN('TOKEN') || undefined,
USERNAME: undefined,
PASSWORD: undefined,
HEADERS: {
Authorization: 'Bearer ' + GET_TKOEN('TOKEN'),
},
ENCODE_PATH: undefined,
}
}

@ -2,286 +2,315 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import axios from 'axios';
import type { AxiosError, AxiosRequestConfig, AxiosResponse, AxiosInstance } from 'axios';
import FormData from 'form-data';
import { ApiError } from './ApiError';
import type { ApiRequestOptions } from './ApiRequestOptions';
import type { ApiResult } from './ApiResult';
import { CancelablePromise } from './CancelablePromise';
import type { OnCancel } from './CancelablePromise';
import type { OpenAPIConfig } from './OpenAPI';
export const isDefined = <T>(value: T | null | undefined): value is Exclude<T, null | undefined> => {
return value !== undefined && value !== null;
};
import axios from 'axios'
import type {
AxiosError,
AxiosRequestConfig,
AxiosResponse,
AxiosInstance,
} from 'axios'
import FormData from 'form-data'
import { ApiError } from './ApiError'
import type { ApiRequestOptions } from './ApiRequestOptions'
import type { ApiResult } from './ApiResult'
import { CancelablePromise } from './CancelablePromise'
import type { OnCancel } from './CancelablePromise'
import type { OpenAPIConfig } from './OpenAPI'
export const isDefined = <T>(
value: T | null | undefined,
): value is Exclude<T, null | undefined> => {
return value !== undefined && value !== null
}
export const isString = (value: any): value is string => {
return typeof value === 'string';
};
return typeof value === 'string'
}
export const isStringWithValue = (value: any): value is string => {
return isString(value) && value !== '';
};
return isString(value) && value !== ''
}
export const isBlob = (value: any): value is Blob => {
return (
typeof value === 'object' &&
typeof value.type === 'string' &&
typeof value.stream === 'function' &&
typeof value.arrayBuffer === 'function' &&
typeof value.constructor === 'function' &&
typeof value.constructor.name === 'string' &&
/^(Blob|File)$/.test(value.constructor.name) &&
/^(Blob|File)$/.test(value[Symbol.toStringTag])
);
};
return (
typeof value === 'object' &&
typeof value.type === 'string' &&
typeof value.stream === 'function' &&
typeof value.arrayBuffer === 'function' &&
typeof value.constructor === 'function' &&
typeof value.constructor.name === 'string' &&
/^(Blob|File)$/.test(value.constructor.name) &&
/^(Blob|File)$/.test(value[Symbol.toStringTag])
)
}
export const isFormData = (value: any): value is FormData => {
return value instanceof FormData;
};
return value instanceof FormData
}
export const isSuccess = (status: number): boolean => {
return status >= 200 && status < 300;
};
return status >= 200 && status < 300
}
export const base64 = (str: string): string => {
try {
return btoa(str);
} catch (err) {
// @ts-ignore
return Buffer.from(str).toString('base64');
}
};
try {
return btoa(str)
} catch (err) {
// @ts-ignore
return Buffer.from(str).toString('base64')
}
}
export const getQueryString = (params: Record<string, any>): string => {
const qs: string[] = [];
const append = (key: string, value: any) => {
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
};
const process = (key: string, value: any) => {
if (isDefined(value)) {
if (Array.isArray(value)) {
value.forEach(v => {
process(key, v);
});
} else if (typeof value === 'object') {
Object.entries(value).forEach(([k, v]) => {
process(`${key}[${k}]`, v);
});
} else {
append(key, value);
}
}
};
Object.entries(params).forEach(([key, value]) => {
process(key, value);
});
if (qs.length > 0) {
return `?${qs.join('&')}`;
const qs: string[] = []
const append = (key: string, value: any) => {
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`)
}
const process = (key: string, value: any) => {
if (isDefined(value)) {
if (Array.isArray(value)) {
value.forEach((v) => {
process(key, v)
})
} else if (typeof value === 'object') {
Object.entries(value).forEach(([k, v]) => {
process(`${key}[${k}]`, v)
})
} else {
append(key, value)
}
}
}
return '';
};
Object.entries(params).forEach(([key, value]) => {
process(key, value)
})
const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
const encoder = config.ENCODE_PATH || encodeURI;
const path = options.url
.replace('{api-version}', config.VERSION)
.replace(/{(.*?)}/g, (substring: string, group: string) => {
if (options.path?.hasOwnProperty(group)) {
return encoder(String(options.path[group]));
}
return substring;
});
const url = `${config.BASE}${path}`;
if (options.query) {
return `${url}${getQueryString(options.query)}`;
}
return url;
};
export const getFormData = (options: ApiRequestOptions): FormData | undefined => {
if (options.formData) {
const formData = new FormData();
const process = (key: string, value: any) => {
if (isString(value) || isBlob(value)) {
formData.append(key, value);
} else {
formData.append(key, JSON.stringify(value));
}
};
Object.entries(options.formData)
.filter(([_, value]) => isDefined(value))
.forEach(([key, value]) => {
if (Array.isArray(value)) {
value.forEach(v => process(key, v));
} else {
process(key, value);
}
});
return formData;
}
return undefined;
};
if (qs.length > 0) {
return `?${qs.join('&')}`
}
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
return ''
}
export const resolve = async <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>): Promise<T | undefined> => {
if (typeof resolver === 'function') {
return (resolver as Resolver<T>)(options);
}
return resolver;
};
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions, formData?: FormData): Promise<Record<string, string>> => {
const [token, username, password, additionalHeaders] = await Promise.all([
resolve(options, config.TOKEN),
resolve(options, config.USERNAME),
resolve(options, config.PASSWORD),
resolve(options, config.HEADERS),
]);
const formHeaders = typeof formData?.getHeaders === 'function' && formData?.getHeaders() || {}
const headers = Object.entries({
Accept: 'application/json',
...additionalHeaders,
...options.headers,
...formHeaders,
const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
const encoder = config.ENCODE_PATH || encodeURI
const path = options.url
.replace('{api-version}', config.VERSION)
.replace(/{(.*?)}/g, (substring: string, group: string) => {
if (options.path?.hasOwnProperty(group)) {
return encoder(String(options.path[group]))
}
return substring
})
.filter(([_, value]) => isDefined(value))
.reduce((headers, [key, value]) => ({
...headers,
[key]: String(value),
}), {} as Record<string, string>);
if (isStringWithValue(token)) {
headers['Authorization'] = `Bearer ${token}`;
}
const url = `${config.BASE}${path}`
if (options.query) {
return `${url}${getQueryString(options.query)}`
}
return url
}
export const getFormData = (
options: ApiRequestOptions,
): FormData | undefined => {
if (options.formData) {
const formData = new FormData()
if (isStringWithValue(username) && isStringWithValue(password)) {
const credentials = base64(`${username}:${password}`);
headers['Authorization'] = `Basic ${credentials}`;
const process = (key: string, value: any) => {
if (isString(value) || isBlob(value)) {
formData.append(key, value)
} else {
formData.append(key, JSON.stringify(value))
}
}
if (options.body !== undefined) {
if (options.mediaType) {
headers['Content-Type'] = options.mediaType;
} else if (isBlob(options.body)) {
headers['Content-Type'] = options.body.type || 'application/octet-stream';
} else if (isString(options.body)) {
headers['Content-Type'] = 'text/plain';
} else if (!isFormData(options.body)) {
headers['Content-Type'] = 'application/json';
Object.entries(options.formData)
.filter(([_, value]) => isDefined(value))
.forEach(([key, value]) => {
if (Array.isArray(value)) {
value.forEach((v) => process(key, v))
} else {
process(key, value)
}
})
return formData
}
return undefined
}
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>
export const resolve = async <T>(
options: ApiRequestOptions,
resolver?: T | Resolver<T>,
): Promise<T | undefined> => {
if (typeof resolver === 'function') {
return (resolver as Resolver<T>)(options)
}
return resolver
}
export const getHeaders = async (
config: OpenAPIConfig,
options: ApiRequestOptions,
formData?: FormData,
): Promise<Record<string, string>> => {
const [token, username, password, additionalHeaders] = await Promise.all([
resolve(options, config.TOKEN),
resolve(options, config.USERNAME),
resolve(options, config.PASSWORD),
resolve(options, config.HEADERS),
])
const formHeaders =
(typeof formData?.getHeaders === 'function' && formData?.getHeaders()) || {}
const headers = Object.entries({
Accept: 'application/json',
...additionalHeaders,
...options.headers,
...formHeaders,
})
.filter(([_, value]) => isDefined(value))
.reduce(
(headers, [key, value]) => ({
...headers,
[key]: String(value),
}),
{} as Record<string, string>,
)
if (isStringWithValue(token)) {
headers['Authorization'] = `Bearer ${token}`
}
if (isStringWithValue(username) && isStringWithValue(password)) {
const credentials = base64(`${username}:${password}`)
headers['Authorization'] = `Basic ${credentials}`
}
if (options.body !== undefined) {
if (options.mediaType) {
headers['Content-Type'] = options.mediaType
} else if (isBlob(options.body)) {
headers['Content-Type'] = options.body.type || 'application/octet-stream'
} else if (isString(options.body)) {
headers['Content-Type'] = 'text/plain'
} else if (!isFormData(options.body)) {
headers['Content-Type'] = 'application/json'
}
}
return headers;
};
return headers
}
export const getRequestBody = (options: ApiRequestOptions): any => {
if (options.body) {
return options.body;
}
return undefined;
};
if (options.body) {
return options.body
}
return undefined
}
export const sendRequest = async <T>(
config: OpenAPIConfig,
options: ApiRequestOptions,
url: string,
body: any,
formData: FormData | undefined,
headers: Record<string, string>,
onCancel: OnCancel,
axiosClient: AxiosInstance
config: OpenAPIConfig,
options: ApiRequestOptions,
url: string,
body: any,
formData: FormData | undefined,
headers: Record<string, string>,
onCancel: OnCancel,
axiosClient: AxiosInstance,
): Promise<AxiosResponse<T>> => {
const source = axios.CancelToken.source();
const requestConfig: AxiosRequestConfig = {
url,
headers,
data: body ?? formData,
method: options.method,
withCredentials: config.WITH_CREDENTIALS,
withXSRFToken: config.CREDENTIALS === 'include' ? config.WITH_CREDENTIALS : false,
cancelToken: source.token,
};
onCancel(() => source.cancel('The user aborted a request.'));
try {
return await axiosClient.request(requestConfig);
} catch (error) {
const axiosError = error as AxiosError<T>;
if (axiosError.response) {
return axiosError.response;
}
throw error;
const source = axios.CancelToken.source()
const requestConfig: AxiosRequestConfig = {
url,
headers,
data: body ?? formData,
method: options.method,
withCredentials: config.WITH_CREDENTIALS,
withXSRFToken:
config.CREDENTIALS === 'include' ? config.WITH_CREDENTIALS : false,
cancelToken: source.token,
}
onCancel(() => source.cancel('The user aborted a request.'))
try {
return await axiosClient.request(requestConfig)
} catch (error) {
const axiosError = error as AxiosError<T>
if (axiosError.response) {
return axiosError.response
}
};
export const getResponseHeader = (response: AxiosResponse<any>, responseHeader?: string): string | undefined => {
if (responseHeader) {
const content = response.headers[responseHeader];
if (isString(content)) {
return content;
}
throw error
}
}
export const getResponseHeader = (
response: AxiosResponse<any>,
responseHeader?: string,
): string | undefined => {
if (responseHeader) {
const content = response.headers[responseHeader]
if (isString(content)) {
return content
}
return undefined;
};
}
return undefined
}
export const getResponseBody = (response: AxiosResponse<any>): any => {
if (response.status !== 204) {
return response.data;
}
return undefined;
};
export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {
const errors: Record<number, string> = {
400: 'Bad Request',
401: 'Unauthorized',
403: 'Forbidden',
404: 'Not Found',
500: 'Internal Server Error',
502: 'Bad Gateway',
503: 'Service Unavailable',
...options.errors,
}
const error = errors[result.status];
if (error) {
throw new ApiError(options, result, error);
}
if (!result.ok) {
const errorStatus = result.status ?? 'unknown';
const errorStatusText = result.statusText ?? 'unknown';
const errorBody = (() => {
try {
return JSON.stringify(result.body, null, 2);
} catch (e) {
return undefined;
}
})();
throw new ApiError(options, result,
`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`
);
}
};
if (response.status !== 204) {
return response.data
}
return undefined
}
export const catchErrorCodes = (
options: ApiRequestOptions,
result: ApiResult,
): void => {
const errors: Record<number, string> = {
400: 'Bad Request',
401: 'Unauthorized',
403: 'Forbidden',
404: 'Not Found',
500: 'Internal Server Error',
502: 'Bad Gateway',
503: 'Service Unavailable',
...options.errors,
}
const error = errors[result.status]
if (error) {
throw new ApiError(options, result, error)
}
if (!result.ok) {
const errorStatus = result.status ?? 'unknown'
const errorStatusText = result.statusText ?? 'unknown'
const errorBody = (() => {
try {
return JSON.stringify(result.body, null, 2)
} catch (e) {
return undefined
}
})()
throw new ApiError(
options,
result,
`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`,
)
}
}
/**
* Request method
@ -291,33 +320,49 @@ export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult):
* @returns CancelablePromise<T>
* @throws ApiError
*/
export const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions, axiosClient: AxiosInstance = axios): CancelablePromise<T> => {
return new CancelablePromise(async (resolve, reject, onCancel) => {
try {
const url = getUrl(config, options);
const formData = getFormData(options);
const body = getRequestBody(options);
const headers = await getHeaders(config, options, formData);
if (!onCancel.isCancelled) {
const response = await sendRequest<T>(config, options, url, body, formData, headers, onCancel, axiosClient);
const responseBody = getResponseBody(response);
const responseHeader = getResponseHeader(response, options.responseHeader);
const result: ApiResult = {
url,
ok: isSuccess(response.status),
status: response.status,
statusText: response.statusText,
body: responseHeader ?? responseBody,
};
catchErrorCodes(options, result);
resolve(result.body);
}
} catch (error) {
reject(error);
export const request = <T>(
config: OpenAPIConfig,
options: ApiRequestOptions,
axiosClient: AxiosInstance = axios,
): CancelablePromise<T> => {
return new CancelablePromise(async (resolve, reject, onCancel) => {
try {
const url = getUrl(config, options)
const formData = getFormData(options)
const body = getRequestBody(options)
const headers = await getHeaders(config, options, formData)
if (!onCancel.isCancelled) {
const response = await sendRequest<T>(
config,
options,
url,
body,
formData,
headers,
onCancel,
axiosClient,
)
const responseBody = getResponseBody(response)
const responseHeader = getResponseHeader(
response,
options.responseHeader,
)
const result: ApiResult = {
url,
ok: isSuccess(response.status),
status: response.status,
statusText: response.statusText,
body: responseHeader ?? responseBody,
}
});
};
catchErrorCodes(options, result)
resolve(result.body)
}
} catch (error) {
reject(error)
}
})
}

@ -2,72 +2,72 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export { ApiError } from './core/ApiError';
export { CancelablePromise, CancelError } from './core/CancelablePromise';
export { OpenAPI } from './core/OpenAPI';
export type { OpenAPIConfig } from './core/OpenAPI';
export { ApiError } from './core/ApiError'
export { CancelablePromise, CancelError } from './core/CancelablePromise'
export { OpenAPI } from './core/OpenAPI'
export type { OpenAPIConfig } from './core/OpenAPI'
export type { BaseResponse } from './models/BaseResponse';
export type { BaseResponse_boolean_ } from './models/BaseResponse_boolean_';
export type { BaseResponse_CoursesDTO_ } from './models/BaseResponse_CoursesDTO_';
export type { BaseResponse_List_CourseObjectivesTreeVO_ } from './models/BaseResponse_List_CourseObjectivesTreeVO_';
export type { BaseResponse_List_CourseResources_ } from './models/BaseResponse_List_CourseResources_';
export type { BaseResponse_List_LearningRecords_ } from './models/BaseResponse_List_LearningRecords_';
export type { BaseResponse_List_ObjectivesType_ } from './models/BaseResponse_List_ObjectivesType_';
export type { BaseResponse_List_TeacherInfVO_ } from './models/BaseResponse_List_TeacherInfVO_';
export type { BaseResponse_long_ } from './models/BaseResponse_long_';
export type { BaseResponse_Map_string_object_ } from './models/BaseResponse_Map_string_object_';
export type { BaseResponse_ObjectiveContentKnowVO_ } from './models/BaseResponse_ObjectiveContentKnowVO_';
export type { BaseResponse_ObjectiveContents_ } from './models/BaseResponse_ObjectiveContents_';
export type { BaseResponse_Page_ } from './models/BaseResponse_Page_';
export type { BaseResponse_Page_CourseFavourDetailVO_ } from './models/BaseResponse_Page_CourseFavourDetailVO_';
export type { BaseResponse_Page_CourseResources_ } from './models/BaseResponse_Page_CourseResources_';
export type { BaseResponse_PageDTO_CoursesVO_ } from './models/BaseResponse_PageDTO_CoursesVO_';
export type { BaseResponse_string_ } from './models/BaseResponse_string_';
export type { CommonResult } from './models/CommonResult';
export type { CommonResult_string_ } from './models/CommonResult_string_';
export type { CommonResult_UmsAdmin_ } from './models/CommonResult_UmsAdmin_';
export type { CourseFavourAddRequest } from './models/CourseFavourAddRequest';
export type { CourseFavourAllRequest } from './models/CourseFavourAllRequest';
export type { CourseFavourDetailVO } from './models/CourseFavourDetailVO';
export type { CourseFavourQueryRequest } from './models/CourseFavourQueryRequest';
export type { CourseObjectivesDTO } from './models/CourseObjectivesDTO';
export type { CourseObjectivesTreeVO } from './models/CourseObjectivesTreeVO';
export type { CourseResources } from './models/CourseResources';
export type { CoursesDTO } from './models/CoursesDTO';
export type { CoursesVO } from './models/CoursesVO';
export type { CourseThumbAddRequest } from './models/CourseThumbAddRequest';
export type { KnowFavourAddRequest } from './models/KnowFavourAddRequest';
export type { KnowThumbAddRequest } from './models/KnowThumbAddRequest';
export type { LearningRecords } from './models/LearningRecords';
export type { ObjectiveContentKnowDTO } from './models/ObjectiveContentKnowDTO';
export type { ObjectiveContentKnowVO } from './models/ObjectiveContentKnowVO';
export type { ObjectiveContents_ } from './models/ObjectiveContents_';
export type { ObjectivesType_ } from './models/ObjectivesType_';
export type { OrderItem } from './models/OrderItem';
export type { Page } from './models/Page';
export type { Page_CourseFavourDetailVO_ } from './models/Page_CourseFavourDetailVO_';
export type { Page_CourseResources_ } from './models/Page_CourseResources_';
export type { PageDTO_CoursesVO_ } from './models/PageDTO_CoursesVO_';
export type { ResourceFavourAddRequest } from './models/ResourceFavourAddRequest';
export type { ResourceFavourQueryRequest } from './models/ResourceFavourQueryRequest';
export type { ResourceThumbAddRequest } from './models/ResourceThumbAddRequest';
export type { StudentCoursesDTO } from './models/StudentCoursesDTO';
export type { TeacherInfVO } from './models/TeacherInfVO';
export type { UmsAdmin } from './models/UmsAdmin';
export type { UmsAdminParam } from './models/UmsAdminParam';
export type { UmsStudentAndTeacherDTO } from './models/UmsStudentAndTeacherDTO';
export type { UpdateAdminPasswordParam } from './models/UpdateAdminPasswordParam';
export type { BaseResponse } from './models/BaseResponse'
export type { BaseResponse_boolean_ } from './models/BaseResponse_boolean_'
export type { BaseResponse_CoursesDTO_ } from './models/BaseResponse_CoursesDTO_'
export type { BaseResponse_List_CourseObjectivesTreeVO_ } from './models/BaseResponse_List_CourseObjectivesTreeVO_'
export type { BaseResponse_List_CourseResources_ } from './models/BaseResponse_List_CourseResources_'
export type { BaseResponse_List_LearningRecords_ } from './models/BaseResponse_List_LearningRecords_'
export type { BaseResponse_List_ObjectivesType_ } from './models/BaseResponse_List_ObjectivesType_'
export type { BaseResponse_List_TeacherInfVO_ } from './models/BaseResponse_List_TeacherInfVO_'
export type { BaseResponse_long_ } from './models/BaseResponse_long_'
export type { BaseResponse_Map_string_object_ } from './models/BaseResponse_Map_string_object_'
export type { BaseResponse_ObjectiveContentKnowVO_ } from './models/BaseResponse_ObjectiveContentKnowVO_'
export type { BaseResponse_ObjectiveContents_ } from './models/BaseResponse_ObjectiveContents_'
export type { BaseResponse_Page_ } from './models/BaseResponse_Page_'
export type { BaseResponse_Page_CourseFavourDetailVO_ } from './models/BaseResponse_Page_CourseFavourDetailVO_'
export type { BaseResponse_Page_CourseResources_ } from './models/BaseResponse_Page_CourseResources_'
export type { BaseResponse_PageDTO_CoursesVO_ } from './models/BaseResponse_PageDTO_CoursesVO_'
export type { BaseResponse_string_ } from './models/BaseResponse_string_'
export type { CommonResult } from './models/CommonResult'
export type { CommonResult_string_ } from './models/CommonResult_string_'
export type { CommonResult_UmsAdmin_ } from './models/CommonResult_UmsAdmin_'
export type { CourseFavourAddRequest } from './models/CourseFavourAddRequest'
export type { CourseFavourAllRequest } from './models/CourseFavourAllRequest'
export type { CourseFavourDetailVO } from './models/CourseFavourDetailVO'
export type { CourseFavourQueryRequest } from './models/CourseFavourQueryRequest'
export type { CourseObjectivesDTO } from './models/CourseObjectivesDTO'
export type { CourseObjectivesTreeVO } from './models/CourseObjectivesTreeVO'
export type { CourseResources } from './models/CourseResources'
export type { CoursesDTO } from './models/CoursesDTO'
export type { CoursesVO } from './models/CoursesVO'
export type { CourseThumbAddRequest } from './models/CourseThumbAddRequest'
export type { KnowFavourAddRequest } from './models/KnowFavourAddRequest'
export type { KnowThumbAddRequest } from './models/KnowThumbAddRequest'
export type { LearningRecords } from './models/LearningRecords'
export type { ObjectiveContentKnowDTO } from './models/ObjectiveContentKnowDTO'
export type { ObjectiveContentKnowVO } from './models/ObjectiveContentKnowVO'
export type { ObjectiveContents_ } from './models/ObjectiveContents_'
export type { ObjectivesType_ } from './models/ObjectivesType_'
export type { OrderItem } from './models/OrderItem'
export type { Page } from './models/Page'
export type { Page_CourseFavourDetailVO_ } from './models/Page_CourseFavourDetailVO_'
export type { Page_CourseResources_ } from './models/Page_CourseResources_'
export type { PageDTO_CoursesVO_ } from './models/PageDTO_CoursesVO_'
export type { ResourceFavourAddRequest } from './models/ResourceFavourAddRequest'
export type { ResourceFavourQueryRequest } from './models/ResourceFavourQueryRequest'
export type { ResourceThumbAddRequest } from './models/ResourceThumbAddRequest'
export type { StudentCoursesDTO } from './models/StudentCoursesDTO'
export type { TeacherInfVO } from './models/TeacherInfVO'
export type { UmsAdmin } from './models/UmsAdmin'
export type { UmsAdminParam } from './models/UmsAdminParam'
export type { UmsStudentAndTeacherDTO } from './models/UmsStudentAndTeacherDTO'
export type { UpdateAdminPasswordParam } from './models/UpdateAdminPasswordParam'
export { Service } from './services/Service';
export { CourseResourceControllerService } from './services/CourseResourceControllerService';
export { FavourInformationControllerService } from './services/FavourInformationControllerService';
export { LearningRecordsControllerService } from './services/LearningRecordsControllerService';
export { ResourceControllerService } from './services/ResourceControllerService';
export { SeCourseFavourControllerService } from './services/SeCourseFavourControllerService';
export { SeCourseThumbControllerService } from './services/SeCourseThumbControllerService';
export { SeKnowFavourControllerService } from './services/SeKnowFavourControllerService';
export { SeKnowThumbControllerService } from './services/SeKnowThumbControllerService';
export { SeResourceFavourControllerService } from './services/SeResourceFavourControllerService';
export { SeResourceThumbControllerService } from './services/SeResourceThumbControllerService';
export { UmsAdminControllerService } from './services/UmsAdminControllerService';
export { Service } from './services/Service'
export { CourseResourceControllerService } from './services/CourseResourceControllerService'
export { FavourInformationControllerService } from './services/FavourInformationControllerService'
export { LearningRecordsControllerService } from './services/LearningRecordsControllerService'
export { ResourceControllerService } from './services/ResourceControllerService'
export { SeCourseFavourControllerService } from './services/SeCourseFavourControllerService'
export { SeCourseThumbControllerService } from './services/SeCourseThumbControllerService'
export { SeKnowFavourControllerService } from './services/SeKnowFavourControllerService'
export { SeKnowThumbControllerService } from './services/SeKnowThumbControllerService'
export { SeResourceFavourControllerService } from './services/SeResourceFavourControllerService'
export { SeResourceThumbControllerService } from './services/SeResourceThumbControllerService'
export { UmsAdminControllerService } from './services/UmsAdminControllerService'

@ -3,8 +3,7 @@
/* tslint:disable */
/* eslint-disable */
export type BaseResponse = {
code?: number;
data?: any;
message?: string;
};
code?: number
data?: any
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CoursesDTO } from './CoursesDTO';
import type { CoursesDTO } from './CoursesDTO'
export type BaseResponse_CoursesDTO_ = {
code?: number;
data?: CoursesDTO;
message?: string;
};
code?: number
data?: CoursesDTO
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CourseObjectivesTreeVO } from './CourseObjectivesTreeVO';
import type { CourseObjectivesTreeVO } from './CourseObjectivesTreeVO'
export type BaseResponse_List_CourseObjectivesTreeVO_ = {
code?: number;
data?: Array<CourseObjectivesTreeVO>;
message?: string;
};
code?: number
data?: Array<CourseObjectivesTreeVO>
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CourseResources } from './CourseResources';
import type { CourseResources } from './CourseResources'
export type BaseResponse_List_CourseResources_ = {
code?: number;
data?: Array<CourseResources>;
message?: string;
};
code?: number
data?: Array<CourseResources>
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { LearningRecords } from './LearningRecords';
import type { LearningRecords } from './LearningRecords'
export type BaseResponse_List_LearningRecords_ = {
code?: number;
data?: Array<LearningRecords>;
message?: string;
};
code?: number
data?: Array<LearningRecords>
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ObjectivesType_ } from './ObjectivesType_';
import type { ObjectivesType_ } from './ObjectivesType_'
export type BaseResponse_List_ObjectivesType_ = {
code?: number;
data?: Array<ObjectivesType_>;
message?: string;
};
code?: number
data?: Array<ObjectivesType_>
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { TeacherInfVO } from './TeacherInfVO';
import type { TeacherInfVO } from './TeacherInfVO'
export type BaseResponse_List_TeacherInfVO_ = {
code?: number;
data?: Array<TeacherInfVO>;
message?: string;
};
code?: number
data?: Array<TeacherInfVO>
message?: string
}

@ -3,8 +3,7 @@
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_Map_string_object_ = {
code?: number;
data?: any;
message?: string;
};
code?: number
data?: any
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ObjectiveContentKnowVO } from './ObjectiveContentKnowVO';
import type { ObjectiveContentKnowVO } from './ObjectiveContentKnowVO'
export type BaseResponse_ObjectiveContentKnowVO_ = {
code?: number;
data?: ObjectiveContentKnowVO;
message?: string;
};
code?: number
data?: ObjectiveContentKnowVO
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ObjectiveContents_ } from './ObjectiveContents_';
import type { ObjectiveContents_ } from './ObjectiveContents_'
export type BaseResponse_ObjectiveContents_ = {
code?: number;
data?: ObjectiveContents_;
message?: string;
};
code?: number
data?: ObjectiveContents_
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PageDTO_CoursesVO_ } from './PageDTO_CoursesVO_';
import type { PageDTO_CoursesVO_ } from './PageDTO_CoursesVO_'
export type BaseResponse_PageDTO_CoursesVO_ = {
code?: number;
data?: PageDTO_CoursesVO_;
message?: string;
};
code?: number
data?: PageDTO_CoursesVO_
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page } from './Page';
import type { Page } from './Page'
export type BaseResponse_Page_ = {
code?: number;
data?: Page;
message?: string;
};
code?: number
data?: Page
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_CourseFavourDetailVO_ } from './Page_CourseFavourDetailVO_';
import type { Page_CourseFavourDetailVO_ } from './Page_CourseFavourDetailVO_'
export type BaseResponse_Page_CourseFavourDetailVO_ = {
code?: number;
data?: Page_CourseFavourDetailVO_;
message?: string;
};
code?: number
data?: Page_CourseFavourDetailVO_
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Page_CourseResources_ } from './Page_CourseResources_';
import type { Page_CourseResources_ } from './Page_CourseResources_'
export type BaseResponse_Page_CourseResources_ = {
code?: number;
data?: Page_CourseResources_;
message?: string;
};
code?: number
data?: Page_CourseResources_
message?: string
}

@ -3,8 +3,7 @@
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_boolean_ = {
code?: number;
data?: boolean;
message?: string;
};
code?: number
data?: boolean
message?: string
}

@ -3,8 +3,7 @@
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_long_ = {
code?: number;
data?: number;
message?: string;
};
code?: number
data?: number
message?: string
}

@ -3,8 +3,7 @@
/* tslint:disable */
/* eslint-disable */
export type BaseResponse_string_ = {
code?: number;
data?: string;
message?: string;
};
code?: number
data?: string
message?: string
}

@ -3,8 +3,7 @@
/* tslint:disable */
/* eslint-disable */
export type CommonResult = {
code?: number;
data?: any;
message?: string;
};
code?: number
data?: any
message?: string
}

@ -2,10 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { UmsAdmin } from './UmsAdmin';
import type { UmsAdmin } from './UmsAdmin'
export type CommonResult_UmsAdmin_ = {
code?: number;
data?: UmsAdmin;
message?: string;
};
code?: number
data?: UmsAdmin
message?: string
}

@ -3,8 +3,7 @@
/* tslint:disable */
/* eslint-disable */
export type CommonResult_string_ = {
code?: number;
data?: string;
message?: string;
};
code?: number
data?: string
message?: string
}

@ -3,7 +3,6 @@
/* tslint:disable */
/* eslint-disable */
export type CourseFavourAddRequest = {
courseId?: string;
userId?: string;
};
courseId?: string
userId?: string
}

@ -3,6 +3,5 @@
/* tslint:disable */
/* eslint-disable */
export type CourseFavourAllRequest = {
courseId?: string;
};
courseId?: string
}

@ -3,20 +3,19 @@
/* tslint:disable */
/* eslint-disable */
export type CourseFavourDetailVO = {
/**
*
*/
classhours: number;
/**
*
*/
credit: number;
id?: string;
img?: string;
name?: string;
/**
* id
*/
teacher?: string;
};
/**
*
*/
classhours: number
/**
*
*/
credit: number
id?: string
img?: string
name?: string
/**
* id
*/
teacher?: string
}

@ -3,10 +3,9 @@
/* tslint:disable */
/* eslint-disable */
export type CourseFavourQueryRequest = {
current?: number;
pageSize?: number;
sortField?: string;
sortOrder?: string;
userId?: string;
};
current?: number
pageSize?: number
sortField?: string
sortOrder?: string
userId?: string
}

@ -6,21 +6,20 @@
*
*/
export type CourseObjectivesDTO = {
/**
* id
*/
id?: string;
/**
*
*/
name: string;
/**
* pid
*/
pid: string;
/**
*
*/
type: number;
};
/**
* id
*/
id?: string
/**
*
*/
name: string
/**
* pid
*/
pid: string
/**
*
*/
type: number
}

@ -2,50 +2,49 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ObjectiveContents_ } from './ObjectiveContents_';
import type { ObjectiveContents_ } from './ObjectiveContents_'
/**
*
*/
export type CourseObjectivesTreeVO = {
/**
*
*/
contents?: Array<ObjectiveContents_>;
/**
* id
*/
courseId?: string;
/**
*
*/
courseObjectivesTrees?: Array<CourseObjectivesTreeVO>;
/**
*
*/
hasChild?: number;
/**
*
*/
id?: string;
/**
*
*/
name?: string;
/**
*
*/
pid?: string;
/**
* id
*/
requireid?: string;
/**
*
*/
temp?: string;
/**
*
*/
type?: number;
};
/**
*
*/
contents?: Array<ObjectiveContents_>
/**
* id
*/
courseId?: string
/**
*
*/
courseObjectivesTrees?: Array<CourseObjectivesTreeVO>
/**
*
*/
hasChild?: number
/**
*
*/
id?: string
/**
*
*/
name?: string
/**
*
*/
pid?: string
/**
* id
*/
requireid?: string
/**
*
*/
temp?: string
/**
*
*/
type?: number
}

@ -3,13 +3,12 @@
/* tslint:disable */
/* eslint-disable */
export type CourseResources = {
description?: string;
id?: number;
img?: string;
name?: string;
path?: string;
status?: number;
tags?: string;
type?: number;
};
description?: string
id?: number
img?: string
name?: string
path?: string
status?: number
tags?: string
type?: number
}

@ -3,7 +3,6 @@
/* tslint:disable */
/* eslint-disable */
export type CourseThumbAddRequest = {
courseId?: string;
userId?: string;
};
courseId?: string
userId?: string
}

@ -6,65 +6,64 @@
*
*/
export type CoursesDTO = {
/**
* 1 2
*/
assessmenttype: string;
/**
* 1 2 3
*/
assessmentway: string;
/**
* 1 2
*/
category: string;
/**
*
*/
classhours: number;
/**
*
*/
code: string;
/**
*
*/
createTime?: string;
/**
*
*/
credit: number;
/**
*
*/
description?: string;
/**
* id
*/
id?: string;
/**
*
*/
img?: string;
/**
*
*/
name: string;
/**
* 1 2 3
*/
nature: string;
/**
*
*/
teacher: string;
/**
*
*/
teachermethod?: string;
/**
*
*/
teacherway?: string;
};
/**
* 1 2
*/
assessmenttype: string
/**
* 1 2 3
*/
assessmentway: string
/**
* 1 2
*/
category: string
/**
*
*/
classhours: number
/**
*
*/
code: string
/**
*
*/
createTime?: string
/**
*
*/
credit: number
/**
*
*/
description?: string
/**
* id
*/
id?: string
/**
*
*/
img?: string
/**
*
*/
name: string
/**
* 1 2 3
*/
nature: string
/**
*
*/
teacher: string
/**
*
*/
teachermethod?: string
/**
*
*/
teacherway?: string
}

@ -6,45 +6,44 @@
* VO实体
*/
export type CoursesVO = {
/**
*
*/
classhours: number;
/**
*
*/
credit: number;
/**
*
*/
description: string;
/**
* id
*/
id?: string;
/**
*
*/
img?: string;
/**
*
*/
name: string;
/**
*
*/
teacher?: string;
/**
*
*/
totalHours: number;
/**
*
*/
totalKnow: number;
/**
*
*/
totalchapter: number;
};
/**
*
*/
classhours: number
/**
*
*/
credit: number
/**
*
*/
description: string
/**
* id
*/
id?: string
/**
*
*/
img?: string
/**
*
*/
name: string
/**
*
*/
teacher?: string
/**
*
*/
totalHours: number
/**
*
*/
totalKnow: number
/**
*
*/
totalchapter: number
}

@ -3,8 +3,7 @@
/* tslint:disable */
/* eslint-disable */
export type KnowFavourAddRequest = {
courseId?: string;
knowId?: string;
userId?: string;
};
courseId?: string
knowId?: string
userId?: string
}

@ -3,7 +3,6 @@
/* tslint:disable */
/* eslint-disable */
export type KnowThumbAddRequest = {
knowId?: number;
userId?: string;
};
knowId?: number
userId?: string
}

@ -3,20 +3,19 @@
/* tslint:disable */
/* eslint-disable */
export type LearningRecords = {
accessTime?: string;
address?: string;
chapterId?: string;
content?: string;
coursesId?: string;
download?: string;
id?: string;
isCompleted?: string;
knowledgePointId?: string;
open?: string;
parentNode?: string;
resourceId?: string;
status?: string;
type?: string;
userId?: string;
};
accessTime?: string
address?: string
chapterId?: string
content?: string
coursesId?: string
download?: string
id?: string
isCompleted?: string
knowledgePointId?: string
open?: string
parentNode?: string
resourceId?: string
status?: string
type?: string
userId?: string
}

@ -6,11 +6,10 @@
*
*/
export type ObjectiveContentKnowDTO = {
/**
*
*/
id?: string;
know?: string;
objectiveOrContent?: string;
};
/**
*
*/
id?: string
know?: string
objectiveOrContent?: string
}

@ -6,19 +6,18 @@
* VO实体
*/
export type ObjectiveContentKnowVO = {
contentKnowsData?: Array<ObjectiveContentKnowVO>;
/**
*
*/
knowsNumber?: number;
/**
*
*/
knowsTime?: number;
objectiveOrContent?: string;
/**
*
*/
persent?: string;
};
contentKnowsData?: Array<ObjectiveContentKnowVO>
/**
*
*/
knowsNumber?: number
/**
*
*/
knowsTime?: number
objectiveOrContent?: string
/**
*
*/
persent?: string
}

@ -3,14 +3,13 @@
/* tslint:disable */
/* eslint-disable */
export type ObjectiveContents_ = {
/**
*
*/
content: string;
id?: string;
/**
* id
*/
objectiveId: string;
};
/**
*
*/
content: string
id?: string
/**
* id
*/
objectiveId: string
}

@ -3,13 +3,12 @@
/* tslint:disable */
/* eslint-disable */
export type ObjectivesType_ = {
/**
* 使
*/
id?: number;
/**
*
*/
typeName: string;
};
/**
* 使
*/
id?: number
/**
*
*/
typeName: string
}

@ -3,7 +3,6 @@
/* tslint:disable */
/* eslint-disable */
export type OrderItem = {
asc?: boolean;
column?: string;
};
asc?: boolean
column?: string
}

@ -2,17 +2,16 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { OrderItem } from './OrderItem';
import type { OrderItem } from './OrderItem'
export type Page = {
countId?: string;
current?: number;
maxLimit?: number;
optimizeCountSql?: boolean;
orders?: Array<OrderItem>;
pages?: number;
records?: Array<any>;
searchCount?: boolean;
size?: number;
total?: number;
};
countId?: string
current?: number
maxLimit?: number
optimizeCountSql?: boolean
orders?: Array<OrderItem>
pages?: number
records?: Array<any>
searchCount?: boolean
size?: number
total?: number
}

@ -2,22 +2,21 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CoursesVO } from './CoursesVO';
import type { CoursesVO } from './CoursesVO'
/**
*
*/
export type PageDTO_CoursesVO_ = {
/**
*
*/
list?: Array<CoursesVO>;
/**
*
*/
pages?: number;
/**
*
*/
total?: number;
};
/**
*
*/
list?: Array<CoursesVO>
/**
*
*/
pages?: number
/**
*
*/
total?: number
}

@ -2,18 +2,17 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CourseFavourDetailVO } from './CourseFavourDetailVO';
import type { OrderItem } from './OrderItem';
import type { CourseFavourDetailVO } from './CourseFavourDetailVO'
import type { OrderItem } from './OrderItem'
export type Page_CourseFavourDetailVO_ = {
countId?: string;
current?: number;
maxLimit?: number;
optimizeCountSql?: boolean;
orders?: Array<OrderItem>;
pages?: number;
records?: Array<CourseFavourDetailVO>;
searchCount?: boolean;
size?: number;
total?: number;
};
countId?: string
current?: number
maxLimit?: number
optimizeCountSql?: boolean
orders?: Array<OrderItem>
pages?: number
records?: Array<CourseFavourDetailVO>
searchCount?: boolean
size?: number
total?: number
}

@ -2,18 +2,17 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CourseResources } from './CourseResources';
import type { OrderItem } from './OrderItem';
import type { CourseResources } from './CourseResources'
import type { OrderItem } from './OrderItem'
export type Page_CourseResources_ = {
countId?: string;
current?: number;
maxLimit?: number;
optimizeCountSql?: boolean;
orders?: Array<OrderItem>;
pages?: number;
records?: Array<CourseResources>;
searchCount?: boolean;
size?: number;
total?: number;
};
countId?: string
current?: number
maxLimit?: number
optimizeCountSql?: boolean
orders?: Array<OrderItem>
pages?: number
records?: Array<CourseResources>
searchCount?: boolean
size?: number
total?: number
}

@ -3,7 +3,6 @@
/* tslint:disable */
/* eslint-disable */
export type ResourceFavourAddRequest = {
resourceId?: number;
userId?: string;
};
resourceId?: number
userId?: string
}

@ -3,11 +3,10 @@
/* tslint:disable */
/* eslint-disable */
export type ResourceFavourQueryRequest = {
current?: number;
pageSize?: number;
sortField?: string;
sortOrder?: string;
type?: number;
userId?: string;
};
current?: number
pageSize?: number
sortField?: string
sortOrder?: string
type?: number
userId?: string
}

@ -3,7 +3,6 @@
/* tslint:disable */
/* eslint-disable */
export type ResourceThumbAddRequest = {
resourceId?: number;
userId?: string;
};
resourceId?: number
userId?: string
}

@ -6,8 +6,7 @@
*
*/
export type StudentCoursesDTO = {
course?: string;
id?: string;
student?: string;
};
course?: string
id?: string
student?: string
}

@ -6,13 +6,12 @@
* VO实体
*/
export type TeacherInfVO = {
/**
* name
*/
name?: string;
/**
* username
*/
username?: string;
};
/**
* name
*/
name?: string
/**
* username
*/
username?: string
}

@ -3,13 +3,12 @@
/* tslint:disable */
/* eslint-disable */
export type UmsAdmin = {
createTime?: string;
icon?: string;
id?: number;
nickName?: string;
password?: string;
phone?: string;
status?: number;
username?: string;
};
createTime?: string
icon?: string
id?: number
nickName?: string
password?: string
phone?: string
status?: number
username?: string
}

@ -3,10 +3,9 @@
/* tslint:disable */
/* eslint-disable */
export type UmsAdminParam = {
icon?: string;
nickName?: string;
password?: string;
phone?: string;
username?: string;
};
icon?: string
nickName?: string
password?: string
phone?: string
username?: string
}

@ -3,24 +3,23 @@
/* tslint:disable */
/* eslint-disable */
export type UmsStudentAndTeacherDTO = {
birthday?: string;
className?: string;
degree?: string;
education?: string;
emergencyContact?: string;
faculty?: string;
id?: number;
joinWorkTime?: string;
major?: string;
name?: string;
nationality?: string;
number?: string;
phone?: string;
politicalStatus?: string;
profession?: string;
professionalTitle?: string;
roleId?: number;
sex?: string;
yearAge?: string;
};
birthday?: string
className?: string
degree?: string
education?: string
emergencyContact?: string
faculty?: string
id?: number
joinWorkTime?: string
major?: string
name?: string
nationality?: string
number?: string
phone?: string
politicalStatus?: string
profession?: string
professionalTitle?: string
roleId?: number
sex?: string
yearAge?: string
}

@ -3,17 +3,16 @@
/* tslint:disable */
/* eslint-disable */
export type UpdateAdminPasswordParam = {
/**
*
*/
newPassword: string;
/**
*
*/
oldPassword: string;
/**
*
*/
username: string;
};
/**
*
*/
newPassword: string
/**
*
*/
oldPassword: string
/**
*
*/
username: string
}

@ -2,97 +2,97 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_List_CourseResources_ } from '../models/BaseResponse_List_CourseResources_';
import type { BaseResponse_Page_ } from '../models/BaseResponse_Page_';
import type { BaseResponse_string_ } from '../models/BaseResponse_string_';
import type { CourseResources } from '../models/CourseResources';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import type { BaseResponse_List_CourseResources_ } from '../models/BaseResponse_List_CourseResources_'
import type { BaseResponse_Page_ } from '../models/BaseResponse_Page_'
import type { BaseResponse_string_ } from '../models/BaseResponse_string_'
import type { CourseResources } from '../models/CourseResources'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
export class CourseResourceControllerService {
/**
* All
* @returns BaseResponse_List_CourseResources_ OK
* @throws ApiError
*/
public static allUsingGet1(): CancelablePromise<BaseResponse_List_CourseResources_> {
return __request(OpenAPI, {
method: 'GET',
url: '/courses/all',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* deleteRecords
* @param ids ids
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
public static deleteRecordsUsingDelete1(
ids: Array<number>,
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/courses/delete',
query: {
'ids': ids,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
},
});
}
/**
* getAll
* @param pagenum pagenum
* @param pagesize pagesize
* @param type type
* @returns BaseResponse_Page_ OK
* @throws ApiError
*/
public static getAllUsingGet1(
pagenum: number = 1,
pagesize: number = 10,
type?: string,
): CancelablePromise<BaseResponse_Page_> {
return __request(OpenAPI, {
method: 'GET',
url: '/courses/getall',
query: {
'pagenum': pagenum,
'pagesize': pagesize,
'type': type,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* saveCourseResource
* @param courseResources courseResources
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
public static saveCourseResourceUsingGet1(
courseResources: CourseResources,
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'GET',
url: '/courses/save',
body: courseResources,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* All
* @returns BaseResponse_List_CourseResources_ OK
* @throws ApiError
*/
public static allUsingGet1(): CancelablePromise<BaseResponse_List_CourseResources_> {
return __request(OpenAPI, {
method: 'GET',
url: '/courses/all',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* deleteRecords
* @param ids ids
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
public static deleteRecordsUsingDelete1(
ids: Array<number>,
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/courses/delete',
query: {
ids: ids,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
},
})
}
/**
* getAll
* @param pagenum pagenum
* @param pagesize pagesize
* @param type type
* @returns BaseResponse_Page_ OK
* @throws ApiError
*/
public static getAllUsingGet1(
pagenum: number = 1,
pagesize: number = 10,
type?: string,
): CancelablePromise<BaseResponse_Page_> {
return __request(OpenAPI, {
method: 'GET',
url: '/courses/getall',
query: {
pagenum: pagenum,
pagesize: pagesize,
type: type,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* saveCourseResource
* @param courseResources courseResources
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
public static saveCourseResourceUsingGet1(
courseResources: CourseResources,
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'GET',
url: '/courses/save',
body: courseResources,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
}

@ -2,46 +2,46 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_Page_CourseResources_ } from '../models/BaseResponse_Page_CourseResources_';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import type { BaseResponse_Page_CourseResources_ } from '../models/BaseResponse_Page_CourseResources_'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
export class FavourInformationControllerService {
/**
* getInformation2
* @param resourceIdList resourceIdList
* @param type type
* @param current
* @param pageSize
* @param sortField
* @param sortOrder
* @returns BaseResponse_Page_CourseResources_ OK
* @throws ApiError
*/
public static getInformation2UsingGet1(
resourceIdList: Array<number>,
type: number,
current?: number,
pageSize?: number,
sortField?: string,
sortOrder?: string,
): CancelablePromise<BaseResponse_Page_CourseResources_> {
return __request(OpenAPI, {
method: 'GET',
url: '/Favour/get',
query: {
'current': current,
'pageSize': pageSize,
'sortField': sortField,
'sortOrder': sortOrder,
'resourceIdList': resourceIdList,
'type': type,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* getInformation2
* @param resourceIdList resourceIdList
* @param type type
* @param current
* @param pageSize
* @param sortField
* @param sortOrder
* @returns BaseResponse_Page_CourseResources_ OK
* @throws ApiError
*/
public static getInformation2UsingGet1(
resourceIdList: Array<number>,
type: number,
current?: number,
pageSize?: number,
sortField?: string,
sortOrder?: string,
): CancelablePromise<BaseResponse_Page_CourseResources_> {
return __request(OpenAPI, {
method: 'GET',
url: '/Favour/get',
query: {
current: current,
pageSize: pageSize,
sortField: sortField,
sortOrder: sortOrder,
resourceIdList: resourceIdList,
type: type,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
}

@ -2,98 +2,98 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_List_LearningRecords_ } from '../models/BaseResponse_List_LearningRecords_';
import type { BaseResponse_Page_ } from '../models/BaseResponse_Page_';
import type { BaseResponse_string_ } from '../models/BaseResponse_string_';
import type { LearningRecords } from '../models/LearningRecords';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import type { BaseResponse_List_LearningRecords_ } from '../models/BaseResponse_List_LearningRecords_'
import type { BaseResponse_Page_ } from '../models/BaseResponse_Page_'
import type { BaseResponse_string_ } from '../models/BaseResponse_string_'
import type { LearningRecords } from '../models/LearningRecords'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
export class LearningRecordsControllerService {
/**
* All
* @returns BaseResponse_List_LearningRecords_ OK
* @throws ApiError
*/
public static allUsingGet3(): CancelablePromise<BaseResponse_List_LearningRecords_> {
return __request(OpenAPI, {
method: 'GET',
url: '/learningrecords/all',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* deleteRecords
* @param ids ids
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
public static deleteRecordsUsingDelete3(
ids: Array<number>,
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/learningrecords/delete',
query: {
'ids': ids,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
},
});
}
/**
* getAll
* @param userId userId
* @param pagenum pagenum
* @param pagesize pagesize
* @returns BaseResponse_Page_ OK
* @throws ApiError
*/
public static getAllUsingGet3(
userId: string,
pagenum: number = 1,
pagesize: number = 10,
): CancelablePromise<BaseResponse_Page_> {
return __request(OpenAPI, {
method: 'GET',
url: '/learningrecords/getall',
query: {
'pagenum': pagenum,
'pagesize': pagesize,
'userId': userId,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* saveRecords
* @param learningRecords learningRecords
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static saveRecordsUsingPost1(
learningRecords: LearningRecords,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/learningrecords/saverecords',
body: learningRecords,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* All
* @returns BaseResponse_List_LearningRecords_ OK
* @throws ApiError
*/
public static allUsingGet3(): CancelablePromise<BaseResponse_List_LearningRecords_> {
return __request(OpenAPI, {
method: 'GET',
url: '/learningrecords/all',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* deleteRecords
* @param ids ids
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
public static deleteRecordsUsingDelete3(
ids: Array<number>,
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/learningrecords/delete',
query: {
ids: ids,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
},
})
}
/**
* getAll
* @param userId userId
* @param pagenum pagenum
* @param pagesize pagesize
* @returns BaseResponse_Page_ OK
* @throws ApiError
*/
public static getAllUsingGet3(
userId: string,
pagenum: number = 1,
pagesize: number = 10,
): CancelablePromise<BaseResponse_Page_> {
return __request(OpenAPI, {
method: 'GET',
url: '/learningrecords/getall',
query: {
pagenum: pagenum,
pagesize: pagesize,
userId: userId,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* saveRecords
* @param learningRecords learningRecords
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static saveRecordsUsingPost1(
learningRecords: LearningRecords,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/learningrecords/saverecords',
body: learningRecords,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
}

@ -2,57 +2,57 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_string_ } from '../models/BaseResponse_string_';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import type { BaseResponse_string_ } from '../models/BaseResponse_string_'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
export class ResourceControllerService {
/**
* download
* @param id Id
* @param path path
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
public static downloadUsingGet1(
id: string,
path: string,
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'GET',
url: '/download',
query: {
'Id': id,
'path': path,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* upload
* @param file file
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static uploadUsingPost1(
file?: Blob,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/upload',
formData: {
'file': file,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* download
* @param id Id
* @param path path
* @returns BaseResponse_string_ OK
* @throws ApiError
*/
public static downloadUsingGet1(
id: string,
path: string,
): CancelablePromise<BaseResponse_string_> {
return __request(OpenAPI, {
method: 'GET',
url: '/download',
query: {
Id: id,
path: path,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* upload
* @param file file
* @returns BaseResponse_string_ OK
* @returns any Created
* @throws ApiError
*/
public static uploadUsingPost1(
file?: Blob,
): CancelablePromise<BaseResponse_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/upload',
formData: {
file: file,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
}

@ -2,98 +2,98 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
import type { BaseResponse_Page_CourseFavourDetailVO_ } from '../models/BaseResponse_Page_CourseFavourDetailVO_';
import type { CourseFavourAddRequest } from '../models/CourseFavourAddRequest';
import type { CourseFavourAllRequest } from '../models/CourseFavourAllRequest';
import type { CourseFavourQueryRequest } from '../models/CourseFavourQueryRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_'
import type { BaseResponse_long_ } from '../models/BaseResponse_long_'
import type { BaseResponse_Page_CourseFavourDetailVO_ } from '../models/BaseResponse_Page_CourseFavourDetailVO_'
import type { CourseFavourAddRequest } from '../models/CourseFavourAddRequest'
import type { CourseFavourAllRequest } from '../models/CourseFavourAllRequest'
import type { CourseFavourQueryRequest } from '../models/CourseFavourQueryRequest'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
export class SeCourseFavourControllerService {
/**
* doFavour
* @param courseFavourAddRequest courseFavourAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doFavourUsingPost1(
courseFavourAddRequest: CourseFavourAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_favour/add',
body: courseFavourAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* favourCount
* @param courseFavourAddRequest courseFavourAddRequest
* @returns BaseResponse_long_ OK
* @returns any Created
* @throws ApiError
*/
public static favourCountUsingPost1(
courseFavourAddRequest: CourseFavourAddRequest,
): CancelablePromise<BaseResponse_long_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_favour/count',
body: courseFavourAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* courseCount
* @param courseFavourAllRequest courseFavourAllRequest
* @returns BaseResponse_long_ OK
* @returns any Created
* @throws ApiError
*/
public static courseCountUsingPost1(
courseFavourAllRequest: CourseFavourAllRequest,
): CancelablePromise<BaseResponse_long_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_favour/countAll',
body: courseFavourAllRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* listPostByPage
* @param courseFavourQueryRequest courseFavourQueryRequest
* @returns BaseResponse_Page_CourseFavourDetailVO_ OK
* @returns any Created
* @throws ApiError
*/
public static listPostByPageUsingPost1(
courseFavourQueryRequest: CourseFavourQueryRequest,
): CancelablePromise<BaseResponse_Page_CourseFavourDetailVO_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_favour/list/page',
body: courseFavourQueryRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* doFavour
* @param courseFavourAddRequest courseFavourAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doFavourUsingPost1(
courseFavourAddRequest: CourseFavourAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_favour/add',
body: courseFavourAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* favourCount
* @param courseFavourAddRequest courseFavourAddRequest
* @returns BaseResponse_long_ OK
* @returns any Created
* @throws ApiError
*/
public static favourCountUsingPost1(
courseFavourAddRequest: CourseFavourAddRequest,
): CancelablePromise<BaseResponse_long_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_favour/count',
body: courseFavourAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* courseCount
* @param courseFavourAllRequest courseFavourAllRequest
* @returns BaseResponse_long_ OK
* @returns any Created
* @throws ApiError
*/
public static courseCountUsingPost1(
courseFavourAllRequest: CourseFavourAllRequest,
): CancelablePromise<BaseResponse_long_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_favour/countAll',
body: courseFavourAllRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* listPostByPage
* @param courseFavourQueryRequest courseFavourQueryRequest
* @returns BaseResponse_Page_CourseFavourDetailVO_ OK
* @returns any Created
* @throws ApiError
*/
public static listPostByPageUsingPost1(
courseFavourQueryRequest: CourseFavourQueryRequest,
): CancelablePromise<BaseResponse_Page_CourseFavourDetailVO_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_favour/list/page',
body: courseFavourQueryRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
}

@ -2,53 +2,53 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
import type { CourseThumbAddRequest } from '../models/CourseThumbAddRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_'
import type { BaseResponse_long_ } from '../models/BaseResponse_long_'
import type { CourseThumbAddRequest } from '../models/CourseThumbAddRequest'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
export class SeCourseThumbControllerService {
/**
* doThumb
* @param courseThumbAddRequest courseThumbAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doThumbUsingPost1(
courseThumbAddRequest: CourseThumbAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_thumb/',
body: courseThumbAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* thumbCount
* @param courseThumbAddRequest courseThumbAddRequest
* @returns BaseResponse_long_ OK
* @returns any Created
* @throws ApiError
*/
public static thumbCountUsingPost1(
courseThumbAddRequest: CourseThumbAddRequest,
): CancelablePromise<BaseResponse_long_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_thumb/count',
body: courseThumbAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* doThumb
* @param courseThumbAddRequest courseThumbAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doThumbUsingPost1(
courseThumbAddRequest: CourseThumbAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_thumb/',
body: courseThumbAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* thumbCount
* @param courseThumbAddRequest courseThumbAddRequest
* @returns BaseResponse_long_ OK
* @returns any Created
* @throws ApiError
*/
public static thumbCountUsingPost1(
courseThumbAddRequest: CourseThumbAddRequest,
): CancelablePromise<BaseResponse_long_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/course_thumb/count',
body: courseThumbAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
}

@ -2,31 +2,31 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
import type { KnowFavourAddRequest } from '../models/KnowFavourAddRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_'
import type { KnowFavourAddRequest } from '../models/KnowFavourAddRequest'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
export class SeKnowFavourControllerService {
/**
* doFavour
* @param knowFavourAddRequest knowFavourAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doFavourUsingPost3(
knowFavourAddRequest: KnowFavourAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/know_favour/add',
body: knowFavourAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* doFavour
* @param knowFavourAddRequest knowFavourAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doFavourUsingPost3(
knowFavourAddRequest: KnowFavourAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/know_favour/add',
body: knowFavourAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
}

@ -2,31 +2,31 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
import type { KnowThumbAddRequest } from '../models/KnowThumbAddRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_'
import type { KnowThumbAddRequest } from '../models/KnowThumbAddRequest'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
export class SeKnowThumbControllerService {
/**
* doThumb
* @param knowThumbAddRequest knowThumbAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doThumbUsingPost3(
knowThumbAddRequest: KnowThumbAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/know_thumb/add',
body: knowThumbAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* doThumb
* @param knowThumbAddRequest knowThumbAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doThumbUsingPost3(
knowThumbAddRequest: KnowThumbAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/know_thumb/add',
body: knowThumbAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
}

@ -2,54 +2,54 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
import type { BaseResponse_Page_CourseResources_ } from '../models/BaseResponse_Page_CourseResources_';
import type { ResourceFavourAddRequest } from '../models/ResourceFavourAddRequest';
import type { ResourceFavourQueryRequest } from '../models/ResourceFavourQueryRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_'
import type { BaseResponse_Page_CourseResources_ } from '../models/BaseResponse_Page_CourseResources_'
import type { ResourceFavourAddRequest } from '../models/ResourceFavourAddRequest'
import type { ResourceFavourQueryRequest } from '../models/ResourceFavourQueryRequest'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
export class SeResourceFavourControllerService {
/**
* doFavour
* @param resourceFavourAddRequest resourceFavourAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doFavourUsingPost5(
resourceFavourAddRequest: ResourceFavourAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/resource_favour/add',
body: resourceFavourAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* listPostByPage
* @param resourceFavourQueryRequest resourceFavourQueryRequest
* @returns BaseResponse_Page_CourseResources_ OK
* @returns any Created
* @throws ApiError
*/
public static listPostByPageUsingPost3(
resourceFavourQueryRequest: ResourceFavourQueryRequest,
): CancelablePromise<BaseResponse_Page_CourseResources_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/resource_favour/list/page',
body: resourceFavourQueryRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* doFavour
* @param resourceFavourAddRequest resourceFavourAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doFavourUsingPost5(
resourceFavourAddRequest: ResourceFavourAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/resource_favour/add',
body: resourceFavourAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* listPostByPage
* @param resourceFavourQueryRequest resourceFavourQueryRequest
* @returns BaseResponse_Page_CourseResources_ OK
* @returns any Created
* @throws ApiError
*/
public static listPostByPageUsingPost3(
resourceFavourQueryRequest: ResourceFavourQueryRequest,
): CancelablePromise<BaseResponse_Page_CourseResources_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/resource_favour/list/page',
body: resourceFavourQueryRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
}

@ -2,31 +2,31 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
import type { ResourceThumbAddRequest } from '../models/ResourceThumbAddRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_'
import type { ResourceThumbAddRequest } from '../models/ResourceThumbAddRequest'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
export class SeResourceThumbControllerService {
/**
* doThumb
* @param resourceThumbAddRequest resourceThumbAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doThumbUsingPost5(
resourceThumbAddRequest: ResourceThumbAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/resource_thumb/add',
body: resourceThumbAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* doThumb
* @param resourceThumbAddRequest resourceThumbAddRequest
* @returns BaseResponse_boolean_ OK
* @returns any Created
* @throws ApiError
*/
public static doThumbUsingPost5(
resourceThumbAddRequest: ResourceThumbAddRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/resource_thumb/add',
body: resourceThumbAddRequest,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
}

File diff suppressed because it is too large Load Diff

@ -2,265 +2,265 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_List_TeacherInfVO_ } from '../models/BaseResponse_List_TeacherInfVO_';
import type { CommonResult } from '../models/CommonResult';
import type { CommonResult_string_ } from '../models/CommonResult_string_';
import type { CommonResult_UmsAdmin_ } from '../models/CommonResult_UmsAdmin_';
import type { UmsAdmin } from '../models/UmsAdmin';
import type { UmsAdminParam } from '../models/UmsAdminParam';
import type { UmsStudentAndTeacherDTO } from '../models/UmsStudentAndTeacherDTO';
import type { UpdateAdminPasswordParam } from '../models/UpdateAdminPasswordParam';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import type { BaseResponse_List_TeacherInfVO_ } from '../models/BaseResponse_List_TeacherInfVO_'
import type { CommonResult } from '../models/CommonResult'
import type { CommonResult_string_ } from '../models/CommonResult_string_'
import type { CommonResult_UmsAdmin_ } from '../models/CommonResult_UmsAdmin_'
import type { UmsAdmin } from '../models/UmsAdmin'
import type { UmsAdminParam } from '../models/UmsAdminParam'
import type { UmsStudentAndTeacherDTO } from '../models/UmsStudentAndTeacherDTO'
import type { UpdateAdminPasswordParam } from '../models/UpdateAdminPasswordParam'
import type { CancelablePromise } from '../core/CancelablePromise'
import { OpenAPI } from '../core/OpenAPI'
import { request as __request } from '../core/request'
export class UmsAdminControllerService {
/**
*
* @param phone phone
* @returns CommonResult_string_ OK
* @returns any Created
* @throws ApiError
*/
public static sendVerifyCodeUsingPost1(
phone: string,
): CancelablePromise<CommonResult_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/code',
query: {
'phone': phone,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* username和name
* @returns BaseResponse_List_TeacherInfVO_ OK
* @throws ApiError
*/
public static getTeacherInfListUsingGet1(): CancelablePromise<BaseResponse_List_TeacherInfVO_> {
return __request(OpenAPI, {
method: 'GET',
url: '/user/get_teacherinf_list',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param name
* @returns CommonResult OK
* @throws ApiError
*/
public static getAdminInfoUsingGet1(
name?: string,
): CancelablePromise<CommonResult> {
return __request(OpenAPI, {
method: 'GET',
url: '/user/info',
query: {
'name': name,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* token
* @param umsAdmin umsAdmin
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static loginUsingPost1(
umsAdmin: UmsAdmin,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/login',
body: umsAdmin,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param id id
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static getByIdPersonalInfoUsingPost1(
id: string,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/personal/info',
query: {
'id': id,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* token
* @param phone phone
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static phoneLoginUsingPost1(
phone: string,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/phone/login',
query: {
'phone': phone,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param umsAdminParam umsAdminParam
* @returns CommonResult_UmsAdmin_ OK
* @returns any Created
* @throws ApiError
*/
public static phoneRegisterUsingPost1(
umsAdminParam: UmsAdminParam,
): CancelablePromise<CommonResult_UmsAdmin_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/phone/register',
body: umsAdminParam,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* token
* @returns CommonResult OK
* @throws ApiError
*/
public static refreshTokenUsingGet1(): CancelablePromise<CommonResult> {
return __request(OpenAPI, {
method: 'GET',
url: '/user/refreshToken',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param umsAdminParam umsAdminParam
* @returns CommonResult_UmsAdmin_ OK
* @returns any Created
* @throws ApiError
*/
public static registerUsingPost1(
umsAdminParam: UmsAdminParam,
): CancelablePromise<CommonResult_UmsAdmin_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/register',
body: umsAdminParam,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param umsadmin umsadmin
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static updateUmsUsingPost1(
umsadmin: UmsAdmin,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/update',
body: umsadmin,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param umsStudentAndTeacherDto umsStudentAndTeacherDTO
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static updatePersonalInfoUsingPost1(
umsStudentAndTeacherDto: UmsStudentAndTeacherDTO,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/update/PersonalInfo',
body: umsStudentAndTeacherDto,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param updatePasswordParam updatePasswordParam
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static updatePasswordUsingPost1(
updatePasswordParam: UpdateAdminPasswordParam,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/updatePassword',
body: updatePasswordParam,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param phone phone
* @returns CommonResult_string_ OK
* @returns any Created
* @throws ApiError
*/
public static sendVerifyCodeUsingPost1(
phone: string,
): CancelablePromise<CommonResult_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/code',
query: {
phone: phone,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* username和name
* @returns BaseResponse_List_TeacherInfVO_ OK
* @throws ApiError
*/
public static getTeacherInfListUsingGet1(): CancelablePromise<BaseResponse_List_TeacherInfVO_> {
return __request(OpenAPI, {
method: 'GET',
url: '/user/get_teacherinf_list',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
*
* @param name
* @returns CommonResult OK
* @throws ApiError
*/
public static getAdminInfoUsingGet1(
name?: string,
): CancelablePromise<CommonResult> {
return __request(OpenAPI, {
method: 'GET',
url: '/user/info',
query: {
name: name,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* token
* @param umsAdmin umsAdmin
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static loginUsingPost1(
umsAdmin: UmsAdmin,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/login',
body: umsAdmin,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
*
* @param id id
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static getByIdPersonalInfoUsingPost1(
id: string,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/personal/info',
query: {
id: id,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* token
* @param phone phone
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static phoneLoginUsingPost1(
phone: string,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/phone/login',
query: {
phone: phone,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
*
* @param umsAdminParam umsAdminParam
* @returns CommonResult_UmsAdmin_ OK
* @returns any Created
* @throws ApiError
*/
public static phoneRegisterUsingPost1(
umsAdminParam: UmsAdminParam,
): CancelablePromise<CommonResult_UmsAdmin_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/phone/register',
body: umsAdminParam,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
* token
* @returns CommonResult OK
* @throws ApiError
*/
public static refreshTokenUsingGet1(): CancelablePromise<CommonResult> {
return __request(OpenAPI, {
method: 'GET',
url: '/user/refreshToken',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
*
* @param umsAdminParam umsAdminParam
* @returns CommonResult_UmsAdmin_ OK
* @returns any Created
* @throws ApiError
*/
public static registerUsingPost1(
umsAdminParam: UmsAdminParam,
): CancelablePromise<CommonResult_UmsAdmin_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/register',
body: umsAdminParam,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
*
* @param umsadmin umsadmin
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static updateUmsUsingPost1(
umsadmin: UmsAdmin,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/update',
body: umsadmin,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
*
* @param umsStudentAndTeacherDto umsStudentAndTeacherDTO
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static updatePersonalInfoUsingPost1(
umsStudentAndTeacherDto: UmsStudentAndTeacherDTO,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/update/PersonalInfo',
body: umsStudentAndTeacherDto,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
/**
*
* @param updatePasswordParam updatePasswordParam
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static updatePasswordUsingPost1(
updatePasswordParam: UpdateAdminPasswordParam,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/user/updatePassword',
body: updatePasswordParam,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
})
}
}

@ -1,267 +1,266 @@
{
"nodes": [
{ "id": "node1", "label": "计算机", "color": "#4682B4", "classID": 0 },
{
"id": "node2",
"label": "前端",
"color": "rgba(254, 241, 0, 1)",
"classID": 1
},
{
"id": "node3",
"label": "js",
"color": "rgba(239, 242, 18, 1)",
"classID": 2
},
{
"id": "node4",
"label": "html",
"color": "rgba(230, 234, 10, 1)",
"classID": 3
},
{
"id": "node5",
"label": "css",
"color": "rgba(244, 231, 0, 1)",
"classID": 4
},
{
"id": "node6",
"label": "less",
"color": "rgba(15, 245, 57, 1)",
"classID": 5
},
{
"id": "node7",
"label": "scss",
"color": "rgba(133, 255, 11, 1)",
"classID": 6
},
{
"id": "node8",
"label": "VUE",
"color": "rgba(42, 255, 0, 1)",
"classID": 7
},
{
"id": "node9",
"label": "React",
"color": "rgba(76, 73, 245, 1)",
"classID": 8
},
{ "id": "node10", "label": "模块化", "color": "#4682B4", "classID": 9 },
{ "id": "node11", "label": "webpack", "color": "#4682B4", "classID": 10 },
{ "id": "node12", "label": "vite", "color": "#4682B4", "classID": 11 },
{
"id": "node13",
"label": "uniapp",
"color": "rgba(77, 255, 0, 1)",
"classID": 12
},
{
"id": "node14",
"label": "element",
"color": "rgba(33, 162, 255, 1)",
"classID": 13
},
{
"id": "node15",
"label": "web3",
"color": "rgba(255, 0, 251, 1)",
"classID": 14
},
{
"id": "node16",
"label": "webGl",
"color": "rgba(208, 0, 249, 1)",
"classID": 15
},
{
"id": "node17",
"label": "three",
"color": "rgba(225, 0, 255, 1)",
"classID": 16
},
{
"id": "node18",
"label": "后端",
"color": "rgba(0, 229, 255, 1)",
"classID": 17
},
{
"id": "node19",
"label": "java",
"color": "rgba(237, 229, 85, 1)",
"classID": 18
},
{
"id": "node20",
"label": "PHP",
"color": "rgba(195, 206, 215, 1)",
"classID": 19
},
{
"id": "node21",
"label": "Go",
"color": "rgba(255, 0, 0, 1)",
"classID": 20
},
{
"id": "node22",
"label": "Python",
"color": "rgba(109, 238, 180, 1)",
"classID": 21
},
{ "id": "node23", "label": "MySQL", "color": "#4682B4", "classID": 22 },
{
"id": "node24",
"label": "人工智能",
"color": "rgba(180, 5, 255, 1)",
"classID": 23
},
{
"id": "node25",
"label": "python",
"color": "rgba(255, 8, 8, 1)",
"classID": 24
},
{
"id": "node26",
"label": "AI模型",
"color": "rgba(10, 138, 244, 1)",
"classID": 25
},
{
"id": "node27",
"label": "Spring Framework",
"color": "rgba(242, 238, 14, 1)",
"classID": 26
},
{
"id": "node28",
"label": "Hibernate",
"color": "rgba(242, 238, 14, 1)",
"classID": 27
},
{
"id": "node29",
"label": "Spring MVC",
"color": "rgba(242, 238, 14, 1)",
"classID": 28
},
{
"id": "node30",
"label": "Gin",
"color": "rgba(255, 0, 0, 1)",
"classID": 29
},
{
"id": "node31",
"label": "Echo",
"color": "rgba(255, 0, 0, 1)",
"classID": 30
},
{
"id": "node32",
"label": "Beego",
"color": "rgba(255, 8, 0, 1)",
"classID": 31
},
{
"id": "node33",
"label": "Laravel",
"color": "rgba(200, 209, 217, 1)",
"classID": 32
},
{
"id": "node34",
"label": "Symfony",
"color": "rgba(182, 194, 204, 1)",
"classID": 33
},
{
"id": "node35",
"label": "CodeIgniter",
"color": "rgba(188, 197, 204, 1)",
"classID": 34
},
{
"id": "node36",
"label": "Django",
"color": "rgba(36, 245, 144, 1)",
"classID": 35
},
{
"id": "node37",
"label": "Flask",
"color": "rgba(41, 244, 176, 1)",
"classID": 36
},
{
"id": "node38",
"label": "FastAPI",
"color": "rgba(58, 244, 142, 1)",
"classID": 37
}
],
"links": [
{ "source": "node2", "target": "node3", "label": "", "classID": 0 },
{ "source": "node2", "target": "node5", "label": "", "classID": 1 },
{ "source": "node2", "target": "node4", "label": "", "classID": 2 },
{ "source": "node1", "target": "node2", "label": "前端方向", "classID": 3 },
{ "source": "node5", "target": "node6", "label": "", "classID": 4 },
{ "source": "node5", "target": "node7", "label": "", "classID": 5 },
{ "source": "node3", "target": "node8", "label": "", "classID": 6 },
{ "source": "node3", "target": "node9", "label": "", "classID": 7 },
{ "source": "node3", "target": "node10", "label": "", "classID": 8 },
{ "source": "node10", "target": "node11", "label": "", "classID": 9 },
{ "source": "node10", "target": "node12", "label": "", "classID": 10 },
{ "source": "node11", "target": "node9", "label": "", "classID": 11 },
{ "source": "node11", "target": "node8", "label": "", "classID": 12 },
{ "source": "node12", "target": "node8", "label": "", "classID": 13 },
{ "source": "node8", "target": "node13", "label": "", "classID": 14 },
{ "source": "node8", "target": "node14", "label": "", "classID": 15 },
{ "source": "node11", "target": "node13", "label": "", "classID": 16 },
{ "source": "node12", "target": "node13", "label": "", "classID": 17 },
{ "source": "node2", "target": "node15", "label": "", "classID": 18 },
{ "source": "node15", "target": "node16", "label": "", "classID": 19 },
{ "source": "node16", "target": "node17", "label": "", "classID": 20 },
{ "source": "node1", "target": "node1", "label": "", "classID": 21 },
{
"source": "node1",
"target": "node18",
"label": "后端方向",
"classID": 22
},
{ "source": "node18", "target": "node21", "label": "", "classID": 23 },
{ "source": "node18", "target": "node20", "label": "", "classID": 24 },
{ "source": "node18", "target": "node19", "label": "", "classID": 25 },
{ "source": "node18", "target": "node22", "label": "", "classID": 26 },
{ "source": "node22", "target": "node23", "label": "", "classID": 27 },
{ "source": "node19", "target": "node23", "label": "", "classID": 28 },
{ "source": "node20", "target": "node23", "label": "", "classID": 29 },
{ "source": "node21", "target": "node23", "label": "", "classID": 30 },
{
"source": "node1",
"target": "node24",
"label": "人工智能方向",
"classID": 31
},
{ "source": "node24", "target": "node25", "label": "", "classID": 32 },
{ "source": "node24", "target": "node26", "label": "", "classID": 33 },
{ "source": "node12", "target": "node9", "label": "", "classID": 34 },
{ "source": "node19", "target": "node27", "label": "", "classID": 35 },
{ "source": "node19", "target": "node28", "label": "", "classID": 36 },
{ "source": "node19", "target": "node29", "label": "", "classID": 37 },
{ "source": "node21", "target": "node30", "label": "", "classID": 38 },
{ "source": "node21", "target": "node31", "label": "", "classID": 39 },
{ "source": "node21", "target": "node32", "label": "", "classID": 40 },
{ "source": "node20", "target": "node33", "label": "", "classID": 41 },
{ "source": "node20", "target": "node34", "label": "", "classID": 42 },
{ "source": "node20", "target": "node35", "label": "", "classID": 43 },
{ "source": "node22", "target": "node36", "label": "", "classID": 44 },
{ "source": "node22", "target": "node37", "label": "", "classID": 45 },
{ "source": "node22", "target": "node38", "label": "", "classID": 46 }
]
}
"nodes": [
{ "id": "node1", "label": "计算机", "color": "#4682B4", "classID": 0 },
{
"id": "node2",
"label": "前端",
"color": "rgba(254, 241, 0, 1)",
"classID": 1
},
{
"id": "node3",
"label": "js",
"color": "rgba(239, 242, 18, 1)",
"classID": 2
},
{
"id": "node4",
"label": "html",
"color": "rgba(230, 234, 10, 1)",
"classID": 3
},
{
"id": "node5",
"label": "css",
"color": "rgba(244, 231, 0, 1)",
"classID": 4
},
{
"id": "node6",
"label": "less",
"color": "rgba(15, 245, 57, 1)",
"classID": 5
},
{
"id": "node7",
"label": "scss",
"color": "rgba(133, 255, 11, 1)",
"classID": 6
},
{
"id": "node8",
"label": "VUE",
"color": "rgba(42, 255, 0, 1)",
"classID": 7
},
{
"id": "node9",
"label": "React",
"color": "rgba(76, 73, 245, 1)",
"classID": 8
},
{ "id": "node10", "label": "模块化", "color": "#4682B4", "classID": 9 },
{ "id": "node11", "label": "webpack", "color": "#4682B4", "classID": 10 },
{ "id": "node12", "label": "vite", "color": "#4682B4", "classID": 11 },
{
"id": "node13",
"label": "uniapp",
"color": "rgba(77, 255, 0, 1)",
"classID": 12
},
{
"id": "node14",
"label": "element",
"color": "rgba(33, 162, 255, 1)",
"classID": 13
},
{
"id": "node15",
"label": "web3",
"color": "rgba(255, 0, 251, 1)",
"classID": 14
},
{
"id": "node16",
"label": "webGl",
"color": "rgba(208, 0, 249, 1)",
"classID": 15
},
{
"id": "node17",
"label": "three",
"color": "rgba(225, 0, 255, 1)",
"classID": 16
},
{
"id": "node18",
"label": "后端",
"color": "rgba(0, 229, 255, 1)",
"classID": 17
},
{
"id": "node19",
"label": "java",
"color": "rgba(237, 229, 85, 1)",
"classID": 18
},
{
"id": "node20",
"label": "PHP",
"color": "rgba(195, 206, 215, 1)",
"classID": 19
},
{
"id": "node21",
"label": "Go",
"color": "rgba(255, 0, 0, 1)",
"classID": 20
},
{
"id": "node22",
"label": "Python",
"color": "rgba(109, 238, 180, 1)",
"classID": 21
},
{ "id": "node23", "label": "MySQL", "color": "#4682B4", "classID": 22 },
{
"id": "node24",
"label": "人工智能",
"color": "rgba(180, 5, 255, 1)",
"classID": 23
},
{
"id": "node25",
"label": "python",
"color": "rgba(255, 8, 8, 1)",
"classID": 24
},
{
"id": "node26",
"label": "AI模型",
"color": "rgba(10, 138, 244, 1)",
"classID": 25
},
{
"id": "node27",
"label": "Spring Framework",
"color": "rgba(242, 238, 14, 1)",
"classID": 26
},
{
"id": "node28",
"label": "Hibernate",
"color": "rgba(242, 238, 14, 1)",
"classID": 27
},
{
"id": "node29",
"label": "Spring MVC",
"color": "rgba(242, 238, 14, 1)",
"classID": 28
},
{
"id": "node30",
"label": "Gin",
"color": "rgba(255, 0, 0, 1)",
"classID": 29
},
{
"id": "node31",
"label": "Echo",
"color": "rgba(255, 0, 0, 1)",
"classID": 30
},
{
"id": "node32",
"label": "Beego",
"color": "rgba(255, 8, 0, 1)",
"classID": 31
},
{
"id": "node33",
"label": "Laravel",
"color": "rgba(200, 209, 217, 1)",
"classID": 32
},
{
"id": "node34",
"label": "Symfony",
"color": "rgba(182, 194, 204, 1)",
"classID": 33
},
{
"id": "node35",
"label": "CodeIgniter",
"color": "rgba(188, 197, 204, 1)",
"classID": 34
},
{
"id": "node36",
"label": "Django",
"color": "rgba(36, 245, 144, 1)",
"classID": 35
},
{
"id": "node37",
"label": "Flask",
"color": "rgba(41, 244, 176, 1)",
"classID": 36
},
{
"id": "node38",
"label": "FastAPI",
"color": "rgba(58, 244, 142, 1)",
"classID": 37
}
],
"links": [
{ "source": "node2", "target": "node3", "label": "", "classID": 0 },
{ "source": "node2", "target": "node5", "label": "", "classID": 1 },
{ "source": "node2", "target": "node4", "label": "", "classID": 2 },
{ "source": "node1", "target": "node2", "label": "前端方向", "classID": 3 },
{ "source": "node5", "target": "node6", "label": "", "classID": 4 },
{ "source": "node5", "target": "node7", "label": "", "classID": 5 },
{ "source": "node3", "target": "node8", "label": "", "classID": 6 },
{ "source": "node3", "target": "node9", "label": "", "classID": 7 },
{ "source": "node3", "target": "node10", "label": "", "classID": 8 },
{ "source": "node10", "target": "node11", "label": "", "classID": 9 },
{ "source": "node10", "target": "node12", "label": "", "classID": 10 },
{ "source": "node11", "target": "node9", "label": "", "classID": 11 },
{ "source": "node11", "target": "node8", "label": "", "classID": 12 },
{ "source": "node12", "target": "node8", "label": "", "classID": 13 },
{ "source": "node8", "target": "node13", "label": "", "classID": 14 },
{ "source": "node8", "target": "node14", "label": "", "classID": 15 },
{ "source": "node11", "target": "node13", "label": "", "classID": 16 },
{ "source": "node12", "target": "node13", "label": "", "classID": 17 },
{ "source": "node2", "target": "node15", "label": "", "classID": 18 },
{ "source": "node15", "target": "node16", "label": "", "classID": 19 },
{ "source": "node16", "target": "node17", "label": "", "classID": 20 },
{ "source": "node1", "target": "node1", "label": "", "classID": 21 },
{
"source": "node1",
"target": "node18",
"label": "后端方向",
"classID": 22
},
{ "source": "node18", "target": "node21", "label": "", "classID": 23 },
{ "source": "node18", "target": "node20", "label": "", "classID": 24 },
{ "source": "node18", "target": "node19", "label": "", "classID": 25 },
{ "source": "node18", "target": "node22", "label": "", "classID": 26 },
{ "source": "node22", "target": "node23", "label": "", "classID": 27 },
{ "source": "node19", "target": "node23", "label": "", "classID": 28 },
{ "source": "node20", "target": "node23", "label": "", "classID": 29 },
{ "source": "node21", "target": "node23", "label": "", "classID": 30 },
{
"source": "node1",
"target": "node24",
"label": "人工智能方向",
"classID": 31
},
{ "source": "node24", "target": "node25", "label": "", "classID": 32 },
{ "source": "node24", "target": "node26", "label": "", "classID": 33 },
{ "source": "node12", "target": "node9", "label": "", "classID": 34 },
{ "source": "node19", "target": "node27", "label": "", "classID": 35 },
{ "source": "node19", "target": "node28", "label": "", "classID": 36 },
{ "source": "node19", "target": "node29", "label": "", "classID": 37 },
{ "source": "node21", "target": "node30", "label": "", "classID": 38 },
{ "source": "node21", "target": "node31", "label": "", "classID": 39 },
{ "source": "node21", "target": "node32", "label": "", "classID": 40 },
{ "source": "node20", "target": "node33", "label": "", "classID": 41 },
{ "source": "node20", "target": "node34", "label": "", "classID": 42 },
{ "source": "node20", "target": "node35", "label": "", "classID": 43 },
{ "source": "node22", "target": "node36", "label": "", "classID": 44 },
{ "source": "node22", "target": "node37", "label": "", "classID": 45 },
{ "source": "node22", "target": "node38", "label": "", "classID": 46 }
]
}

File diff suppressed because it is too large Load Diff

@ -1,42 +1,38 @@
import request from '@/utils/request'
/**
*
*/
export function getAssApi(params: {
page: number,
pageSize: number,
resourceIdList: string,
type: 1 | 2 | 3 | 4 | 5,
page: number
pageSize: number
resourceIdList: string
type: 1 | 2 | 3 | 4 | 5
userId: string
}) {
return request.get('/Favour/get', {
params
params,
})
}
/**
*
* @param par
* @param par
*/
export function aaaApi(par: any) {
if (par) return request.get(`url${par}`)
else return request.get(`url`)
}
export const uploadFile = (data: any) => {
return request({
url: '/upload',
method: "POST",
data
method: 'POST',
data,
})
}
/**
*
* @returns
@ -67,33 +63,33 @@ export function getOrogramObjectiveApi() {
})
}
// 获取课程列表
export const getCourseList = (params:any) => {
export const getCourseList = (params: any) => {
return request({
url: '/course_objectives/list/' + params.id,
params
params,
})
}
// 添加分目标
export const addCourse = (data:any) => {
export const addCourse = (data: any) => {
return request({
url:'/objective_contents/addcontent',
method:"POST",
data
url: '/objective_contents/addcontent',
method: 'POST',
data,
})
}
// 编辑目标
export const editCourse = (data: any) => {
return request({
url: '/objective_contents/update',
method: "PUT",
data
method: 'PUT',
data,
})
}
//删除课程目标
export const deleteCourse = (params: any) => {
return request({
url: '/objective_contents/' + params.id,
method: "DELETE",
method: 'DELETE',
})
}
// /objective_contents/
@ -101,7 +97,7 @@ export const deleteCourse = (params: any) => {
export const getCourseInfo = (params: any) => {
return request({
url: '/objective_contents/' + params.id,
method: "get",
params
method: 'get',
params,
})
}
}

@ -4,7 +4,5 @@ export const getRecordListService = (params) =>
request.get('/learningrecords/getall', { params })
//删除浏览记录
export function DelRecordService(ids) {
return request.delete(
`h/learningrecords/delete?ids=${ids}`,
)
}
return request.delete(`h/learningrecords/delete?ids=${ids}`)
}

@ -43,19 +43,17 @@
<script lang="ts" setup>
import { onMounted, watch } from 'vue'
import useLayoutSettingStoe from '@/store/modules/setting'
import permissionStore from '@/store/modules/permission'
//
import { useRoute } from 'vue-router'
import Tabbar from './tabbar/index.vue'
import LoGo from './logo/index.vue'
import Menu from './menu/index.vue'
import {constantRoute} from '@/router/routers'
import { constantRoute } from '@/router/routers'
//
// import userUserStore from '@/store/modules/user'
// import { onMounted, reactive, ref, toRefs, watch } from 'vue'
import Main from './main/index.vue'
const LayoutSettingStoe = useLayoutSettingStoe()
const usePermissionStore = permissionStore()
// const userStore = userUserStore()
const $route = useRoute()

@ -13,7 +13,7 @@
<el-button size="small" icon="FullScreen" circle @click="fullScreen" />
<el-button size="small" icon="Setting" circle />
<img
:src="userStore.avatar"
src=""
alt=""
style="width: 24px; height: 24px; margin: 0 10px; border-radius: 50%"
/>

@ -22,14 +22,14 @@ const app = createApp(App)
//持久化
import gloablComponent from '@/components/index'
import 'echarts'
import ECharts from 'vue-echarts';
import 'echarts'
import ECharts from 'vue-echarts'
// 导入jquery
// import $ from 'jquery'
app.use(gloablComponent)
// 注册仓库
app.use(pinia)
app.component('ECharts',ECharts)
app.component('ECharts', ECharts)
// 安装element插件
app.use(ElementPlus, {
locale: zhCn, //使用中文

@ -68,7 +68,7 @@ router.beforeEach(async (to, form, next) => {
// console.log(to, 'to')
// next()
// })
router.afterEach((to, form, next) => {
router.afterEach(() => {
nprogress.done()
})
export default router

@ -1,6 +1,6 @@
// 导入路由插件
import { createRouter, createWebHashHistory } from 'vue-router'
import {constantRoute} from './routers.ts'
import { constantRoute } from './routers.ts'
const routerList = [
{
path: '/login',
@ -14,7 +14,7 @@ const routerList = [
]
const router = createRouter({
history: createWebHashHistory(),
routes: [...routerList,...constantRoute],
routes: [...routerList, ...constantRoute],
scrollBehavior() {
return {
left: 0,

@ -1,9 +1,9 @@
// 创建用户相关的仓库
import { defineStore } from 'pinia'
// 引入登录接口
import { reqLogin, getUserInfo } from '@/api/user/index'
// import { reqLogin, getUserInfo } from '@/api/user/index'
// 引入登录参数类型
import { loginType, loginResponseType } from '@/api/user/types'
import { loginType } from '@/api/user/types'
// 引入ElementPlus通知插件
import { ElMessage, ElNotification } from 'element-plus'
import { getTime } from '@/utils/time'
@ -24,6 +24,8 @@ import {
const useUserStore = defineStore(
'User',
{
// @ts-expect-error
state: (): LoginStoreType => {
return {
token: GET_TKOEN('TOKEN') || '',
@ -31,23 +33,25 @@ const useUserStore = defineStore(
userName: '', // 用户姓名
avatar: '', // 用户头像
routes: '',
phone: '',
userInfo: {}, // 当前用户相关信息
data: {},
}
},
actions: {
// 登录事件
async userLogin(data: loginType) {
async userLogin(data: any) {
// console.log(data, 'pinia')
const res: loginResponseType = await userLoginService(data).catch(
(error) => {
ElMessage.error(error.response.data.message)
console.log(error, 'error')
},
)
const res: any = await userLoginService(data).catch((error) => {
ElMessage.error(error.response.data.message)
console.log(error, 'error')
})
if (res.code === 200) {
// @ts-expect-error
this.token = res.data.token as string
// @ts-expect-error
SET_TKOEN('TOKEN', this.token)
// localStorage.setItem('TOKEN', this.token)
@ -69,10 +73,14 @@ const useUserStore = defineStore(
},
//手机号登录
async userPhoneLogin(data: loginType) {
const res: loginResponseType = await userPhoneLoginService(data)
const res: any = await userPhoneLoginService(data)
console.log(res, 11111)
if (res.code === 200) {
// @ts-expect-error
this.token = res.data.token as string //接收返回的token
// @ts-expect-error
SET_TKOEN('TOKEN', this.token)
// localStorage.setItem('TOKEN', this.token)
ElNotification({
@ -91,16 +99,24 @@ const useUserStore = defineStore(
},
// 获取用户信息事件
async getUserInfo() {
const result = await userGetInfoService(GET_TKOEN('TOKEN'))
const result: any = await userGetInfoService(GET_TKOEN('TOKEN'))
if (result.code === 200) {
const res = await userIdenService(result.data.id)
// @ts-expect-error
this.userInfo = res.data
// console.log(this.userInfo, 'this.userInfo')
// @ts-expect-error
this.data = result.data
console.log(result, '123')
// @ts-expect-error
this.userName = result.data.username
// this.avatar = result.data.checkUser.avatar
this.routes = result.data.menus.map((item) => {
// @ts-expect-error
this.routes = result.data.menus.map((item: any) => {
return item.name
})
return {
@ -117,9 +133,17 @@ const useUserStore = defineStore(
// 清除token
REMOVE_TOKEN('TOKEN'),
// ;(this.userName = ''), (this.avatar = '')
// @ts-expect-error
(this.userName = ''),
// @ts-expect-error
(this.avatar = '')
// @ts-expect-error
this.token = ''
// @ts-expect-error
this.routes = ''
usePermissionStore.removeRouter()
location.reload()

@ -1,93 +1,88 @@
<template>
<el-tab-pane label="知识点收藏" name="third">
<div class="Container_Kno">
<div class="item_3 noUpd" v-for="item_3 in arr" :onclick="handClick" :key="item_3.id">
<div>
<div class="KnowledgeCollent">
<div class="KnoCon">
<h4>{{ item_3.name }}</h4>
<p>{{ item_3.num }}-{{item_3.zjname}}</p>
</div>
<div class="KnoBtn">
<img class="cli" src="../../assets/icons/更多.svg" />
</div>
</div>
<div class="Knowledge_point">
<ul>
<li v-for="(item, index) in 5" :key="index">
&nbsp;
{{ index + 1 }}. 知识点知识点知识点
&nbsp;
<span class="btn">×</span>
&nbsp;
</li>
</ul>
</div>
</div>
<el-tab-pane label="知识点收藏" name="third">
<div class="Container_Kno">
<div
class="item_3 noUpd"
v-for="item_3 in arr"
:onclick="handClick"
:key="item_3.id"
>
<div>
<div class="KnowledgeCollent">
<div class="KnoCon">
<h4>{{ item_3.name }}</h4>
<p>{{ item_3.num }}-{{ item_3.zjname }}</p>
</div>
<div class="KnoBtn">
<img class="cli" src="../../assets/icons/更多.svg" />
</div>
</div>
<div class="Knowledge_point">
<ul>
<li v-for="(item, index) in 5" :key="index">
&nbsp;
{{ index + 1 }}. 知识点知识点知识点 &nbsp;
<span class="btn">×</span>
&nbsp;
</li>
</ul>
</div>
</el-tab-pane>
</div>
</div>
</div>
</el-tab-pane>
</template>
<script setup>
import {ref,reactive} from 'vue'
import { ref, reactive } from 'vue'
function handClick(e){
if(e.target.classList.contains('cli')){
this.classList.toggle('noUpd')
function handClick(e) {
if (e.target.classList.contains('cli')) {
this.classList.toggle('noUpd')
}
}
const arr = reactive([])
const a =[
const a = [
{
id:1,
name:"操作系统",
num:1,
zjname:'操作系统引论',
zsd:[
"sadas",
"asdadsad",
"asdasdas",
]
id: 1,
name: '操作系统',
num: 1,
zjname: '操作系统引论',
zsd: ['sadas', 'asdadsad', 'asdasdas'],
},
{
id:2,
name:"跨文化交际",
num:1,
id: 2,
name: '跨文化交际',
num: 1,
},
{
id:3,
name:"软件项目管理",
num:1,
id: 3,
name: '软件项目管理',
num: 1,
},
{
id:4,
name:"英语课",
num:1,
id: 4,
name: '英语课',
num: 1,
},
]
arr.length=0
arr.length = 0
arr.push(...a)
const ShowDel = ref(false)
function XsDel(id){
const item = arr.find(o=>o.a.id==id)
const ShowDel = ref(false)
function XsDel(id) {
const item = arr.find((o) => o.a.id == id)
item.ShowDel = !item.ShowDel
}
</script>
<style lang="scss" scoped>
.btn{
.btn {
display: inline-block;
}
.item_3.noUpd{
.btn{
display: none;
}
.item_3.noUpd {
.btn {
display: none;
}
}
.Container_Kno {
@ -127,7 +122,7 @@ function XsDel(id){
justify-content: space-around;
}
.KnoBtn>img {
.KnoBtn > img {
padding-top: 20px;
cursor: pointer;
}
@ -155,7 +150,7 @@ function XsDel(id){
flex-direction: column;
}
.Knowledge_point>ul>li {
.Knowledge_point > ul > li {
display: inline-block;
margin-top: 3px;
margin-bottom: 3px;
@ -173,4 +168,4 @@ function XsDel(id){
cursor: pointer;
color: rgb(15, 57, 76);
}
</style>
</style>

@ -153,7 +153,7 @@ import { ref, watch } from 'vue'
import type { TabsPaneContext } from 'element-plus'
import ContainerCla from './ContainerCla.vue'
import ContainerKno from './ContainerKno.vue'
import { getAssApi } from '@/api/courseChaptersApi'
// import { getAssApi } from '@/api/courseChaptersApi'
import { SeResourceFavourControllerService } from '../../../generated/services/SeResourceFavourControllerService'
const centerDialogVisible = ref(false)
@ -176,10 +176,10 @@ const currentPage1 = ref(1)
const pageSize1 = ref(10)
const disabled = ref(false)
const handleSizeChange = (val: number) => {
const handleSizeChange = () => {
getDatalist()
}
const handleCurrentChange = (val: number) => {
const handleCurrentChange = () => {
getDatalist()
}
@ -189,7 +189,7 @@ function initFenYie() {
pageSize1.value = 10
}
watch(activeIndex, (newVal) => {
watch(activeIndex, () => {
initFenYie()
getDatalist()
})

@ -19,7 +19,7 @@ function _callSuper(t, o, e) {
}
function _isNativeReflectConstruct() {
try {
var t = !Boolean.prototype.valueOf.call(
let t = !Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {}),
)
} catch (t) {}
@ -190,7 +190,7 @@ function _unsupportedIterableToArray(o, minLen) {
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]
for (let i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]
return arr2
}
function _nonIterableSpread() {

File diff suppressed because it is too large Load Diff

@ -10,6 +10,7 @@ import ForceGraph3D from '3d-force-graph'
import {
CSS2DRenderer,
CSS2DObject,
//@ts-expect-error
} from 'three/examples/jsm/renderers/CSS2DRenderer.js'
//@ts-ignore
import SpriteText from '../spritetext.js'
@ -134,6 +135,7 @@ const setLabel = () => {
Graph.linkPositionUpdate((sprite, { start, end }) => {
//@ts-ignore
const middlePos = Object.assign(
//@ts-expect-error
...['x', 'y', 'z'].map((c) => ({
//@ts-ignore
[c]: start[c] + (end[c] - start[c]) / 2, // calc middle point

@ -71,16 +71,20 @@
<!-- </div> -->
<div class="box" style="width: 100%;
height: 20%;
/* background-color: #3374ff; */
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-around;
/* background-color: #74a5ff; */
">
<div
class="box"
style="
width: 100%;
height: 20%;
/* background-color: #3374ff; */
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-around;
/* background-color: #74a5ff; */
"
>
<!-- <p style="font-size: 14px;color: #6B6B6B;">总学时 {{ item.totalHours }}小时</p>
<p style="font-size: 14px;color: #6B6B6B;">总学分 {{item.credit}}</p>
<p style="font-size: 14px;color: #6B6B6B;">章节数 xxx章</p>
@ -97,7 +101,10 @@
<div class="a" style="margin-left: 0px; color: #6b6b6b">
章节数 {{ item.totalchapter }}
</div>
<div class="a" style="margin-left: 29%;color: #6b6b6b;padding-left: 4%;" >
<div
class="a"
style="margin-left: 29%; color: #6b6b6b; padding-left: 4%"
>
知识点总数 {{ item.totalKnow }}
</div>
@ -115,17 +122,21 @@
</div>
<!-- </div> -->
<div class="box" style="width: 100%;
height: 20%;
/* background-color: #3374ff; */
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-around;
/* background-color: #74a5ff; */
">
<div
<div
class="box"
style="
width: 100%;
height: 20%;
/* background-color: #3374ff; */
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-around;
/* background-color: #74a5ff; */
"
>
<div
class="a"
style="margin-left: 0px; width: 62%; color: aliceblue"
>
@ -137,7 +148,10 @@
<div class="a" style="margin-left: 0px; color: aliceblue">
章节数 {{ item.totalchapter }}
</div>
<div class="a" style="margin-left: 29%;color: aliceblue;padding-left: 4%;" >
<div
class="a"
style="margin-left: 29%; color: aliceblue; padding-left: 4%"
>
知识点总数 {{ item.totalKnow }}
</div>
<!-- <p style="font-size: 14px;">总学时 {{ item.totalHours }}小时</p>
@ -166,13 +180,11 @@
</div>
</div>
<div class="con"></div>
<!-- 连接后端时可以去掉注释 -->
<!-- 连接后端时可以去掉注释 -->
<div class="but" v-if="!noMoreData" @click="loadItems">
{{ buttonFlag ? '正在加载...' : '加载更多' }}
</div>
<p v-else class="cont">数据全部加载完成</p>
</div>
<!-- 底部 -->
@ -194,10 +206,10 @@
<script lang="ts" setup>
//
import axios from 'axios'
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue'
// import axios from 'axios'
import { ref } from 'vue'
import { getPageCourses } from '@/api/user/crouse.js'
import { autoResetRef } from '@vueuse/core'
// import { autoResetRef } from '@vueuse/core'
// export default{
const containerRef = ref(null)
// const items = ref([{
@ -211,12 +223,12 @@ const date = ref({
// const loading = ref(false)
const page = ref(date.value.page)
const main = ref<any>(null)
const buttonColor = ref('red')
// const buttonColor = ref('red')
const userList = ref<any>([])
// let count = 0
const showLoadMoreButton = ref(false)
// const showLoadMoreButton = ref(false)
const noMoreData = ref(false)
const isLoading = ref(false)
// const isLoading = ref(false)
const buttonFlag = ref(false)
const loadItems = async () => {
// isLoading.value = true
@ -231,19 +243,16 @@ const loadItems = async () => {
console.log(userList.value, response.data.content)
}
const loadMore = () => {
date.value.page = page.value++
if (date.value.page <= 2) {
loadItems()
}
}
const handleScroll = () => {
const container: any = containerRef.value
console.log(
container.scrollTop,
container.clientHeight,
@ -256,23 +265,16 @@ const handleScroll = () => {
) {
console.log('到底了')
if (buttonFlag.value) {
return alert('正在加载请勿重复滑动')
} else {
loadMore()
}
}
}
loadMore()
</script>
<style lang="scss" scoped>
.container-box {
height: 700px;
@ -478,16 +480,16 @@ img {
height: 30%;
// background-color: #3374ff;
display: flex;
flex-direction: row;
flex-wrap: wrap;
// background-color: #74a5ff;
justify-content: space-around;
flex-direction: row;
flex-wrap: wrap;
// background-color: #74a5ff;
justify-content: space-around;
}
.content .txt .box .a {
width: 39%;
height: 30%;
text-align: center;
font-size:clamp(0.7rem, 0.489rem + 0.4vw, 2rem);
font-size: clamp(0.7rem, 0.489rem + 0.4vw, 2rem);
// float: left;
// margin-top: 10px;
// margin-left: 40px;

@ -1,5 +1,6 @@
{
"compilerOptions": {
"allowJs": true,
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",

Loading…
Cancel
Save