From 4c3a735ef7d7066e7e18754218661a511bca4fb8 Mon Sep 17 00:00:00 2001 From: Kaiser-Yang Date: Tue, 20 Aug 2024 13:22:02 +0000 Subject: [PATCH] Apply Google Java Style Format --- src/main/java/edu/cmipt/gcs/dao/UserMapper.java | 3 +-- src/main/java/edu/cmipt/gcs/pojo/UserPO.java | 15 ++++++++++----- .../cmipt/gcs/controller/dao/UserMapperTest.java | 13 ++++++------- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/main/java/edu/cmipt/gcs/dao/UserMapper.java b/src/main/java/edu/cmipt/gcs/dao/UserMapper.java index d9e648f..38e42a0 100644 --- a/src/main/java/edu/cmipt/gcs/dao/UserMapper.java +++ b/src/main/java/edu/cmipt/gcs/dao/UserMapper.java @@ -4,5 +4,4 @@ import edu.cmipt.gcs.pojo.UserPO; -public interface UserMapper extends BaseMapper { -} +public interface UserMapper extends BaseMapper {} diff --git a/src/main/java/edu/cmipt/gcs/pojo/UserPO.java b/src/main/java/edu/cmipt/gcs/pojo/UserPO.java index f38aff8..4b7bd3e 100644 --- a/src/main/java/edu/cmipt/gcs/pojo/UserPO.java +++ b/src/main/java/edu/cmipt/gcs/pojo/UserPO.java @@ -1,11 +1,16 @@ package edu.cmipt.gcs.pojo; -import java.time.LocalDateTime; - import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDateTime; + @TableName("t_user") -public record UserPO(@TableId Long pkUserId, String username, String email, String userPassword, LocalDateTime gmtCreated, - LocalDateTime gmtUpdated, LocalDateTime gmtDeleted) { -} +public record UserPO( + @TableId Long pkUserId, + String username, + String email, + String userPassword, + LocalDateTime gmtCreated, + LocalDateTime gmtUpdated, + LocalDateTime gmtDeleted) {} diff --git a/src/test/java/edu/cmipt/gcs/controller/dao/UserMapperTest.java b/src/test/java/edu/cmipt/gcs/controller/dao/UserMapperTest.java index 09bbe61..424f593 100644 --- a/src/test/java/edu/cmipt/gcs/controller/dao/UserMapperTest.java +++ b/src/test/java/edu/cmipt/gcs/controller/dao/UserMapperTest.java @@ -1,21 +1,20 @@ package edu.cmipt.gcs.controller.dao; -import java.util.List; +import com.baomidou.mybatisplus.core.toolkit.Assert; + +import edu.cmipt.gcs.dao.UserMapper; +import edu.cmipt.gcs.pojo.UserPO; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import com.baomidou.mybatisplus.core.toolkit.Assert; - -import edu.cmipt.gcs.dao.UserMapper; -import edu.cmipt.gcs.pojo.UserPO; +import java.util.List; @SpringBootTest public class UserMapperTest { - @Autowired - private UserMapper userMapper; + @Autowired private UserMapper userMapper; @Test public void testSelect() {