parent
5ee65d6685
commit
d118afb4c1
@ -0,0 +1,20 @@
|
||||
package com.taxi.servicedriveruser.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2023-04-28
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/car")
|
||||
public class CarController {
|
||||
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.taxi.servicedriveruser.generator;
|
||||
|
||||
import com.baomidou.mybatisplus.generator.FastAutoGenerator;
|
||||
import com.baomidou.mybatisplus.generator.config.OutputFile;
|
||||
import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
public class MysqlGenerator {
|
||||
|
||||
public static void main(String[] args) {
|
||||
FastAutoGenerator.create("jdbc:mysql://localhost:3306/service-driver-user?characterEncoding=utf-8&serverTimezone=GMT%2B8",
|
||||
"root", "topsun123")
|
||||
.globalConfig(builder -> {
|
||||
builder.author("author").fileOverride().outputDir("/Users/topsun/Documents/workSpce/gitlab-projectTest/online-taxi-public/service-driver-user/src/main/java");
|
||||
}).packageConfig(builder -> {
|
||||
builder.parent("com.taxi.servicedriveruser").pathInfo(Collections.singletonMap(OutputFile.mapperXml,
|
||||
"/Users/topsun/Documents/workSpce/gitlab-projectTest/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/mapper"));
|
||||
}).strategyConfig(builder -> {
|
||||
builder.addInclude("car");
|
||||
}).templateEngine(new FreemarkerTemplateEngine()).execute();
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.taxi.servicedriveruser.mapper;
|
||||
|
||||
import com.taxi.servicedriveruser.entity.Car;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2023-04-28
|
||||
*/
|
||||
@Repository
|
||||
public interface CarMapper extends BaseMapper<Car> {
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package com.taxi.servicedriveruser.service;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class CarService {
|
||||
}
|
Loading…
Reference in new issue