forked from pyia8e6p9/student_system
Compare commits
No commits in common. 'main' and 'master' have entirely different histories.
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<annotationProcessing>
|
||||
<profile name="Maven default annotation processors profile" enabled="true">
|
||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="springboot" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
<component name="JavacSettings">
|
||||
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
|
||||
<module name="springboot" options="-parameters" />
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||
<data-source source="LOCAL" name="@localhost" uuid="d9c923b3-7642-40d2-b8c1-162a4545fb09">
|
||||
<driver-ref>mysql.8</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
||||
<jdbc-url>jdbc:mysql://localhost:3306</jdbc-url>
|
||||
<jdbc-additional-properties>
|
||||
<property name="com.intellij.clouds.kubernetes.db.host.port" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.container.port" />
|
||||
</jdbc-additional-properties>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/springboot/src/main/java" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="public" />
|
||||
<option name="name" value="aliyun nexus" />
|
||||
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="MavenProjectsManager">
|
||||
<option name="originalFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/springboot/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="workspaceImportForciblyTurnedOn" value="true" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/student.iml" filepath="$PROJECT_DIR$/.idea/student.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
|
After Width: | Height: | Size: 24 KiB |
@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.example</groupId>
|
||||
<artifactId>springboot</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.5.9</version>
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<java.version>1.8</java.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--mysql-->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.mybatis.spring.boot</groupId>
|
||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||||
<version>2.2.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.pagehelper</groupId>
|
||||
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
||||
<version>1.4.6</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.8.18</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<fork>true</fork>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>public</id>
|
||||
<name>aliyun nexus</name>
|
||||
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
</repository>
|
||||
</repositories>
|
||||
</project>
|
||||
@ -0,0 +1,16 @@
|
||||
package com.example;
|
||||
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
@MapperScan("com.example.mapper")
|
||||
public class SpringbootApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SpringbootApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.example.common;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.cors.CorsConfiguration;
|
||||
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
|
||||
import org.springframework.web.filter.CorsFilter;
|
||||
|
||||
/**
|
||||
* 跨域配置
|
||||
*/
|
||||
@Configuration
|
||||
public class CorsConfig {
|
||||
|
||||
@Bean
|
||||
public CorsFilter corsFilter() {
|
||||
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
|
||||
CorsConfiguration corsConfiguration = new CorsConfiguration();
|
||||
corsConfiguration.addAllowedOrigin("*"); // 1 设置访问源地址
|
||||
corsConfiguration.addAllowedHeader("*"); // 2 设置访问源请求头
|
||||
corsConfiguration.addAllowedMethod("*"); // 3 设置访问源请求方法
|
||||
source.registerCorsConfiguration("/**", corsConfiguration); // 4 对接口配置跨域设置
|
||||
return new CorsFilter(source);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.example.common;
|
||||
|
||||
public class Result {
|
||||
private String code;
|
||||
private String msg;
|
||||
private Object data;
|
||||
|
||||
private Result(Object data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public Result() {
|
||||
}
|
||||
|
||||
public static Result success() {
|
||||
Result result = new Result();
|
||||
result.setCode("200");
|
||||
result.setMsg("请求成功");
|
||||
return result;
|
||||
}
|
||||
|
||||
public static Result success(Object data) {
|
||||
Result result = success();
|
||||
result.setData(data);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static Result error() {
|
||||
Result result = new Result();
|
||||
result.setCode("500");
|
||||
result.setMsg("请求失败");
|
||||
return result;
|
||||
}
|
||||
|
||||
public static Result error(String msg) {
|
||||
Result result = new Result();
|
||||
result.setCode("500");
|
||||
result.setMsg(msg);
|
||||
return result;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Object getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Object data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
package com.example.common;
|
||||
|
||||
public enum RoleEnum {
|
||||
ADMIN, // 管理员
|
||||
STUDENT // 学生
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
package com.example.controller;
|
||||
|
||||
import com.example.common.Result;
|
||||
import com.example.entity.Course;
|
||||
import com.example.service.CourseService;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/course")
|
||||
public class CourseController {
|
||||
|
||||
@Resource
|
||||
private CourseService courseService;
|
||||
/**
|
||||
* 分页条件查询课程
|
||||
*/
|
||||
@GetMapping("/selectPage")
|
||||
public Result selectPage(@RequestParam(defaultValue = "1") Integer pageNum,
|
||||
@RequestParam(defaultValue = "5") Integer pageSize,
|
||||
Course course){
|
||||
PageInfo<Course> pageInfo = courseService.selectPage(pageNum, pageSize,course);
|
||||
return Result.success(pageInfo);
|
||||
}
|
||||
/**
|
||||
* 新增课程
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
public Result add(@RequestBody Course course){
|
||||
courseService.add(course);
|
||||
return Result.success();
|
||||
}
|
||||
/**
|
||||
* 更新课程
|
||||
*/
|
||||
@PutMapping("/update")
|
||||
public Result update(@RequestBody Course course){
|
||||
courseService.updateById(course);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除课程
|
||||
*/
|
||||
@DeleteMapping("/delete/{id}")
|
||||
public Result delete(@PathVariable Integer id){
|
||||
courseService.deleteById(id);
|
||||
return Result.success();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package com.example.controller;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import com.example.common.Result;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.ServletOutputStream;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/files")
|
||||
//上传
|
||||
public class FileController {
|
||||
|
||||
@Value("${ip}")
|
||||
private String ip;
|
||||
|
||||
@Value("${server.port}")
|
||||
private String port;
|
||||
|
||||
private static final String ROOT_PATH =System.getProperty("user.dir")+"/files";
|
||||
|
||||
@PostMapping("/upload")
|
||||
public Result upload(MultipartFile file) throws IOException {
|
||||
String originalFilename=file.getOriginalFilename();//文件名
|
||||
long flag=System.currentTimeMillis();
|
||||
String fileName=flag+"_"+originalFilename;
|
||||
|
||||
File finalFile = new File(ROOT_PATH + "/" + fileName);
|
||||
if (!finalFile.getParentFile().exists()){
|
||||
finalFile.getParentFile().mkdirs();
|
||||
}
|
||||
file.transferTo(finalFile);
|
||||
//返回url
|
||||
|
||||
String url ="http://" + ip +":" + port +"/files/download?fileName=" + fileName;
|
||||
|
||||
|
||||
return Result.success(url);
|
||||
}
|
||||
@GetMapping("/download")
|
||||
public void download(String fileName, HttpServletResponse response) throws IOException {
|
||||
File file = new File(ROOT_PATH + "/" + fileName); // 文件在存盘存储的对象
|
||||
ServletOutputStream os = response.getOutputStream();
|
||||
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, "UTF-8"));
|
||||
response.setContentType("application/octet-stream");
|
||||
// os.write(FileUtil.readBytes(file));
|
||||
FileUtil.writeToStream(file, os);
|
||||
os.flush();
|
||||
os.close();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package com.example.controller;
|
||||
|
||||
import com.example.common.Result;
|
||||
import com.example.entity.Grade;
|
||||
import com.example.service.GradeService;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 成绩接口
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/grade")
|
||||
public class GradeController {
|
||||
|
||||
@Resource
|
||||
GradeService gradeService;
|
||||
|
||||
|
||||
@PostMapping("/add")
|
||||
public Result add(@RequestBody Grade grade) {
|
||||
gradeService.add(grade);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
public Result update(@RequestBody Grade grade) {
|
||||
gradeService.update(grade);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除成绩
|
||||
*/
|
||||
@DeleteMapping("/delete/{id}")
|
||||
public Result delete(@PathVariable Integer id) {
|
||||
gradeService.deleteById(id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页条件查询课程
|
||||
*/
|
||||
@GetMapping("/selectPage")
|
||||
public Result selectPage(@RequestParam(defaultValue = "1") Integer pageNum,
|
||||
@RequestParam(defaultValue = "5") Integer pageSize,
|
||||
Grade grade) { // ?name=xx&no=xx
|
||||
PageInfo<Grade> pageInfo = gradeService.selectPage(pageNum, pageSize, grade);
|
||||
return Result.success(pageInfo);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.example.controller;
|
||||
|
||||
import com.example.common.Result;
|
||||
import com.example.entity.Student;
|
||||
import com.example.service.StudentService;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/student")
|
||||
public class StudentController {
|
||||
|
||||
@Resource
|
||||
StudentService studentService;
|
||||
|
||||
@PostMapping("/add")
|
||||
public Result add(@RequestBody Student student) {
|
||||
studentService.add(student);
|
||||
return Result.success();
|
||||
}
|
||||
@DeleteMapping("/delete/{id}")
|
||||
public Result delete(@PathVariable Integer id) {
|
||||
studentService.deleteById(id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@PutMapping ("/update")
|
||||
public Result update(@RequestBody Student student) {
|
||||
studentService.updateById(student);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
@GetMapping ("/selectPage")
|
||||
public Result selectPage(@RequestParam(defaultValue = "1")Integer pageNum,
|
||||
@RequestParam(defaultValue = "10")Integer pageSize,
|
||||
Student student) {
|
||||
PageInfo<Student>pageInfo = studentService.selectPage(pageNum,pageSize,student);
|
||||
return Result.success(pageInfo);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.example.controller;
|
||||
|
||||
import com.example.common.Result;
|
||||
import com.example.entity.Course;
|
||||
import com.example.entity.StudentCourse;
|
||||
import com.example.service.StudentCourseService;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/studentCourse")
|
||||
public class StudentCourseController {
|
||||
|
||||
@Resource
|
||||
StudentCourseService studentCourseService;
|
||||
|
||||
/**
|
||||
* 学生选课
|
||||
*/
|
||||
|
||||
@PostMapping("/add")
|
||||
public Result add(@RequestBody StudentCourse studentCourse) {
|
||||
|
||||
studentCourseService.add(studentCourse);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除选课
|
||||
*/
|
||||
@DeleteMapping("/delete/{id}")
|
||||
public Result delete(@PathVariable Integer id){
|
||||
studentCourseService.deleteById(id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页条件查询课程
|
||||
*/
|
||||
@GetMapping("/selectPage")
|
||||
public Result selectPage(@RequestParam(defaultValue = "1") Integer pageNum,
|
||||
@RequestParam(defaultValue = "5") Integer pageSize,
|
||||
StudentCourse studentCourse){
|
||||
PageInfo<StudentCourse> pageInfo = studentCourseService.selectPage(pageNum, pageSize,studentCourse);
|
||||
return Result.success(pageInfo);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.example.controller;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.example.common.Result;
|
||||
|
||||
import com.example.common.RoleEnum;
|
||||
import com.example.entity.Account;
|
||||
import com.example.entity.Admin;
|
||||
import com.example.service.AdminService;
|
||||
|
||||
import com.example.service.StudentService;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
public class WebController {
|
||||
|
||||
@Resource
|
||||
private AdminService adminService;
|
||||
|
||||
@Resource
|
||||
private StudentService studentService;
|
||||
|
||||
/**
|
||||
* 默认请求接口
|
||||
*/
|
||||
@GetMapping("/")
|
||||
public Result hello() {
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 登录接口
|
||||
*/
|
||||
@PostMapping("/login")
|
||||
public Result login(@RequestBody Account account) {
|
||||
Account dbAccount;
|
||||
if (RoleEnum.ADMIN.name().equals(account.getRole())) { // 管理员登录
|
||||
dbAccount = adminService.login(account);
|
||||
} else if (RoleEnum.STUDENT.name().equals(account.getRole())) { // 学生登录
|
||||
dbAccount = studentService.login(account);
|
||||
} else {
|
||||
return Result.error("角色错误");
|
||||
}
|
||||
return Result.success(dbAccount);
|
||||
}
|
||||
|
||||
@PostMapping("/register")
|
||||
public Result register(@RequestBody Account account) {
|
||||
if (ObjectUtil.isEmpty(account.getUsername()) || ObjectUtil.isEmpty(account.getPassword())) {
|
||||
return Result.error("账号或密码必填");
|
||||
}
|
||||
studentService.register(account);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
package com.example.entity;
|
||||
|
||||
public class Account {
|
||||
private String username;
|
||||
private String password;
|
||||
private String name;
|
||||
|
||||
private String role;
|
||||
|
||||
public String getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(String role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package com.example.entity;
|
||||
|
||||
public class Admin extends Account {
|
||||
private Integer id;
|
||||
// 账号
|
||||
private String username;
|
||||
// 密码
|
||||
private String password;
|
||||
private String name;
|
||||
|
||||
private String role;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRole(String role) {
|
||||
this.role = role;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package com.example.entity;
|
||||
|
||||
public class Course {
|
||||
private Integer id;
|
||||
private String name;
|
||||
private String no;
|
||||
private String descr;
|
||||
private String times;
|
||||
private String teacher;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNo() {
|
||||
return no;
|
||||
}
|
||||
|
||||
public void setNo(String no) {
|
||||
this.no = no;
|
||||
}
|
||||
|
||||
public String getDescr() {
|
||||
return descr;
|
||||
}
|
||||
|
||||
public void setDescr(String descr) {
|
||||
this.descr = descr;
|
||||
}
|
||||
|
||||
public String getTimes() {
|
||||
return times;
|
||||
}
|
||||
|
||||
public void setTimes(String times) {
|
||||
this.times = times;
|
||||
}
|
||||
|
||||
public String getTeacher() {
|
||||
return teacher;
|
||||
}
|
||||
|
||||
public void setTeacher(String teacher) {
|
||||
this.teacher = teacher;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,77 @@
|
||||
package com.example.entity;
|
||||
|
||||
public class Grade {
|
||||
|
||||
private Integer id;
|
||||
private Integer courseId;
|
||||
private Integer studentId;
|
||||
private Double score;
|
||||
private String comment;
|
||||
private String feedback;
|
||||
private String studentName;
|
||||
private String courseName;
|
||||
|
||||
public String getStudentName() {
|
||||
return studentName;
|
||||
}
|
||||
|
||||
public void setStudentName(String studentName) {
|
||||
this.studentName = studentName;
|
||||
}
|
||||
|
||||
public String getCourseName() {
|
||||
return courseName;
|
||||
}
|
||||
|
||||
public void setCourseName(String courseName) {
|
||||
this.courseName = courseName;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getCourseId() {
|
||||
return courseId;
|
||||
}
|
||||
|
||||
public void setCourseId(Integer courseId) {
|
||||
this.courseId = courseId;
|
||||
}
|
||||
|
||||
public Integer getStudentId() {
|
||||
return studentId;
|
||||
}
|
||||
|
||||
public void setStudentId(Integer studentId) {
|
||||
this.studentId = studentId;
|
||||
}
|
||||
|
||||
public Double getScore() {
|
||||
return score;
|
||||
}
|
||||
|
||||
public void setScore(Double score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
public String getComment() {
|
||||
return comment;
|
||||
}
|
||||
|
||||
public void setComment(String comment) {
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
public String getFeedback() {
|
||||
return feedback;
|
||||
}
|
||||
|
||||
public void setFeedback(String feedback) {
|
||||
this.feedback = feedback;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,97 @@
|
||||
package com.example.entity;
|
||||
|
||||
public class Student extends Account{
|
||||
private Integer id;
|
||||
private String username;
|
||||
private String password;
|
||||
private String name;
|
||||
private String phone;
|
||||
private String email;
|
||||
private String sex;
|
||||
private String birth;
|
||||
private String avatar;
|
||||
|
||||
private String role;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getBirth() {
|
||||
return birth;
|
||||
}
|
||||
|
||||
public void setBirth(String birth) {
|
||||
this.birth = birth;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRole(String role) {
|
||||
this.role = role;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package com.example.entity;
|
||||
|
||||
public class StudentCourse {
|
||||
private Integer id;
|
||||
private String name;
|
||||
private String no;
|
||||
private Integer studentId;
|
||||
private Integer courseId;
|
||||
private String studentName;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNo() {
|
||||
return no;
|
||||
}
|
||||
|
||||
public void setNo(String no) {
|
||||
this.no = no;
|
||||
}
|
||||
|
||||
public Integer getStudentId() {
|
||||
return studentId;
|
||||
}
|
||||
|
||||
public void setStudentId(Integer studentId) {
|
||||
this.studentId = studentId;
|
||||
}
|
||||
|
||||
public Integer getCourseId() {
|
||||
return courseId;
|
||||
}
|
||||
|
||||
public void setCourseId(Integer courseId) {
|
||||
this.courseId = courseId;
|
||||
}
|
||||
|
||||
public String getStudentName() {
|
||||
return studentName;
|
||||
}
|
||||
|
||||
public void setStudentName(String studentName) {
|
||||
this.studentName = studentName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.example.exception;
|
||||
|
||||
public class CustomException extends RuntimeException {
|
||||
private String msg;
|
||||
|
||||
public CustomException(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.example.exception;
|
||||
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import com.example.common.Result;
|
||||
import org.springframework.web.bind.annotation.ControllerAdvice;
|
||||
import org.springframework.web.bind.annotation.ExceptionHandler;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
@ControllerAdvice(basePackages="com.example.controller")
|
||||
public class GlobalExceptionHandler {
|
||||
|
||||
private static final Log log = LogFactory.get();
|
||||
|
||||
|
||||
//统一异常处理@ExceptionHandler,主要用于Exception
|
||||
@ExceptionHandler(Exception.class)
|
||||
@ResponseBody//返回json串
|
||||
public Result error(HttpServletRequest request, Exception e){
|
||||
log.error("异常信息:",e);
|
||||
return Result.error();
|
||||
}
|
||||
|
||||
@ExceptionHandler(CustomException.class)
|
||||
@ResponseBody//返回json串
|
||||
public Result customError(HttpServletRequest request, CustomException e){
|
||||
|
||||
return Result.error(e.getMsg());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.example.mapper;
|
||||
|
||||
import com.example.entity.Admin;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
public interface AdminMapper {
|
||||
|
||||
@Select("select * from admin where username = #{username}")
|
||||
Admin selectByUsername(String username);
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.example.mapper;
|
||||
|
||||
import com.example.entity.Course;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface CourseMapper {
|
||||
@Select("select * from course where name like concat('%',#{name},'%') and no like concat('%',#{no},'%') and teacher like concat('%',#{teacher},'%') order by id desc")
|
||||
List<Course> selectAll(Course course);
|
||||
@Insert("insert into course (name, no, descr, times, teacher) values(#{name},#{no},#{descr},#{times},#{teacher})")
|
||||
void insert(Course course);
|
||||
@Update("update course set name=#{name},no=#{no},descr=#{descr},times=#{times},teacher=#{teacher} where id=#{id}")
|
||||
void updateById(Course course);
|
||||
|
||||
@Delete("delete from course where id=#{id}")
|
||||
void deleteById(Integer id);
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.example.mapper;
|
||||
|
||||
import com.example.entity.Grade;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface GradeMapper {
|
||||
|
||||
@Insert("insert into grade (course_id, student_id, score, comment, feedback) " +
|
||||
"values (#{courseId}, #{studentId}, #{score}, #{comment}, #{feedback})")
|
||||
void insert(Grade grade);
|
||||
|
||||
List<Grade> selectAll(Grade grade); // 关联查询
|
||||
|
||||
@Update("update grade set score = #{score}, comment = #{comment}, feedback = #{ feedback } where id = #{id}")
|
||||
void update(Grade grade);
|
||||
|
||||
@Select("select * from grade where student_id = #{studentId} and course_id = #{courseId}")
|
||||
Grade selectByCondition(Grade grade);
|
||||
|
||||
@Delete("delete from grade where id = #{id}")
|
||||
void deleteById(Integer id);
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package com.example.mapper;
|
||||
|
||||
import com.example.entity.StudentCourse;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface StudentCourseMapper {
|
||||
|
||||
@Insert("insert into student_course (name,no,student_id,course_id) values (#{name},#{no},#{studentId},#{courseId})")
|
||||
void insert(StudentCourse studentCourse);
|
||||
|
||||
@Select("select * from student_course where student_id = #{studentId} and course_id = #{courseId}")
|
||||
StudentCourse selectByCondition(StudentCourse studentCourse);
|
||||
|
||||
// @Select("select * from student_course where name like concat('%',#{name},'%') and no like concat('%',#{no},'%') and student_id=#{studentId}")
|
||||
List<StudentCourse> selectAll(StudentCourse studentCourse);
|
||||
|
||||
@Delete("delete from student_course where id=#{id}")
|
||||
void deleteById(Integer id);
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
package com.example.mapper;
|
||||
|
||||
import com.example.entity.Student;
|
||||
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface StudentMapper {
|
||||
|
||||
@Select("select * from student where username = #{username}")
|
||||
Student selectByUsername(String username);
|
||||
@Insert("insert into student (username, password, name, phone, email, sex, birth, avatar, role) " +
|
||||
"values (#{username}, #{password}, #{name}, #{phone}, #{email}, #{sex}, #{birth}, #{avatar}, #{role})")
|
||||
void insert(Student student);
|
||||
|
||||
@Delete("delete from student where id =#{id}")
|
||||
void deleteById(Integer id);
|
||||
|
||||
@Update("update student set username=#{username},password=#{password},name=#{name},phone=#{phone}," +
|
||||
"email=#{email},sex=#{sex},birth=#{birth},avatar=#{avatar} where id =#{id}")
|
||||
void updateById(Student student);
|
||||
|
||||
@Select("select * from student where username like concat('%',#{username},'%')and name like concat('%',#{name},'%') order by id desc")
|
||||
List<Student> selectAll(Student student);
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.example.service;
|
||||
|
||||
import com.example.entity.Account;
|
||||
import com.example.entity.Admin;
|
||||
import com.example.exception.CustomException;
|
||||
import com.example.mapper.AdminMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class AdminService {
|
||||
|
||||
@Resource
|
||||
private AdminMapper adminMapper;
|
||||
|
||||
/**
|
||||
* 登录
|
||||
*/
|
||||
public Account login(Account account)
|
||||
{
|
||||
Account dbAdmin = adminMapper.selectByUsername(account.getUsername());
|
||||
if(dbAdmin==null)
|
||||
{
|
||||
throw new CustomException("账号或密码错误");
|
||||
}
|
||||
if (!account.getPassword().equals(dbAdmin.getPassword()))
|
||||
{
|
||||
throw new CustomException("账号或密码错误");
|
||||
}
|
||||
return dbAdmin;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.example.service;
|
||||
|
||||
import com.example.entity.Course;
|
||||
import com.example.mapper.CourseMapper;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class CourseService {
|
||||
@Resource
|
||||
private CourseMapper courseMapper;
|
||||
|
||||
|
||||
//total是查询总数 list是数据列表
|
||||
public PageInfo<Course> selectPage(Integer pageNum, Integer pageSize,Course course){
|
||||
PageHelper.startPage(pageNum,pageSize);
|
||||
List<Course> coursesList = courseMapper.selectAll(course);
|
||||
return PageInfo.of(coursesList);
|
||||
}
|
||||
//新增数据
|
||||
public void add(Course course) {
|
||||
courseMapper.insert(course);
|
||||
}
|
||||
|
||||
public void updateById(Course course) {
|
||||
courseMapper.updateById(course);
|
||||
}
|
||||
|
||||
public void deleteById(Integer id) {
|
||||
courseMapper.deleteById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.example.service;
|
||||
|
||||
import com.example.entity.Grade;
|
||||
import com.example.exception.CustomException;
|
||||
import com.example.mapper.GradeMapper;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class GradeService {
|
||||
|
||||
@Resource
|
||||
GradeMapper gradeMapper;
|
||||
|
||||
public void add(Grade grade) {
|
||||
Grade dbGrade = gradeMapper.selectByCondition(grade);
|
||||
if (dbGrade != null) { // 打过分了
|
||||
throw new CustomException("您已打过分了");
|
||||
}
|
||||
gradeMapper.insert(grade);
|
||||
}
|
||||
|
||||
public PageInfo<Grade> selectPage(Integer pageNum, Integer pageSize, Grade grade) {
|
||||
PageHelper.startPage(pageNum, pageSize);
|
||||
List<Grade> list = gradeMapper.selectAll(grade);
|
||||
return PageInfo.of(list);
|
||||
}
|
||||
|
||||
public void update(Grade grade) {
|
||||
gradeMapper.update(grade);
|
||||
}
|
||||
|
||||
public void deleteById(Integer id) {
|
||||
gradeMapper.deleteById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package com.example.service;
|
||||
|
||||
|
||||
import com.example.entity.StudentCourse;
|
||||
import com.example.exception.CustomException;
|
||||
import com.example.mapper.StudentCourseMapper;
|
||||
import com.example.mapper.StudentMapper;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class StudentCourseService {
|
||||
|
||||
@Resource
|
||||
StudentCourseMapper studentCourseMapper;
|
||||
|
||||
public void add(StudentCourse studentCourse) {
|
||||
StudentCourse course = studentCourseMapper.selectByCondition(studentCourse);//通过学生Id和课程ID筛选看这个学生是否选过这门课
|
||||
if (course != null) {
|
||||
throw new CustomException("您已选过这门课程");
|
||||
}
|
||||
studentCourseMapper.insert(studentCourse);
|
||||
}
|
||||
|
||||
public PageInfo<StudentCourse> selectPage(Integer pageNum, Integer pageSize,StudentCourse studentCourse) {
|
||||
PageHelper.startPage(pageNum,pageSize);
|
||||
List<StudentCourse> list = studentCourseMapper.selectAll(studentCourse);
|
||||
return PageInfo.of(list);
|
||||
}
|
||||
|
||||
public void deleteById(Integer id) {
|
||||
studentCourseMapper.deleteById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
package com.example.service;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.example.common.RoleEnum;
|
||||
import com.example.entity.Account;
|
||||
import com.example.entity.Student;
|
||||
import com.example.exception.CustomException;
|
||||
import com.example.mapper.StudentMapper;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class StudentService {
|
||||
@Resource
|
||||
private StudentMapper studentMapper;
|
||||
|
||||
public Account login(Account account)
|
||||
{
|
||||
Account dbStudent = studentMapper.selectByUsername(account.getUsername());
|
||||
if(dbStudent==null)
|
||||
{
|
||||
throw new CustomException("账号或密码错误");
|
||||
}
|
||||
if (!account.getPassword().equals(dbStudent.getPassword()))
|
||||
{
|
||||
throw new CustomException("账号或密码错误");
|
||||
}
|
||||
return dbStudent;
|
||||
}
|
||||
|
||||
public void register(Account account) {
|
||||
Student student = new Student();
|
||||
student.setUsername(account.getUsername()); // 账号
|
||||
student.setPassword(account.getPassword()); // 密码
|
||||
this.add(student);
|
||||
}
|
||||
|
||||
public void add(Student student) {
|
||||
Student dbStudent = studentMapper.selectByUsername(student.getUsername());
|
||||
if (dbStudent != null) { // 已有同名账号 不允许插入
|
||||
throw new CustomException("账号已存在");
|
||||
}
|
||||
if (ObjectUtil.isEmpty(student.getName())) {
|
||||
student.setName(student.getUsername());
|
||||
}
|
||||
student.setRole(RoleEnum.STUDENT.name());
|
||||
studentMapper.insert(student);
|
||||
}
|
||||
|
||||
public void deleteById(Integer id) {
|
||||
studentMapper.deleteById(id);
|
||||
}
|
||||
|
||||
public void updateById(Student student) {
|
||||
studentMapper.updateById(student);
|
||||
}
|
||||
|
||||
public PageInfo<Student> selectPage(Integer pageNum,Integer pageSize, Student student) {
|
||||
PageHelper.startPage(pageNum,pageSize);
|
||||
List<Student> studentList = studentMapper.selectAll(student);
|
||||
return PageInfo.of(studentList);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
server:
|
||||
port: 9090
|
||||
|
||||
# 数据库配置
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: root
|
||||
password: zyh1234567890
|
||||
url: jdbc:mysql://localhost:3306/student?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 100MB
|
||||
max-request-size: 100MB
|
||||
|
||||
# 配置mybatis实体和xml映射
|
||||
mybatis:
|
||||
configuration:
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
map-underscore-to-camel-case: true
|
||||
mapper-locations: classpath:mapper/*.xml
|
||||
|
||||
ip: localhost
|
||||
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.example.mapper.GradeMapper">
|
||||
|
||||
<select id="selectAll" resultType="com.example.entity.Grade">
|
||||
select grade.*, student.name as studentName, course.name as courseName
|
||||
from grade
|
||||
left join student
|
||||
on grade.student_id = student.id
|
||||
left join course
|
||||
on grade.course_id = course.id
|
||||
<where>
|
||||
<if test="studentName != null">and student.name like concat('%', #{studentName}, '%')</if>
|
||||
<if test="courseName != null">and course.name like concat('%', #{courseName}, '%')</if>
|
||||
<if test="studentId != null">and grade.student_id = #{studentId}</if>
|
||||
</where>
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.example.mapper.StudentCourseMapper">
|
||||
|
||||
<select id="selectAll" resultType="com.example.entity.StudentCourse">
|
||||
select student_course.*,student.name as studentName from student_course
|
||||
left join student
|
||||
on student_course.student_id = student.id
|
||||
<where>
|
||||
<if test="name != null"> and student_course.name like concat('%',#{name},'%') </if>
|
||||
<if test="no != null">and student_course.no like concat('%',#{no},'%')</if>
|
||||
<if test="studentId!= null">and student_course.student_id = #{studentId}</if>
|
||||
</where>
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,23 @@
|
||||
server:
|
||||
port: 9090
|
||||
|
||||
# 数据库配置
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: root
|
||||
password: zyh1234567890
|
||||
url: jdbc:mysql://localhost:3306/student?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 100MB
|
||||
max-request-size: 100MB
|
||||
|
||||
# 配置mybatis实体和xml映射
|
||||
mybatis:
|
||||
configuration:
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
map-underscore-to-camel-case: true
|
||||
mapper-locations: classpath:mapper/*.xml
|
||||
|
||||
ip: localhost
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,130 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : localhost_3306
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 50737
|
||||
Source Host : localhost:3306
|
||||
Source Schema : student
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 50737
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 26/11/2023 16:31:45
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for admin
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `admin`;
|
||||
CREATE TABLE `admin` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '账号',
|
||||
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '密码',
|
||||
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '名称',
|
||||
`role` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '角色',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '管理员' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of admin
|
||||
-- ----------------------------
|
||||
INSERT INTO `admin` VALUES (1, 'admin', 'admin', '管理员', 'ADMIN');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for course
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `course`;
|
||||
CREATE TABLE `course` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '课程名称',
|
||||
`no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '课程编号',
|
||||
`descr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '课程描述',
|
||||
`times` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '课时',
|
||||
`teacher` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '任课老师',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '课程信息' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of course
|
||||
-- ----------------------------
|
||||
INSERT INTO `course` VALUES (1, '大学英语', 'CS10012313', '大学英语真好玩', '24节', '张三三');
|
||||
INSERT INTO `course` VALUES (2, '大学物理', 'CS12332131', '大学物理真枯燥', '24节', '李思思');
|
||||
INSERT INTO `course` VALUES (5, '线性代数', 'CS10012325', '线性代数真好学', '20节', '王二二');
|
||||
INSERT INTO `course` VALUES (6, '李思思', NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `course` VALUES (7, '2', '2', '2', '2', '2');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for grade
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `grade`;
|
||||
CREATE TABLE `grade` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`course_id` int(11) NULL DEFAULT NULL COMMENT '课程ID',
|
||||
`student_id` int(11) NULL DEFAULT NULL COMMENT '学生ID',
|
||||
`score` double(10, 1) NULL DEFAULT NULL COMMENT '分数',
|
||||
`comment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '评语',
|
||||
`feedback` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '学生反馈',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '成绩' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of grade
|
||||
-- ----------------------------
|
||||
INSERT INTO `grade` VALUES (1, 1, 8, 90.0, '非常nice 哈哈哈\n\n我现在更新数据', '老师非常用心,我很喜欢青哥哥的课程 哈哈哈');
|
||||
INSERT INTO `grade` VALUES (3, 2, 1, 60.0, '继续加油', '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for student
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `student`;
|
||||
CREATE TABLE `student` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '学号',
|
||||
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '密码',
|
||||
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '名称',
|
||||
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '手机号',
|
||||
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||||
`sex` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '性别',
|
||||
`birth` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '生日',
|
||||
`avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '头像',
|
||||
`role` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '角色',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '学生信息' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of student
|
||||
-- ----------------------------
|
||||
INSERT INTO `student` VALUES (1, '20191001', '123', '小白白', '13788997788', 'xbb@xm.com', '男', '2000-10-01', 'http://localhost:9090/files/download?fileName=1700576780918_QQ截图20230330090301.png', 'STUDENT');
|
||||
INSERT INTO `student` VALUES (2, '20191002', '123', '20191002', NULL, NULL, NULL, NULL, NULL, 'STUDENT');
|
||||
INSERT INTO `student` VALUES (3, '20191003', '123', '20191003', NULL, NULL, NULL, NULL, NULL, 'STUDENT');
|
||||
INSERT INTO `student` VALUES (4, '20191004', '123', '20191004', NULL, NULL, NULL, NULL, NULL, 'STUDENT');
|
||||
INSERT INTO `student` VALUES (5, '20191005', '123', '20191005', NULL, NULL, NULL, NULL, NULL, 'STUDENT');
|
||||
INSERT INTO `student` VALUES (6, '20191006', '123', '20191006', NULL, NULL, NULL, NULL, NULL, 'STUDENT');
|
||||
INSERT INTO `student` VALUES (7, '20191007', '123', '20191007', NULL, NULL, NULL, NULL, NULL, 'STUDENT');
|
||||
INSERT INTO `student` VALUES (8, '20191010', '123', '李思思', '13988998899', 'lss@xm.com', '女', '2001-11-01', 'http://localhost:9090/files/download?fileName=1700575670771_QQ图片20230301222231.gif', 'STUDENT');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for student_course
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `student_course`;
|
||||
CREATE TABLE `student_course` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '课程名称',
|
||||
`no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '课程编号',
|
||||
`student_id` int(11) NULL DEFAULT NULL COMMENT '学生ID',
|
||||
`course_id` int(11) NULL DEFAULT NULL COMMENT '课程ID',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '学生选课' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of student_course
|
||||
-- ----------------------------
|
||||
INSERT INTO `student_course` VALUES (4, '大学物理', 'CS12332131', 1, 2);
|
||||
INSERT INTO `student_course` VALUES (5, '大学英语', 'CS10012313', 8, 1);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
@ -0,0 +1 @@
|
||||
VITE_BASE_URL='http://localhost:9090'
|
||||
@ -0,0 +1 @@
|
||||
VITE_BASE_URL='http://:9090'
|
||||
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>学生成绩管理系统</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../acorn/bin/acorn" "$@"
|
||||
else
|
||||
exec node "$basedir/../acorn/bin/acorn" "$@"
|
||||
fi
|
||||
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
GOTO start
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
:start
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\acorn\bin\acorn" %*
|
||||
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../acorn/bin/acorn" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../acorn/bin/acorn" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../esbuild/bin/esbuild" "$@"
|
||||
else
|
||||
exec node "$basedir/../esbuild/bin/esbuild" "$@"
|
||||
fi
|
||||
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
GOTO start
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
:start
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\esbuild\bin\esbuild" %*
|
||||
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../nanoid/bin/nanoid.cjs" "$@"
|
||||
else
|
||||
exec node "$basedir/../nanoid/bin/nanoid.cjs" "$@"
|
||||
fi
|
||||
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
GOTO start
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
:start
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\nanoid\bin\nanoid.cjs" %*
|
||||
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
|
||||
fi
|
||||
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
GOTO start
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
:start
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\@babel\parser\bin\babel-parser.js" %*
|
||||
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../resolve/bin/resolve" "$@"
|
||||
else
|
||||
exec node "$basedir/../resolve/bin/resolve" "$@"
|
||||
fi
|
||||
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
GOTO start
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
:start
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\resolve\bin\resolve" %*
|
||||
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../rollup/dist/bin/rollup" "$@"
|
||||
else
|
||||
exec node "$basedir/../rollup/dist/bin/rollup" "$@"
|
||||
fi
|
||||
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
GOTO start
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
:start
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\rollup\dist\bin\rollup" %*
|
||||
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../sass/sass.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../sass/sass.js" "$@"
|
||||
fi
|
||||
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
GOTO start
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
:start
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\sass\sass.js" %*
|
||||
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../sass/sass.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../sass/sass.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../sass/sass.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../sass/sass.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../vite/bin/vite.js" "$@"
|
||||
fi
|
||||
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
GOTO start
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
:start
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\vite\bin\vite.js" %*
|
||||
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,593 @@
|
||||
import {
|
||||
add_location_default,
|
||||
aim_default,
|
||||
alarm_clock_default,
|
||||
apple_default,
|
||||
arrow_down_bold_default,
|
||||
arrow_down_default,
|
||||
arrow_left_bold_default,
|
||||
arrow_left_default,
|
||||
arrow_right_bold_default,
|
||||
arrow_right_default,
|
||||
arrow_up_bold_default,
|
||||
arrow_up_default,
|
||||
avatar_default,
|
||||
back_default,
|
||||
baseball_default,
|
||||
basketball_default,
|
||||
bell_default,
|
||||
bell_filled_default,
|
||||
bicycle_default,
|
||||
bottom_default,
|
||||
bottom_left_default,
|
||||
bottom_right_default,
|
||||
bowl_default,
|
||||
box_default,
|
||||
briefcase_default,
|
||||
brush_default,
|
||||
brush_filled_default,
|
||||
burger_default,
|
||||
calendar_default,
|
||||
camera_default,
|
||||
camera_filled_default,
|
||||
caret_bottom_default,
|
||||
caret_left_default,
|
||||
caret_right_default,
|
||||
caret_top_default,
|
||||
cellphone_default,
|
||||
chat_dot_round_default,
|
||||
chat_dot_square_default,
|
||||
chat_line_round_default,
|
||||
chat_line_square_default,
|
||||
chat_round_default,
|
||||
chat_square_default,
|
||||
check_default,
|
||||
checked_default,
|
||||
cherry_default,
|
||||
chicken_default,
|
||||
chrome_filled_default,
|
||||
circle_check_default,
|
||||
circle_check_filled_default,
|
||||
circle_close_default,
|
||||
circle_close_filled_default,
|
||||
circle_plus_default,
|
||||
circle_plus_filled_default,
|
||||
clock_default,
|
||||
close_bold_default,
|
||||
close_default,
|
||||
cloudy_default,
|
||||
coffee_cup_default,
|
||||
coffee_default,
|
||||
coin_default,
|
||||
cold_drink_default,
|
||||
collection_default,
|
||||
collection_tag_default,
|
||||
comment_default,
|
||||
compass_default,
|
||||
connection_default,
|
||||
coordinate_default,
|
||||
copy_document_default,
|
||||
cpu_default,
|
||||
credit_card_default,
|
||||
crop_default,
|
||||
d_arrow_left_default,
|
||||
d_arrow_right_default,
|
||||
d_caret_default,
|
||||
data_analysis_default,
|
||||
data_board_default,
|
||||
data_line_default,
|
||||
delete_default,
|
||||
delete_filled_default,
|
||||
delete_location_default,
|
||||
dessert_default,
|
||||
discount_default,
|
||||
dish_default,
|
||||
dish_dot_default,
|
||||
document_add_default,
|
||||
document_checked_default,
|
||||
document_copy_default,
|
||||
document_default,
|
||||
document_delete_default,
|
||||
document_remove_default,
|
||||
download_default,
|
||||
drizzling_default,
|
||||
edit_default,
|
||||
edit_pen_default,
|
||||
eleme_default,
|
||||
eleme_filled_default,
|
||||
element_plus_default,
|
||||
expand_default,
|
||||
failed_default,
|
||||
female_default,
|
||||
files_default,
|
||||
film_default,
|
||||
filter_default,
|
||||
finished_default,
|
||||
first_aid_kit_default,
|
||||
flag_default,
|
||||
fold_default,
|
||||
folder_add_default,
|
||||
folder_checked_default,
|
||||
folder_default,
|
||||
folder_delete_default,
|
||||
folder_opened_default,
|
||||
folder_remove_default,
|
||||
food_default,
|
||||
football_default,
|
||||
fork_spoon_default,
|
||||
fries_default,
|
||||
full_screen_default,
|
||||
goblet_default,
|
||||
goblet_full_default,
|
||||
goblet_square_default,
|
||||
goblet_square_full_default,
|
||||
gold_medal_default,
|
||||
goods_default,
|
||||
goods_filled_default,
|
||||
grape_default,
|
||||
grid_default,
|
||||
guide_default,
|
||||
handbag_default,
|
||||
headset_default,
|
||||
help_default,
|
||||
help_filled_default,
|
||||
hide_default,
|
||||
histogram_default,
|
||||
home_filled_default,
|
||||
hot_water_default,
|
||||
house_default,
|
||||
ice_cream_default,
|
||||
ice_cream_round_default,
|
||||
ice_cream_square_default,
|
||||
ice_drink_default,
|
||||
ice_tea_default,
|
||||
info_filled_default,
|
||||
iphone_default,
|
||||
key_default,
|
||||
knife_fork_default,
|
||||
lightning_default,
|
||||
link_default,
|
||||
list_default,
|
||||
loading_default,
|
||||
location_default,
|
||||
location_filled_default,
|
||||
location_information_default,
|
||||
lock_default,
|
||||
lollipop_default,
|
||||
magic_stick_default,
|
||||
magnet_default,
|
||||
male_default,
|
||||
management_default,
|
||||
map_location_default,
|
||||
medal_default,
|
||||
memo_default,
|
||||
menu_default,
|
||||
message_box_default,
|
||||
message_default,
|
||||
mic_default,
|
||||
microphone_default,
|
||||
milk_tea_default,
|
||||
minus_default,
|
||||
money_default,
|
||||
monitor_default,
|
||||
moon_default,
|
||||
moon_night_default,
|
||||
more_default,
|
||||
more_filled_default,
|
||||
mostly_cloudy_default,
|
||||
mouse_default,
|
||||
mug_default,
|
||||
mute_default,
|
||||
mute_notification_default,
|
||||
no_smoking_default,
|
||||
notebook_default,
|
||||
notification_default,
|
||||
odometer_default,
|
||||
office_building_default,
|
||||
open_default,
|
||||
operation_default,
|
||||
opportunity_default,
|
||||
orange_default,
|
||||
paperclip_default,
|
||||
partly_cloudy_default,
|
||||
pear_default,
|
||||
phone_default,
|
||||
phone_filled_default,
|
||||
picture_default,
|
||||
picture_filled_default,
|
||||
picture_rounded_default,
|
||||
pie_chart_default,
|
||||
place_default,
|
||||
platform_default,
|
||||
plus_default,
|
||||
pointer_default,
|
||||
position_default,
|
||||
postcard_default,
|
||||
pouring_default,
|
||||
present_default,
|
||||
price_tag_default,
|
||||
printer_default,
|
||||
promotion_default,
|
||||
quartz_watch_default,
|
||||
question_filled_default,
|
||||
rank_default,
|
||||
reading_default,
|
||||
reading_lamp_default,
|
||||
refresh_default,
|
||||
refresh_left_default,
|
||||
refresh_right_default,
|
||||
refrigerator_default,
|
||||
remove_default,
|
||||
remove_filled_default,
|
||||
right_default,
|
||||
scale_to_original_default,
|
||||
school_default,
|
||||
scissor_default,
|
||||
search_default,
|
||||
select_default,
|
||||
sell_default,
|
||||
semi_select_default,
|
||||
service_default,
|
||||
set_up_default,
|
||||
setting_default,
|
||||
share_default,
|
||||
ship_default,
|
||||
shop_default,
|
||||
shopping_bag_default,
|
||||
shopping_cart_default,
|
||||
shopping_cart_full_default,
|
||||
shopping_trolley_default,
|
||||
smoking_default,
|
||||
soccer_default,
|
||||
sold_out_default,
|
||||
sort_default,
|
||||
sort_down_default,
|
||||
sort_up_default,
|
||||
stamp_default,
|
||||
star_default,
|
||||
star_filled_default,
|
||||
stopwatch_default,
|
||||
success_filled_default,
|
||||
sugar_default,
|
||||
suitcase_default,
|
||||
suitcase_line_default,
|
||||
sunny_default,
|
||||
sunrise_default,
|
||||
sunset_default,
|
||||
switch_button_default,
|
||||
switch_default,
|
||||
switch_filled_default,
|
||||
takeaway_box_default,
|
||||
ticket_default,
|
||||
tickets_default,
|
||||
timer_default,
|
||||
toilet_paper_default,
|
||||
tools_default,
|
||||
top_default,
|
||||
top_left_default,
|
||||
top_right_default,
|
||||
trend_charts_default,
|
||||
trophy_base_default,
|
||||
trophy_default,
|
||||
turn_off_default,
|
||||
umbrella_default,
|
||||
unlock_default,
|
||||
upload_default,
|
||||
upload_filled_default,
|
||||
user_default,
|
||||
user_filled_default,
|
||||
van_default,
|
||||
video_camera_default,
|
||||
video_camera_filled_default,
|
||||
video_pause_default,
|
||||
video_play_default,
|
||||
view_default,
|
||||
wallet_default,
|
||||
wallet_filled_default,
|
||||
warn_triangle_filled_default,
|
||||
warning_default,
|
||||
warning_filled_default,
|
||||
watch_default,
|
||||
watermelon_default,
|
||||
wind_power_default,
|
||||
zoom_in_default,
|
||||
zoom_out_default
|
||||
} from "./chunk-TJY4NJSL.js";
|
||||
import "./chunk-7AKRAGCT.js";
|
||||
import "./chunk-5WWUZCGV.js";
|
||||
export {
|
||||
add_location_default as AddLocation,
|
||||
aim_default as Aim,
|
||||
alarm_clock_default as AlarmClock,
|
||||
apple_default as Apple,
|
||||
arrow_down_default as ArrowDown,
|
||||
arrow_down_bold_default as ArrowDownBold,
|
||||
arrow_left_default as ArrowLeft,
|
||||
arrow_left_bold_default as ArrowLeftBold,
|
||||
arrow_right_default as ArrowRight,
|
||||
arrow_right_bold_default as ArrowRightBold,
|
||||
arrow_up_default as ArrowUp,
|
||||
arrow_up_bold_default as ArrowUpBold,
|
||||
avatar_default as Avatar,
|
||||
back_default as Back,
|
||||
baseball_default as Baseball,
|
||||
basketball_default as Basketball,
|
||||
bell_default as Bell,
|
||||
bell_filled_default as BellFilled,
|
||||
bicycle_default as Bicycle,
|
||||
bottom_default as Bottom,
|
||||
bottom_left_default as BottomLeft,
|
||||
bottom_right_default as BottomRight,
|
||||
bowl_default as Bowl,
|
||||
box_default as Box,
|
||||
briefcase_default as Briefcase,
|
||||
brush_default as Brush,
|
||||
brush_filled_default as BrushFilled,
|
||||
burger_default as Burger,
|
||||
calendar_default as Calendar,
|
||||
camera_default as Camera,
|
||||
camera_filled_default as CameraFilled,
|
||||
caret_bottom_default as CaretBottom,
|
||||
caret_left_default as CaretLeft,
|
||||
caret_right_default as CaretRight,
|
||||
caret_top_default as CaretTop,
|
||||
cellphone_default as Cellphone,
|
||||
chat_dot_round_default as ChatDotRound,
|
||||
chat_dot_square_default as ChatDotSquare,
|
||||
chat_line_round_default as ChatLineRound,
|
||||
chat_line_square_default as ChatLineSquare,
|
||||
chat_round_default as ChatRound,
|
||||
chat_square_default as ChatSquare,
|
||||
check_default as Check,
|
||||
checked_default as Checked,
|
||||
cherry_default as Cherry,
|
||||
chicken_default as Chicken,
|
||||
chrome_filled_default as ChromeFilled,
|
||||
circle_check_default as CircleCheck,
|
||||
circle_check_filled_default as CircleCheckFilled,
|
||||
circle_close_default as CircleClose,
|
||||
circle_close_filled_default as CircleCloseFilled,
|
||||
circle_plus_default as CirclePlus,
|
||||
circle_plus_filled_default as CirclePlusFilled,
|
||||
clock_default as Clock,
|
||||
close_default as Close,
|
||||
close_bold_default as CloseBold,
|
||||
cloudy_default as Cloudy,
|
||||
coffee_default as Coffee,
|
||||
coffee_cup_default as CoffeeCup,
|
||||
coin_default as Coin,
|
||||
cold_drink_default as ColdDrink,
|
||||
collection_default as Collection,
|
||||
collection_tag_default as CollectionTag,
|
||||
comment_default as Comment,
|
||||
compass_default as Compass,
|
||||
connection_default as Connection,
|
||||
coordinate_default as Coordinate,
|
||||
copy_document_default as CopyDocument,
|
||||
cpu_default as Cpu,
|
||||
credit_card_default as CreditCard,
|
||||
crop_default as Crop,
|
||||
d_arrow_left_default as DArrowLeft,
|
||||
d_arrow_right_default as DArrowRight,
|
||||
d_caret_default as DCaret,
|
||||
data_analysis_default as DataAnalysis,
|
||||
data_board_default as DataBoard,
|
||||
data_line_default as DataLine,
|
||||
delete_default as Delete,
|
||||
delete_filled_default as DeleteFilled,
|
||||
delete_location_default as DeleteLocation,
|
||||
dessert_default as Dessert,
|
||||
discount_default as Discount,
|
||||
dish_default as Dish,
|
||||
dish_dot_default as DishDot,
|
||||
document_default as Document,
|
||||
document_add_default as DocumentAdd,
|
||||
document_checked_default as DocumentChecked,
|
||||
document_copy_default as DocumentCopy,
|
||||
document_delete_default as DocumentDelete,
|
||||
document_remove_default as DocumentRemove,
|
||||
download_default as Download,
|
||||
drizzling_default as Drizzling,
|
||||
edit_default as Edit,
|
||||
edit_pen_default as EditPen,
|
||||
eleme_default as Eleme,
|
||||
eleme_filled_default as ElemeFilled,
|
||||
element_plus_default as ElementPlus,
|
||||
expand_default as Expand,
|
||||
failed_default as Failed,
|
||||
female_default as Female,
|
||||
files_default as Files,
|
||||
film_default as Film,
|
||||
filter_default as Filter,
|
||||
finished_default as Finished,
|
||||
first_aid_kit_default as FirstAidKit,
|
||||
flag_default as Flag,
|
||||
fold_default as Fold,
|
||||
folder_default as Folder,
|
||||
folder_add_default as FolderAdd,
|
||||
folder_checked_default as FolderChecked,
|
||||
folder_delete_default as FolderDelete,
|
||||
folder_opened_default as FolderOpened,
|
||||
folder_remove_default as FolderRemove,
|
||||
food_default as Food,
|
||||
football_default as Football,
|
||||
fork_spoon_default as ForkSpoon,
|
||||
fries_default as Fries,
|
||||
full_screen_default as FullScreen,
|
||||
goblet_default as Goblet,
|
||||
goblet_full_default as GobletFull,
|
||||
goblet_square_default as GobletSquare,
|
||||
goblet_square_full_default as GobletSquareFull,
|
||||
gold_medal_default as GoldMedal,
|
||||
goods_default as Goods,
|
||||
goods_filled_default as GoodsFilled,
|
||||
grape_default as Grape,
|
||||
grid_default as Grid,
|
||||
guide_default as Guide,
|
||||
handbag_default as Handbag,
|
||||
headset_default as Headset,
|
||||
help_default as Help,
|
||||
help_filled_default as HelpFilled,
|
||||
hide_default as Hide,
|
||||
histogram_default as Histogram,
|
||||
home_filled_default as HomeFilled,
|
||||
hot_water_default as HotWater,
|
||||
house_default as House,
|
||||
ice_cream_default as IceCream,
|
||||
ice_cream_round_default as IceCreamRound,
|
||||
ice_cream_square_default as IceCreamSquare,
|
||||
ice_drink_default as IceDrink,
|
||||
ice_tea_default as IceTea,
|
||||
info_filled_default as InfoFilled,
|
||||
iphone_default as Iphone,
|
||||
key_default as Key,
|
||||
knife_fork_default as KnifeFork,
|
||||
lightning_default as Lightning,
|
||||
link_default as Link,
|
||||
list_default as List,
|
||||
loading_default as Loading,
|
||||
location_default as Location,
|
||||
location_filled_default as LocationFilled,
|
||||
location_information_default as LocationInformation,
|
||||
lock_default as Lock,
|
||||
lollipop_default as Lollipop,
|
||||
magic_stick_default as MagicStick,
|
||||
magnet_default as Magnet,
|
||||
male_default as Male,
|
||||
management_default as Management,
|
||||
map_location_default as MapLocation,
|
||||
medal_default as Medal,
|
||||
memo_default as Memo,
|
||||
menu_default as Menu,
|
||||
message_default as Message,
|
||||
message_box_default as MessageBox,
|
||||
mic_default as Mic,
|
||||
microphone_default as Microphone,
|
||||
milk_tea_default as MilkTea,
|
||||
minus_default as Minus,
|
||||
money_default as Money,
|
||||
monitor_default as Monitor,
|
||||
moon_default as Moon,
|
||||
moon_night_default as MoonNight,
|
||||
more_default as More,
|
||||
more_filled_default as MoreFilled,
|
||||
mostly_cloudy_default as MostlyCloudy,
|
||||
mouse_default as Mouse,
|
||||
mug_default as Mug,
|
||||
mute_default as Mute,
|
||||
mute_notification_default as MuteNotification,
|
||||
no_smoking_default as NoSmoking,
|
||||
notebook_default as Notebook,
|
||||
notification_default as Notification,
|
||||
odometer_default as Odometer,
|
||||
office_building_default as OfficeBuilding,
|
||||
open_default as Open,
|
||||
operation_default as Operation,
|
||||
opportunity_default as Opportunity,
|
||||
orange_default as Orange,
|
||||
paperclip_default as Paperclip,
|
||||
partly_cloudy_default as PartlyCloudy,
|
||||
pear_default as Pear,
|
||||
phone_default as Phone,
|
||||
phone_filled_default as PhoneFilled,
|
||||
picture_default as Picture,
|
||||
picture_filled_default as PictureFilled,
|
||||
picture_rounded_default as PictureRounded,
|
||||
pie_chart_default as PieChart,
|
||||
place_default as Place,
|
||||
platform_default as Platform,
|
||||
plus_default as Plus,
|
||||
pointer_default as Pointer,
|
||||
position_default as Position,
|
||||
postcard_default as Postcard,
|
||||
pouring_default as Pouring,
|
||||
present_default as Present,
|
||||
price_tag_default as PriceTag,
|
||||
printer_default as Printer,
|
||||
promotion_default as Promotion,
|
||||
quartz_watch_default as QuartzWatch,
|
||||
question_filled_default as QuestionFilled,
|
||||
rank_default as Rank,
|
||||
reading_default as Reading,
|
||||
reading_lamp_default as ReadingLamp,
|
||||
refresh_default as Refresh,
|
||||
refresh_left_default as RefreshLeft,
|
||||
refresh_right_default as RefreshRight,
|
||||
refrigerator_default as Refrigerator,
|
||||
remove_default as Remove,
|
||||
remove_filled_default as RemoveFilled,
|
||||
right_default as Right,
|
||||
scale_to_original_default as ScaleToOriginal,
|
||||
school_default as School,
|
||||
scissor_default as Scissor,
|
||||
search_default as Search,
|
||||
select_default as Select,
|
||||
sell_default as Sell,
|
||||
semi_select_default as SemiSelect,
|
||||
service_default as Service,
|
||||
set_up_default as SetUp,
|
||||
setting_default as Setting,
|
||||
share_default as Share,
|
||||
ship_default as Ship,
|
||||
shop_default as Shop,
|
||||
shopping_bag_default as ShoppingBag,
|
||||
shopping_cart_default as ShoppingCart,
|
||||
shopping_cart_full_default as ShoppingCartFull,
|
||||
shopping_trolley_default as ShoppingTrolley,
|
||||
smoking_default as Smoking,
|
||||
soccer_default as Soccer,
|
||||
sold_out_default as SoldOut,
|
||||
sort_default as Sort,
|
||||
sort_down_default as SortDown,
|
||||
sort_up_default as SortUp,
|
||||
stamp_default as Stamp,
|
||||
star_default as Star,
|
||||
star_filled_default as StarFilled,
|
||||
stopwatch_default as Stopwatch,
|
||||
success_filled_default as SuccessFilled,
|
||||
sugar_default as Sugar,
|
||||
suitcase_default as Suitcase,
|
||||
suitcase_line_default as SuitcaseLine,
|
||||
sunny_default as Sunny,
|
||||
sunrise_default as Sunrise,
|
||||
sunset_default as Sunset,
|
||||
switch_default as Switch,
|
||||
switch_button_default as SwitchButton,
|
||||
switch_filled_default as SwitchFilled,
|
||||
takeaway_box_default as TakeawayBox,
|
||||
ticket_default as Ticket,
|
||||
tickets_default as Tickets,
|
||||
timer_default as Timer,
|
||||
toilet_paper_default as ToiletPaper,
|
||||
tools_default as Tools,
|
||||
top_default as Top,
|
||||
top_left_default as TopLeft,
|
||||
top_right_default as TopRight,
|
||||
trend_charts_default as TrendCharts,
|
||||
trophy_default as Trophy,
|
||||
trophy_base_default as TrophyBase,
|
||||
turn_off_default as TurnOff,
|
||||
umbrella_default as Umbrella,
|
||||
unlock_default as Unlock,
|
||||
upload_default as Upload,
|
||||
upload_filled_default as UploadFilled,
|
||||
user_default as User,
|
||||
user_filled_default as UserFilled,
|
||||
van_default as Van,
|
||||
video_camera_default as VideoCamera,
|
||||
video_camera_filled_default as VideoCameraFilled,
|
||||
video_pause_default as VideoPause,
|
||||
video_play_default as VideoPlay,
|
||||
view_default as View,
|
||||
wallet_default as Wallet,
|
||||
wallet_filled_default as WalletFilled,
|
||||
warn_triangle_filled_default as WarnTriangleFilled,
|
||||
warning_default as Warning,
|
||||
warning_filled_default as WarningFilled,
|
||||
watch_default as Watch,
|
||||
watermelon_default as Watermelon,
|
||||
wind_power_default as WindPower,
|
||||
zoom_in_default as ZoomIn,
|
||||
zoom_out_default as ZoomOut
|
||||
};
|
||||
//# sourceMappingURL=@element-plus_icons-vue.js.map
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
@ -0,0 +1,227 @@
|
||||
{
|
||||
"hash": "7b87647c",
|
||||
"browserHash": "3783bdee",
|
||||
"optimized": {
|
||||
"@element-plus/icons-vue": {
|
||||
"src": "../../@element-plus/icons-vue/dist/index.js",
|
||||
"file": "@element-plus_icons-vue.js",
|
||||
"fileHash": "b9f59230",
|
||||
"needsInterop": false
|
||||
},
|
||||
"axios": {
|
||||
"src": "../../axios/index.js",
|
||||
"file": "axios.js",
|
||||
"fileHash": "3c866bcf",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus": {
|
||||
"src": "../../element-plus/es/index.mjs",
|
||||
"file": "element-plus.js",
|
||||
"fileHash": "07d81f07",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/dist/locale/zh-cn.mjs": {
|
||||
"src": "../../element-plus/dist/locale/zh-cn.mjs",
|
||||
"file": "element-plus_dist_locale_zh-cn__mjs.js",
|
||||
"fileHash": "731ceabb",
|
||||
"needsInterop": false
|
||||
},
|
||||
"vue": {
|
||||
"src": "../../vue/dist/vue.runtime.esm-bundler.js",
|
||||
"file": "vue.js",
|
||||
"fileHash": "d542d8c4",
|
||||
"needsInterop": false
|
||||
},
|
||||
"vue-router": {
|
||||
"src": "../../vue-router/dist/vue-router.mjs",
|
||||
"file": "vue-router.js",
|
||||
"fileHash": "cfaa6634",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es": {
|
||||
"src": "../../element-plus/es/index.mjs",
|
||||
"file": "element-plus_es.js",
|
||||
"fileHash": "a22f5d6f",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/base/style/index": {
|
||||
"src": "../../element-plus/es/components/base/style/index.mjs",
|
||||
"file": "element-plus_es_components_base_style_index.js",
|
||||
"fileHash": "c200b7a8",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/menu/style/index": {
|
||||
"src": "../../element-plus/es/components/menu/style/index.mjs",
|
||||
"file": "element-plus_es_components_menu_style_index.js",
|
||||
"fileHash": "64291ef6",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/sub-menu/style/index": {
|
||||
"src": "../../element-plus/es/components/sub-menu/style/index.mjs",
|
||||
"file": "element-plus_es_components_sub-menu_style_index.js",
|
||||
"fileHash": "03bf85d6",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/menu-item/style/index": {
|
||||
"src": "../../element-plus/es/components/menu-item/style/index.mjs",
|
||||
"file": "element-plus_es_components_menu-item_style_index.js",
|
||||
"fileHash": "a2dee0d4",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/icon/style/index": {
|
||||
"src": "../../element-plus/es/components/icon/style/index.mjs",
|
||||
"file": "element-plus_es_components_icon_style_index.js",
|
||||
"fileHash": "04400642",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/message/style/index": {
|
||||
"src": "../../element-plus/es/components/message/style/index.mjs",
|
||||
"file": "element-plus_es_components_message_style_index.js",
|
||||
"fileHash": "bfcc6e5d",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/form/style/index": {
|
||||
"src": "../../element-plus/es/components/form/style/index.mjs",
|
||||
"file": "element-plus_es_components_form_style_index.js",
|
||||
"fileHash": "826d74eb",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/button/style/index": {
|
||||
"src": "../../element-plus/es/components/button/style/index.mjs",
|
||||
"file": "element-plus_es_components_button_style_index.js",
|
||||
"fileHash": "298368e4",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/select/style/index": {
|
||||
"src": "../../element-plus/es/components/select/style/index.mjs",
|
||||
"file": "element-plus_es_components_select_style_index.js",
|
||||
"fileHash": "b03ae1f4",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/option/style/index": {
|
||||
"src": "../../element-plus/es/components/option/style/index.mjs",
|
||||
"file": "element-plus_es_components_option_style_index.js",
|
||||
"fileHash": "0d7e30fb",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/form-item/style/index": {
|
||||
"src": "../../element-plus/es/components/form-item/style/index.mjs",
|
||||
"file": "element-plus_es_components_form-item_style_index.js",
|
||||
"fileHash": "fe81150d",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/input/style/index": {
|
||||
"src": "../../element-plus/es/components/input/style/index.mjs",
|
||||
"file": "element-plus_es_components_input_style_index.js",
|
||||
"fileHash": "71692cbd",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/dialog/style/index": {
|
||||
"src": "../../element-plus/es/components/dialog/style/index.mjs",
|
||||
"file": "element-plus_es_components_dialog_style_index.js",
|
||||
"fileHash": "ee419574",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/pagination/style/index": {
|
||||
"src": "../../element-plus/es/components/pagination/style/index.mjs",
|
||||
"file": "element-plus_es_components_pagination_style_index.js",
|
||||
"fileHash": "3c169117",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/table/style/index": {
|
||||
"src": "../../element-plus/es/components/table/style/index.mjs",
|
||||
"file": "element-plus_es_components_table_style_index.js",
|
||||
"fileHash": "4ac26944",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/table-column/style/index": {
|
||||
"src": "../../element-plus/es/components/table-column/style/index.mjs",
|
||||
"file": "element-plus_es_components_table-column_style_index.js",
|
||||
"fileHash": "37b1f53a",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/message-box/style/index": {
|
||||
"src": "../../element-plus/es/components/message-box/style/index.mjs",
|
||||
"file": "element-plus_es_components_message-box_style_index.js",
|
||||
"fileHash": "4b13d5b3",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/upload/style/index": {
|
||||
"src": "../../element-plus/es/components/upload/style/index.mjs",
|
||||
"file": "element-plus_es_components_upload_style_index.js",
|
||||
"fileHash": "238313e0",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/date-picker/style/index": {
|
||||
"src": "../../element-plus/es/components/date-picker/style/index.mjs",
|
||||
"file": "element-plus_es_components_date-picker_style_index.js",
|
||||
"fileHash": "37769ea1",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/radio-group/style/index": {
|
||||
"src": "../../element-plus/es/components/radio-group/style/index.mjs",
|
||||
"file": "element-plus_es_components_radio-group_style_index.js",
|
||||
"fileHash": "0481c8fb",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/radio/style/index": {
|
||||
"src": "../../element-plus/es/components/radio/style/index.mjs",
|
||||
"file": "element-plus_es_components_radio_style_index.js",
|
||||
"fileHash": "2d48a94a",
|
||||
"needsInterop": false
|
||||
},
|
||||
"element-plus/es/components/image/style/index": {
|
||||
"src": "../../element-plus/es/components/image/style/index.mjs",
|
||||
"file": "element-plus_es_components_image_style_index.js",
|
||||
"fileHash": "5adb848e",
|
||||
"needsInterop": false
|
||||
}
|
||||
},
|
||||
"chunks": {
|
||||
"chunk-LLX57AWP": {
|
||||
"file": "chunk-LLX57AWP.js"
|
||||
},
|
||||
"chunk-DJEZ4JTC": {
|
||||
"file": "chunk-DJEZ4JTC.js"
|
||||
},
|
||||
"chunk-PPVUTFQ4": {
|
||||
"file": "chunk-PPVUTFQ4.js"
|
||||
},
|
||||
"chunk-GWFAMI2R": {
|
||||
"file": "chunk-GWFAMI2R.js"
|
||||
},
|
||||
"chunk-AJCL53Z6": {
|
||||
"file": "chunk-AJCL53Z6.js"
|
||||
},
|
||||
"chunk-MNGJP5CX": {
|
||||
"file": "chunk-MNGJP5CX.js"
|
||||
},
|
||||
"chunk-GKVWLPNN": {
|
||||
"file": "chunk-GKVWLPNN.js"
|
||||
},
|
||||
"chunk-DS4Y6AOL": {
|
||||
"file": "chunk-DS4Y6AOL.js"
|
||||
},
|
||||
"chunk-NHX6JBU6": {
|
||||
"file": "chunk-NHX6JBU6.js"
|
||||
},
|
||||
"chunk-CI3L27KN": {
|
||||
"file": "chunk-CI3L27KN.js"
|
||||
},
|
||||
"chunk-772POZ6I": {
|
||||
"file": "chunk-772POZ6I.js"
|
||||
},
|
||||
"chunk-MFXAVKGL": {
|
||||
"file": "chunk-MFXAVKGL.js"
|
||||
},
|
||||
"chunk-TJY4NJSL": {
|
||||
"file": "chunk-TJY4NJSL.js"
|
||||
},
|
||||
"chunk-7AKRAGCT": {
|
||||
"file": "chunk-7AKRAGCT.js"
|
||||
},
|
||||
"chunk-5WWUZCGV": {
|
||||
"file": "chunk-5WWUZCGV.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue