Skip to content

Commit f458e4a

Browse files
committed
remove tag
1 parent 73fba20 commit f458e4a

File tree

7 files changed

+17
-31
lines changed

7 files changed

+17
-31
lines changed

quick-sample-server/samaple-server/src/main/java/com/quick/entity/CtKeyPoolEntity.java renamed to quick-sample-server/samaple-server/src/main/java/com/quick/entity/Sample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@Getter
2222
@Setter
2323
@TableName("ct_key_pool")
24-
public class CtKeyPoolEntity implements Serializable {
24+
public class Sample implements Serializable {
2525

2626
private static final long serialVersionUID = 1L;
2727

quick-sample-server/samaple-server/src/main/java/com/quick/mapper/CtKeyPoolMapper.java renamed to quick-sample-server/samaple-server/src/main/java/com/quick/mapper/SampleMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.quick.mapper;
22

33
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4-
import com.quick.entity.CtKeyPoolEntity;
4+
import com.quick.entity.Sample;
55

66
/**
77
* <p>
@@ -11,6 +11,6 @@
1111
* @author vector4wang
1212
* @since 2023-09-27
1313
*/
14-
public interface CtKeyPoolMapper extends BaseMapper<CtKeyPoolEntity> {
14+
public interface SampleMapper extends BaseMapper<Sample> {
1515

1616
}

quick-sample-server/samaple-server/src/main/java/com/quick/service/CtKeyPoolService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.quick.service;
22

3-
import com.quick.entity.CtKeyPoolEntity;
3+
import com.quick.entity.Sample;
44
import com.baomidou.mybatisplus.extension.service.IService;
55

66
/**
@@ -11,6 +11,6 @@
1111
* @author vector4wang
1212
* @since 2023-09-27
1313
*/
14-
public interface CtKeyPoolService extends IService<CtKeyPoolEntity> {
14+
public interface CtKeyPoolService extends IService<Sample> {
1515

1616
}

quick-sample-server/samaple-server/src/main/java/com/quick/service/impl/CtKeyPoolServiceImp.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.quick.service.impl;
22

3-
import com.quick.entity.CtKeyPoolEntity;
4-
import com.quick.mapper.CtKeyPoolMapper;
3+
import com.quick.entity.Sample;
4+
import com.quick.mapper.SampleMapper;
55
import com.quick.service.CtKeyPoolService;
66
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
77
import org.springframework.stereotype.Service;
@@ -15,6 +15,6 @@
1515
* @since 2023-09-27
1616
*/
1717
@Service
18-
public class CtKeyPoolServiceImp extends ServiceImpl<CtKeyPoolMapper, CtKeyPoolEntity> implements CtKeyPoolService {
18+
public class CtKeyPoolServiceImp extends ServiceImpl<SampleMapper, Sample> implements CtKeyPoolService {
1919

2020
}

quick-sample-server/samaple-server/src/main/resources/mapper/CtKeyPoolMapper.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3+
<mapper namespace="com.quick.mapper.SampleMapper">
4+
5+
</mapper>

quick-sample-server/samaple-server/src/test/java/TestMain.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import com.quick.CustomApplication;
2-
import com.quick.entity.CtKeyPoolEntity;
2+
import com.quick.entity.Sample;
33
import com.quick.service.CtKeyPoolService;
44
import org.junit.jupiter.api.Test;
55
import org.springframework.beans.factory.annotation.Autowired;
@@ -15,9 +15,9 @@ public class TestMain {
1515
private CtKeyPoolService ctKeyPoolService;
1616
@Test
1717
public void testSelect() {
18-
List<CtKeyPoolEntity> list = ctKeyPoolService.list();
19-
Map<String, CtKeyPoolEntity> listMap = list.stream()
20-
.collect(Collectors.toMap(CtKeyPoolEntity::getApiKey, item -> item, (o1, o2) -> o1));
18+
List<Sample> list = ctKeyPoolService.list();
19+
Map<String, Sample> listMap = list.stream()
20+
.collect(Collectors.toMap(Sample::getApiKey, item -> item, (o1, o2) -> o1));
2121

2222
System.out.println(list);
2323
}

0 commit comments

Comments
 (0)