diff --git a/online-taxi-public/internal-common/src/main/java/com/internal/dto/DriverUser.java b/online-taxi-public/internal-common/src/main/java/com/internal/dto/DriverUser.java new file mode 100644 index 0000000..50e94ab --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/internal/dto/DriverUser.java @@ -0,0 +1,38 @@ +package com.internal.dto; + +import lombok.Data; + +import java.util.Date; + +@Data +public class DriverUser { + + private Integer id; + private String address; + private String driverName; + private String driverPhone; + private Integer driverGender; + private Date driverBrithday; + private String driverNation; + private String driverContactAddress; + private String licenseId; + private Date getDriverLicenseDate; + private Date driverLicenseOn; + private Date driverLicenseOff; + private Integer taxiDriver; + private String certificateNo; + private String networkCarIssueOrganization; + private Date networkCarIssueDate; + private Date getNetworkCarProofDate; + private Date networkCarProofOn; + private Date networkCarProofOff; + private Date registerDate; + private Integer commercialType; + private String contractCompany; + private Date contractOn; + private Date contractOff; + private Integer state; + private Date gmtCreate; + private Date gmtModified; + +} diff --git a/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/ServiceDriverUserApplication.java b/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/ServiceDriverUserApplication.java index 1e0b9fe..05c68ee 100644 --- a/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/ServiceDriverUserApplication.java +++ b/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/ServiceDriverUserApplication.java @@ -1,9 +1,11 @@ package com.taxi.servicedriveruser; +import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication +@MapperScan("com.taxi.servicedriveruser.mapper") public class ServiceDriverUserApplication { public static void main(String[] args) { diff --git a/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/controller/DriverUserController.java b/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/controller/DriverUserController.java new file mode 100644 index 0000000..66a7d85 --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/controller/DriverUserController.java @@ -0,0 +1,14 @@ +package com.taxi.servicedriveruser.controller; + +import com.taxi.servicedriveruser.service.DriverUserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class DriverUserController { + + @Autowired + private DriverUserService driverUserService; + + +} diff --git a/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/mapper/DriverUserMapper.java b/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/mapper/DriverUserMapper.java new file mode 100644 index 0000000..4feacfc --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/mapper/DriverUserMapper.java @@ -0,0 +1,9 @@ +package com.taxi.servicedriveruser.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.internal.dto.DriverUser; +import org.springframework.stereotype.Repository; + +@Repository +public interface DriverUserMapper extends BaseMapper { +} diff --git a/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/service/DriverUserService.java b/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/service/DriverUserService.java new file mode 100644 index 0000000..07b4b94 --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/taxi/servicedriveruser/service/DriverUserService.java @@ -0,0 +1,14 @@ +package com.taxi.servicedriveruser.service; + +import com.taxi.servicedriveruser.mapper.DriverUserMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class DriverUserService { + + @Autowired + private DriverUserMapper driverUserMapper; + + +}