feat: 更新了一下注释

更新了一下注释更新了一下注释
This commit is contained in:
yangjiyu
2022-11-17 17:13:30 +08:00
parent d087fe4c44
commit 8cc7ff7511
67 changed files with 1785 additions and 231 deletions
@@ -5,10 +5,26 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
/**
* <p>Company: 成都返空汇网络技术有限公司 </p>
* <p>Description: </p>
*
* @author yangjiyu
* @version 1.0.0
* @email "mailto:yangjiyu@fkhwl.com"
* @date 2022.11.17 17:08
* @since 1.0
*/
@SpringBootApplication
@EnableSwagger(applicationName = "test", scanPackagesPath = "com.aos.test.web")
@EnableConfigurationProperties
public class Application {
/**
* Main
*
* @param args args
* @since 1.0
*/
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@@ -10,33 +10,36 @@ import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>Company: 成都返空汇网络技术有限公司 </p>
* <p>Description: </p>
*
* @author yangjiyu
* @version 1.0.0
* @email "mailto:yangjiyu@fkhwl.com"
* @date 2022.11.17 17:08
* @TableName test
* @since 1.0
*/
@TableName(value = "test_table")
@Data
@SensitiveData
public class TestTable implements Serializable {
/**
*
*/
/** Id */
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
*
*/
/** Delete time */
@TableField(value = "delete_time")
@TableLogic
private LocalDateTime deleteTime;
/**
*
*/
/** Text */
@TableField(value = "text")
@DecryptTransaction
@EncryptTransaction
private String text;
/** serialVersionUID */
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}
@@ -5,10 +5,17 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>Company: 成都返空汇网络技术有限公司 </p>
* <p>Description: </p>
*
* @author wyl
* @description 针对表【test】的数据库操作Mapper
* @createDate 2022-11-11 23:39:29
* @version 1.0.0
* @email "mailto:yangjiyu@fkhwl.com"
* @date 2022.11.17 17:08
* @description 针对表 【test】的数据库操作Mapper
* @createDate 2022 -11-11 23:39:29
* @Entity mybatis.domain.Test
* @since 1.0
*/
@Mapper
public interface TestMapper extends BaseMapper<TestTable> {
@@ -4,9 +4,16 @@ import com.aos.test.mybatis.domain.TestTable;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>Company: 成都返空汇网络技术有限公司 </p>
* <p>Description: </p>
*
* @author wyl
* @description 针对表【test】的数据库操作Service
* @createDate 2022-11-11 23:39:29
* @version 1.0.0
* @email "mailto:yangjiyu@fkhwl.com"
* @date 2022.11.17 17:08
* @description 针对表 【test】的数据库操作Service
* @createDate 2022 -11-11 23:39:29
* @since 1.0
*/
public interface TestService extends IService<TestTable> {
@@ -7,9 +7,16 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>Company: 成都返空汇网络技术有限公司 </p>
* <p>Description: </p>
*
* @author wyl
* @description 针对表【test】的数据库操作Service实现
* @createDate 2022-11-11 23:39:29
* @version 1.0.0
* @email "mailto:yangjiyu@fkhwl.com"
* @date 2022.11.17 17:08
* @description 针对表 【test】的数据库操作Service实现
* @createDate 2022 -11-11 23:39:29
* @since 1.0
*/
@Service
public class TestServiceImpl extends ServiceImpl<TestMapper, TestTable>
@@ -13,13 +13,29 @@ import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ExecutorService;
/**
* <p>Company: 成都返空汇网络技术有限公司 </p>
* <p>Description: </p>
*
* @author yangjiyu
* @version 1.0.0
* @email "mailto:yangjiyu@fkhwl.com"
* @date 2022.11.17 17:08
* @since 1.0
*/
@RestController
@RequestMapping("/test")
@Api(tags = "测试接口")
@Slf4j
public class TestController {
/** Executor service */
static ExecutorService executorService = ThreadUtil.newExecutor(3);
/**
* Test 1
*
* @since 1.0
*/
@PostMapping("/test1")
@ApiOperation(value = "test1")
public void test1() {
@@ -30,18 +46,36 @@ public class TestController {
log.info("12");
}
/**
* Test 2
*
* @return the string
* @since 1.0
*/
@PostMapping("/test2")
@ApiOperation(value = "test2")
public String test2() {
return "2";
}
/**
* Test 3
*
* @return the list
* @since 1.0
*/
@PostMapping("/test3")
@ApiOperation(value = "test3")
public List<Long> test3() {
return Arrays.asList(1L, 2L, 3L);
}
/**
* Test 4
*
* @throws Exception exception
* @since 1.0
*/
@PostMapping("/test4")
@ApiOperation(value = "test4")
public void test4() throws Exception {
@@ -7,11 +7,31 @@ import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.test.context.junit4.SpringRunner;
/**
* <p>Company: 成都返空汇网络技术有限公司 </p>
* <p>Description: </p>
*
* @author yangjiyu
* @version 1.0.0
* @email "mailto:yangjiyu@fkhwl.com"
* @date 2022.11.17 17:08
* @since 1.0
*/
@RunWith(SpringRunner.class)
@SpringBootTest(args = "--eureka.client.register-with-eureka=false", webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseTest.Application.class)
public class BaseTest {
/**
* <p>Company: 成都返空汇网络技术有限公司 </p>
* <p>Description: </p>
*
* @author yangjiyu
* @version 1.0.0
* @email "mailto:yangjiyu@fkhwl.com"
* @date 2022.11.17 17:08
* @since 1.0
*/
@ComponentScan(basePackages = {"com.aos.test"})
@MapperScan(basePackages = {"com.aos.test.mybatis.mapper"})
public static class Application {
@@ -10,10 +10,26 @@ import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
/**
* <p>Company: 成都返空汇网络技术有限公司 </p>
* <p>Description: </p>
*
* @author yangjiyu
* @version 1.0.0
* @email "mailto:yangjiyu@fkhwl.com"
* @date 2022.11.17 17:08
* @since 1.0
*/
public class MybatisPlusTest extends BaseTest {
/** Test service */
@Autowired
TestService testService;
/**
* Add
*
* @since 1.0
*/
@Test
public void add() {
TestTable test = new TestTable();
@@ -21,11 +37,21 @@ public class MybatisPlusTest extends BaseTest {
testService.save(test);
}
/**
* Delete
*
* @since 1.0
*/
@Test
public void delete() {
testService.removeById(2);
}
/**
* Get
*
* @since 1.0
*/
@Test
public void get() {
LambdaUpdateWrapper<TestTable> testTableLambdaUpdateWrapper = Wrappers.lambdaUpdate(TestTable.class);
@@ -34,6 +60,11 @@ public class MybatisPlusTest extends BaseTest {
System.out.println(list);
}
/**
* Gets page *
*
* @since 1.0
*/
@Test
public void getPage() {
List<TestTable> list = testService.list();