Skip to content

Commit

Permalink
Apply Google Java Style Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiser-Yang authored and github-actions[bot] committed Aug 20, 2024
1 parent 6167ca7 commit 4c3a735
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
3 changes: 1 addition & 2 deletions src/main/java/edu/cmipt/gcs/dao/UserMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@

import edu.cmipt.gcs.pojo.UserPO;

public interface UserMapper extends BaseMapper<UserPO> {
}
public interface UserMapper extends BaseMapper<UserPO> {}
15 changes: 10 additions & 5 deletions src/main/java/edu/cmipt/gcs/pojo/UserPO.java
Original file line number Diff line number Diff line change
@@ -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) {}
13 changes: 6 additions & 7 deletions src/test/java/edu/cmipt/gcs/controller/dao/UserMapperTest.java
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down

0 comments on commit 4c3a735

Please sign in to comment.