From 657e9578cbbb60f423a3f63d81236a8bb38dabf6 Mon Sep 17 00:00:00 2001 From: xs <3047979577@qq.com> Date: Fri, 8 Nov 2024 19:02:58 +0800 Subject: [PATCH] small --- .../smallcourse/controller/AttController.java | 32 +++++++++++++ .../controller/FindController.java | 30 +++++++++++++ .../controller/ModelController.java | 31 +++++++++++++ .../controller/MyselfCityController.java | 30 +++++++++++++ .../controller/SchoolController.java | 31 +++++++++++++ .../smallcourse/dao/AttMapper.java | 18 ++++++++ .../smallcourse/dao/FindMapper.java | 18 ++++++++ .../smallcourse/dao/ModelMapper.java | 18 ++++++++ .../smallcourse/dao/MyselfCityMapper.java | 18 ++++++++ .../smallcourse/dao/SchoolMapper.java | 18 ++++++++ .../c202201020323/smallcourse/model/Att.java | 37 +++++++++++++++ .../c202201020323/smallcourse/model/Find.java | 45 +++++++++++++++++++ .../smallcourse/model/Model.java | 37 +++++++++++++++ .../smallcourse/model/MyselfCity.java | 33 ++++++++++++++ .../smallcourse/model/School.java | 33 ++++++++++++++ .../smallcourse/service/IAttService.java | 16 +++++++ .../smallcourse/service/IFindService.java | 16 +++++++ .../smallcourse/service/IModelService.java | 16 +++++++ .../service/IMyselfCityService.java | 16 +++++++ .../smallcourse/service/ISchoolService.java | 16 +++++++ .../service/impl/AttServiceImpl.java | 20 +++++++++ .../service/impl/FindServiceImpl.java | 20 +++++++++ .../service/impl/ModelServiceImpl.java | 20 +++++++++ .../service/impl/MyselfCityServiceImpl.java | 20 +++++++++ .../service/impl/SchoolServiceImpl.java | 20 +++++++++ .../src/main/resources/application.properties | 26 +++-------- .../src/main/resources/mapper/AttMapper.xml | 5 +++ .../src/main/resources/mapper/FindMapper.xml | 5 +++ .../src/main/resources/mapper/ModelMapper.xml | 5 +++ .../resources/mapper/MyselfCityMapper.xml | 5 +++ .../main/resources/mapper/SchoolMapper.xml | 5 +++ 31 files changed, 641 insertions(+), 19 deletions(-) create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/AttController.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/FindController.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/ModelController.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/MyselfCityController.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/SchoolController.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/AttMapper.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/FindMapper.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/ModelMapper.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/MyselfCityMapper.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/SchoolMapper.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Att.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Find.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Model.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/MyselfCity.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/School.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IAttService.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IFindService.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IModelService.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IMyselfCityService.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/ISchoolService.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/AttServiceImpl.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/FindServiceImpl.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/ModelServiceImpl.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/MyselfCityServiceImpl.java create mode 100644 smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/SchoolServiceImpl.java create mode 100644 smallCourse/src/main/resources/mapper/AttMapper.xml create mode 100644 smallCourse/src/main/resources/mapper/FindMapper.xml create mode 100644 smallCourse/src/main/resources/mapper/ModelMapper.xml create mode 100644 smallCourse/src/main/resources/mapper/MyselfCityMapper.xml create mode 100644 smallCourse/src/main/resources/mapper/SchoolMapper.xml diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/AttController.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/AttController.java new file mode 100644 index 0000000..06daf19 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/AttController.java @@ -0,0 +1,32 @@ +package com.xiaoshuai.c202201020323.smallcourse.controller; + +import com.xiaoshuai.c202201020323.smallcourse.model.Att; +import com.xiaoshuai.c202201020323.smallcourse.service.IAttService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +/** + *

+ * 前端控制器 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Controller +@RequestMapping("/api") +public class AttController { + + @Autowired + public IAttService attService; + @ResponseBody + @RequestMapping("/att") + public List att(){ + List list = attService.list(); + return list; + } +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/FindController.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/FindController.java new file mode 100644 index 0000000..4f84d82 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/FindController.java @@ -0,0 +1,30 @@ +package com.xiaoshuai.c202201020323.smallcourse.controller; + +import com.xiaoshuai.c202201020323.smallcourse.service.IFindService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +/** + *

+ * 前端控制器 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Controller +@RequestMapping("/api") +public class FindController { + @Autowired + public IFindService findService; + @ResponseBody + @RequestMapping("/find") + public List find(){ + List list = findService.list(); + return list; + } +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/ModelController.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/ModelController.java new file mode 100644 index 0000000..acab136 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/ModelController.java @@ -0,0 +1,31 @@ +package com.xiaoshuai.c202201020323.smallcourse.controller; + +import com.xiaoshuai.c202201020323.smallcourse.model.Model; +import com.xiaoshuai.c202201020323.smallcourse.service.IModelService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +/** + *

+ * 前端控制器 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Controller +@RequestMapping("/api") +public class ModelController { + @Autowired + public IModelService modelService; + @ResponseBody + @RequestMapping("/model") + public List model(){ + List list = modelService.list(); + return list; + } +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/MyselfCityController.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/MyselfCityController.java new file mode 100644 index 0000000..aef6780 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/MyselfCityController.java @@ -0,0 +1,30 @@ +package com.xiaoshuai.c202201020323.smallcourse.controller; + +import com.xiaoshuai.c202201020323.smallcourse.service.IMyselfCityService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +/** + *

+ * 前端控制器 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Controller +@RequestMapping("/api") +public class MyselfCityController { + @Autowired + public IMyselfCityService myselfCityService; + @ResponseBody + @RequestMapping("/myselfCity") + public List myselfCity(){ + List list = myselfCityService.list(); + return list; + } +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/SchoolController.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/SchoolController.java new file mode 100644 index 0000000..215a9ba --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/controller/SchoolController.java @@ -0,0 +1,31 @@ +package com.xiaoshuai.c202201020323.smallcourse.controller; + +import com.xiaoshuai.c202201020323.smallcourse.model.School; +import com.xiaoshuai.c202201020323.smallcourse.service.ISchoolService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +/** + *

+ * 前端控制器 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Controller +@RequestMapping("/api") +public class SchoolController { + @Autowired + public ISchoolService schoolService; + @ResponseBody + @RequestMapping("/school") + public List school(){ + List list = schoolService.list(); + return list; + } +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/AttMapper.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/AttMapper.java new file mode 100644 index 0000000..4629f39 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/AttMapper.java @@ -0,0 +1,18 @@ +package com.xiaoshuai.c202201020323.smallcourse.dao; + +import com.xiaoshuai.c202201020323.smallcourse.model.Att; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Mapper +public interface AttMapper extends BaseMapper { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/FindMapper.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/FindMapper.java new file mode 100644 index 0000000..c80d9ad --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/FindMapper.java @@ -0,0 +1,18 @@ +package com.xiaoshuai.c202201020323.smallcourse.dao; + +import com.xiaoshuai.c202201020323.smallcourse.model.Find; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Mapper +public interface FindMapper extends BaseMapper { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/ModelMapper.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/ModelMapper.java new file mode 100644 index 0000000..73d220a --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/ModelMapper.java @@ -0,0 +1,18 @@ +package com.xiaoshuai.c202201020323.smallcourse.dao; + +import com.xiaoshuai.c202201020323.smallcourse.model.Model; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Mapper +public interface ModelMapper extends BaseMapper { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/MyselfCityMapper.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/MyselfCityMapper.java new file mode 100644 index 0000000..0fbd1cf --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/MyselfCityMapper.java @@ -0,0 +1,18 @@ +package com.xiaoshuai.c202201020323.smallcourse.dao; + +import com.xiaoshuai.c202201020323.smallcourse.model.MyselfCity; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Mapper +public interface MyselfCityMapper extends BaseMapper { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/SchoolMapper.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/SchoolMapper.java new file mode 100644 index 0000000..6acff0b --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/dao/SchoolMapper.java @@ -0,0 +1,18 @@ +package com.xiaoshuai.c202201020323.smallcourse.dao; + +import com.xiaoshuai.c202201020323.smallcourse.model.School; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Mapper +public interface SchoolMapper extends BaseMapper { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Att.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Att.java new file mode 100644 index 0000000..6925920 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Att.java @@ -0,0 +1,37 @@ +package com.xiaoshuai.c202201020323.smallcourse.model; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Getter +@Setter +public class Att implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + private String head; + + private String vip; + + private String name; + + private String time; + + private String comment; + + private String video; +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Find.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Find.java new file mode 100644 index 0000000..0c906c3 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Find.java @@ -0,0 +1,45 @@ +package com.xiaoshuai.c202201020323.smallcourse.model; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Getter +@Setter +public class Find implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + private String name; + + private String image1; + + private String image2; + + @TableField(value = "videoImg") + private String videoImg; + + private String comment; + + private String title; + + private String number; + + private String time; +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Model.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Model.java new file mode 100644 index 0000000..44205d0 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/Model.java @@ -0,0 +1,37 @@ +package com.xiaoshuai.c202201020323.smallcourse.model; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Getter +@Setter +public class Model implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + private String re; + + private String name; + + private String num; + + private String comment; + + private String image; + + private String video; +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/MyselfCity.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/MyselfCity.java new file mode 100644 index 0000000..6900859 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/MyselfCity.java @@ -0,0 +1,33 @@ +package com.xiaoshuai.c202201020323.smallcourse.model; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Getter +@Setter +@TableName("myself_city") +public class MyselfCity implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + private String position; + + private String comment; + + private String video; +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/School.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/School.java new file mode 100644 index 0000000..569289e --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/model/School.java @@ -0,0 +1,33 @@ +package com.xiaoshuai.c202201020323.smallcourse.model; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import lombok.Getter; +import lombok.Setter; + +/** + *

+ * + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Getter +@Setter +public class School implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + private String watch; + + private String collect; + + private String comment; + + private String video; +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IAttService.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IAttService.java new file mode 100644 index 0000000..e518132 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IAttService.java @@ -0,0 +1,16 @@ +package com.xiaoshuai.c202201020323.smallcourse.service; + +import com.xiaoshuai.c202201020323.smallcourse.model.Att; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +public interface IAttService extends IService { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IFindService.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IFindService.java new file mode 100644 index 0000000..4c0dd0b --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IFindService.java @@ -0,0 +1,16 @@ +package com.xiaoshuai.c202201020323.smallcourse.service; + +import com.xiaoshuai.c202201020323.smallcourse.model.Find; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +public interface IFindService extends IService { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IModelService.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IModelService.java new file mode 100644 index 0000000..ca6f38d --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IModelService.java @@ -0,0 +1,16 @@ +package com.xiaoshuai.c202201020323.smallcourse.service; + +import com.xiaoshuai.c202201020323.smallcourse.model.Model; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +public interface IModelService extends IService { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IMyselfCityService.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IMyselfCityService.java new file mode 100644 index 0000000..14a55a8 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/IMyselfCityService.java @@ -0,0 +1,16 @@ +package com.xiaoshuai.c202201020323.smallcourse.service; + +import com.xiaoshuai.c202201020323.smallcourse.model.MyselfCity; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +public interface IMyselfCityService extends IService { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/ISchoolService.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/ISchoolService.java new file mode 100644 index 0000000..eb23ec1 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/ISchoolService.java @@ -0,0 +1,16 @@ +package com.xiaoshuai.c202201020323.smallcourse.service; + +import com.xiaoshuai.c202201020323.smallcourse.model.School; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +public interface ISchoolService extends IService { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/AttServiceImpl.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/AttServiceImpl.java new file mode 100644 index 0000000..1a25df6 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/AttServiceImpl.java @@ -0,0 +1,20 @@ +package com.xiaoshuai.c202201020323.smallcourse.service.impl; + +import com.xiaoshuai.c202201020323.smallcourse.model.Att; +import com.xiaoshuai.c202201020323.smallcourse.dao.AttMapper; +import com.xiaoshuai.c202201020323.smallcourse.service.IAttService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Service +public class AttServiceImpl extends ServiceImpl implements IAttService { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/FindServiceImpl.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/FindServiceImpl.java new file mode 100644 index 0000000..8f7fd53 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/FindServiceImpl.java @@ -0,0 +1,20 @@ +package com.xiaoshuai.c202201020323.smallcourse.service.impl; + +import com.xiaoshuai.c202201020323.smallcourse.model.Find; +import com.xiaoshuai.c202201020323.smallcourse.dao.FindMapper; +import com.xiaoshuai.c202201020323.smallcourse.service.IFindService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Service +public class FindServiceImpl extends ServiceImpl implements IFindService { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/ModelServiceImpl.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/ModelServiceImpl.java new file mode 100644 index 0000000..42b0b8e --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/ModelServiceImpl.java @@ -0,0 +1,20 @@ +package com.xiaoshuai.c202201020323.smallcourse.service.impl; + +import com.xiaoshuai.c202201020323.smallcourse.model.Model; +import com.xiaoshuai.c202201020323.smallcourse.dao.ModelMapper; +import com.xiaoshuai.c202201020323.smallcourse.service.IModelService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Service +public class ModelServiceImpl extends ServiceImpl implements IModelService { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/MyselfCityServiceImpl.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/MyselfCityServiceImpl.java new file mode 100644 index 0000000..2e602d7 --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/MyselfCityServiceImpl.java @@ -0,0 +1,20 @@ +package com.xiaoshuai.c202201020323.smallcourse.service.impl; + +import com.xiaoshuai.c202201020323.smallcourse.model.MyselfCity; +import com.xiaoshuai.c202201020323.smallcourse.dao.MyselfCityMapper; +import com.xiaoshuai.c202201020323.smallcourse.service.IMyselfCityService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Service +public class MyselfCityServiceImpl extends ServiceImpl implements IMyselfCityService { + +} diff --git a/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/SchoolServiceImpl.java b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/SchoolServiceImpl.java new file mode 100644 index 0000000..aeabfac --- /dev/null +++ b/smallCourse/src/main/java/com/xiaoshuai/c202201020323/smallcourse/service/impl/SchoolServiceImpl.java @@ -0,0 +1,20 @@ +package com.xiaoshuai.c202201020323.smallcourse.service.impl; + +import com.xiaoshuai.c202201020323.smallcourse.model.School; +import com.xiaoshuai.c202201020323.smallcourse.dao.SchoolMapper; +import com.xiaoshuai.c202201020323.smallcourse.service.ISchoolService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author xiao + * @since 2024-11-08 + */ +@Service +public class SchoolServiceImpl extends ServiceImpl implements ISchoolService { + +} diff --git a/smallCourse/src/main/resources/application.properties b/smallCourse/src/main/resources/application.properties index f75dd3a..85e6eb7 100644 --- a/smallCourse/src/main/resources/application.properties +++ b/smallCourse/src/main/resources/application.properties @@ -1,29 +1,17 @@ -# update to localhost -# server.port=80 - spring.application.name=springboot -# file path -spring.web.resources.static-locations=classpath:/img/,\ - file:C:/Users/Administrator/Pictures/Saved Pictures -# file size -spring.servlet.multipart.max-file-size=1024MB -spring.servlet.multipart.max-request-size=10000000MB - -# ?????? spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -# ????? + spring.datasource.name=defaultDataSource -# ??????? -spring.datasource.url=jdbc:mysql://106.53.194.250:63306/mybatis202201020323?serverTimezone=UTC -# ??????&??? + +spring.datasource.url=jdbc:mysql://106.53.194.250:63306/smallcoursedesign202201020323?serverTimezone=UTC + spring.datasource.username=202201020323 spring.datasource.password=@hnucm1254 -#??????????MyBatis?? -#??Mybatis?Mapper?? + mybatis-plus.mapper-locations=classpath:mapper/*.xml -#??Mybatis????? -mybatis-plus.type-aliases-package=com.xiaoshuai.springboot.springboot.model + +mybatis-plus.type-aliases-package=com.xiaoshuai.c202201020323.smallcourse.model logging.level.com.xiaoshuai.springboot.springboot = debug \ No newline at end of file diff --git a/smallCourse/src/main/resources/mapper/AttMapper.xml b/smallCourse/src/main/resources/mapper/AttMapper.xml new file mode 100644 index 0000000..bbf5f0e --- /dev/null +++ b/smallCourse/src/main/resources/mapper/AttMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/smallCourse/src/main/resources/mapper/FindMapper.xml b/smallCourse/src/main/resources/mapper/FindMapper.xml new file mode 100644 index 0000000..dd342c7 --- /dev/null +++ b/smallCourse/src/main/resources/mapper/FindMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/smallCourse/src/main/resources/mapper/ModelMapper.xml b/smallCourse/src/main/resources/mapper/ModelMapper.xml new file mode 100644 index 0000000..7e51fdf --- /dev/null +++ b/smallCourse/src/main/resources/mapper/ModelMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/smallCourse/src/main/resources/mapper/MyselfCityMapper.xml b/smallCourse/src/main/resources/mapper/MyselfCityMapper.xml new file mode 100644 index 0000000..51bd619 --- /dev/null +++ b/smallCourse/src/main/resources/mapper/MyselfCityMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/smallCourse/src/main/resources/mapper/SchoolMapper.xml b/smallCourse/src/main/resources/mapper/SchoolMapper.xml new file mode 100644 index 0000000..527f302 --- /dev/null +++ b/smallCourse/src/main/resources/mapper/SchoolMapper.xml @@ -0,0 +1,5 @@ + + + + +