优化注释

v1.4.1
hiparker 4 years ago
parent 07cb28b484
commit d66d6b1ec9

@ -28,11 +28,11 @@ import lombok.EqualsAndHashCode;
import org.opsli.core.base.entity.BaseEntity;
/**
* #(data.codeTitle) Entity
*
* @author #(data.authorName)
* @date #(currTime)
*/
* #(data.codeTitle) Entity
*
* @author #(data.authorName)
* @date #(currTime)
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class #(data.model.tableName) extends BaseEntity {

@ -1,18 +1,18 @@
/**
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
#if(data.subModuleName != null && data.subModuleName != "")
package #(data.packageName+"."+data.moduleName+"."+data.subModuleName).mapper;
#else
@ -29,11 +29,11 @@ import #(data.packageName+"."+data.moduleName).entity.#(data.model.tableName);
#end
/**
* #(data.codeTitle) Mapper
*
* @author #(data.authorName)
* @date #(currTime)
*/
* #(data.codeTitle) Mapper
*
* @author #(data.authorName)
* @date #(currTime)
*/
@Mapper
public interface #(data.model.tableName)Mapper extends BaseMapper<#(data.model.tableName)> {

@ -33,11 +33,11 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
/**
* #(data.codeTitle) Model
*
* @author #(data.authorName)
* @date #(currTime)
*/
* #(data.codeTitle) Model
*
* @author #(data.authorName)
* @date #(currTime)
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class #(data.model.tableName)Model extends ApiWrapper {

@ -1,18 +1,18 @@
/**
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
#if(data.subModuleName != null && data.subModuleName != "")
package #(data.packageName+"."+data.moduleName+"."+data.subModuleName).service;
#else
@ -31,11 +31,11 @@ import #(apiPath).wrapper.#(data.moduleName).#(data.model.tableName)Model;
#end
/**
* #(data.codeTitle) Service
*
* @author #(data.authorName)
* @date #(currTime)
*/
* #(data.codeTitle) Service
*
* @author #(data.authorName)
* @date #(currTime)
*/
public interface I#(data.model.tableName)Service extends CrudServiceInterface<#(data.model.tableName), #(data.model.tableName)Model> {
}

@ -1,18 +1,18 @@
/**
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
#if(data.subModuleName != null && data.subModuleName != "")
package #(data.packageName+"."+data.moduleName+"."+data.subModuleName).service.impl;
#else
@ -39,11 +39,11 @@ import #(data.packageName+"."+data.moduleName).mapper.#(data.model.tableName)Map
/**
* #(data.codeTitle) Service Impl
*
* @author #(data.authorName)
* @date #(currTime)
*/
* #(data.codeTitle) Service Impl
*
* @author #(data.authorName)
* @date #(currTime)
*/
@Service
public class #(data.model.tableName)ServiceImpl extends CrudServiceImpl<#(data.model.tableName)Mapper, #(data.model.tableName), #(data.model.tableName)Model>
implements I#(data.model.tableName)Service {

@ -1,18 +1,18 @@
/**
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
#if(data.subModuleName != null && data.subModuleName != "")
package #(data.packageName+"."+data.moduleName+"."+data.subModuleName).web;
#else
@ -52,11 +52,11 @@ import #(apiPath).web.#(data.moduleName).#(data.model.tableName)RestApi;
#end
/**
* #(data.codeTitle) Controller
*
* @author #(data.authorName)
* @date #(currTime)
*/
* #(data.codeTitle) Controller
*
* @author #(data.authorName)
* @date #(currTime)
*/
@Api(tags = #(data.model.tableName)RestApi.TITLE)
@Slf4j
#if(data.subModuleName != null && data.subModuleName != "")

@ -24,11 +24,10 @@ import lombok.EqualsAndHashCode;
import org.opsli.core.base.entity.BaseEntity;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.gentest.carinfo.entity
* @Author: Parker
* @CreateTime: 2020-12-20 20:12:57
* @Description:
*
*
* @author Parker
* @date 2020-12-20 20:12:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ -54,10 +53,6 @@ public class TestCar extends BaseEntity {
// ========================================
/** 多租户字段 */
private String tenantId;
@ -65,5 +60,4 @@ public class TestCar extends BaseEntity {
@TableLogic
private Integer deleted;
}

@ -21,12 +21,11 @@ import org.apache.ibatis.annotations.Param;
import org.opsli.modulars.gentest.carinfo.entity.TestCar;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.gentest.carinfo.mapper
* @Author: Parker
* @CreateTime: 2020-12-20 20:12:57
* @Description: Mapper
*/
* Mapper
*
* @author Parker
* @date 2020-12-20 20:12:57
*/
@Mapper
public interface TestCarMapper extends BaseMapper<TestCar> {

@ -22,12 +22,11 @@ import org.opsli.modulars.gentest.carinfo.entity.TestCar;
import org.opsli.api.wrapper.gentest.carinfo.TestCarModel;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.gentest.carinfo.service
* @Author: Parker
* @CreateTime: 2020-12-20 20:12:57
* @Description: Service
*/
* Service
*
* @author Parker
* @date 2020-12-20 20:12:57
*/
public interface ITestCarService extends CrudServiceInterface<TestCar, TestCarModel> {
}

@ -26,14 +26,12 @@ import org.opsli.api.wrapper.gentest.carinfo.TestCarModel;
import org.opsli.modulars.gentest.carinfo.service.ITestCarService;
import org.opsli.modulars.gentest.carinfo.mapper.TestCarMapper;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.gentest.carinfo.service.impl
* @Author: Parker
* @CreateTime: 2020-12-20 20:12:57
* @Description: Service Impl
*/
* Service Impl
*
* @author Parker
* @date 2020-12-20 20:12:57
*/
@Service
public class TestCarServiceImpl extends CrudServiceImpl<TestCarMapper, TestCar, TestCarModel>
implements ITestCarService {

@ -40,12 +40,11 @@ import org.opsli.modulars.gentest.carinfo.service.ITestCarService;
import org.opsli.api.web.gentest.carinfo.TestCarRestApi;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.gentest.carinfo.web
* @Author: Parker
* @CreateTime: 2020-12-20 20:12:57
* @Description: Controller
*/
* Controller
*
* @author Parker
* @date 2020-12-20 20:12:57
*/
@Api(tags = TestCarRestApi.TITLE)
@Slf4j
@ApiRestController("/gentest/carinfo")
@ -163,7 +162,6 @@ public class TestCarRestController extends BaseRestController<TestCar, TestCarMo
*
* @param request request
* @param response response
* @return ResultVo
*/
@ApiOperation(value = "导出Excel", notes = "导出Excel")
@RequiresPermissionsCus("gentest_carinfo_export")
@ -194,7 +192,6 @@ public class TestCarRestController extends BaseRestController<TestCar, TestCarMo
* Excel
* RequiresPermissionsCus
* @param response response
* @return ResultVo
*/
@ApiOperation(value = "导出Excel模版", notes = "导出Excel模版")
@RequiresPermissionsCus("gentest_carinfo_import")

@ -24,11 +24,10 @@ import lombok.EqualsAndHashCode;
import org.opsli.core.base.entity.BaseEntity;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.gentest.user.entity
* @Author:
* @CreateTime: 2020-11-22 12:12:05
* @Description:
*
*
* @author Parker
* @date 2020-11-22 12:12:05
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ -53,16 +52,10 @@ public class TestUser extends BaseEntity {
// ========================================
/** 多租户字段 */
private String tenantId;
/** 逻辑删除字段 */
private Integer deleted;
}

@ -1,18 +1,18 @@
/**
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.opsli.modulars.gentest.user.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -21,12 +21,11 @@ import org.apache.ibatis.annotations.Param;
import org.opsli.modulars.gentest.user.entity.TestUser;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.gentest.user.mapper
* @Author:
* @CreateTime: 2020-11-22 12:12:05
* @Description: Mapper
*/
* Mapper
*
* @author Parker
* @date 2020-11-22 12:12:05
*/
@Mapper
public interface TestUserMapper extends BaseMapper<TestUser> {

@ -1,18 +1,18 @@
/**
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.opsli.modulars.gentest.user.service;
import org.opsli.core.base.service.interfaces.CrudServiceInterface;
@ -22,12 +22,11 @@ import org.opsli.modulars.gentest.user.entity.TestUser;
import org.opsli.api.wrapper.gentest.user.TestUserModel;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.gentest.user.service
* @Author:
* @CreateTime: 2020-11-22 12:12:05
* @Description: Service
*/
* Service
*
* @author Parker
* @date 2020-11-22 12:12:05
*/
public interface ITestUserService extends CrudServiceInterface<TestUser, TestUserModel> {
}

@ -28,12 +28,11 @@ import org.opsli.modulars.gentest.user.mapper.TestUserMapper;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.gentest.user.service.impl
* @Author:
* @CreateTime: 2020-11-22 12:12:05
* @Description: Service Impl
*/
* Service Impl
*
* @author Parker
* @date 2020-11-22 12:12:05
*/
@Service
public class TestUserServiceImpl extends CrudServiceImpl<TestUserMapper, TestUser, TestUserModel>
implements ITestUserService {

@ -41,12 +41,11 @@ import org.opsli.api.web.gentest.user.TestUserRestApi;
import java.lang.reflect.Method;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.gentest.user.web
* @Author:
* @CreateTime: 2020-11-22 12:12:05
* @Description: Controller
*/
* Controller
*
* @author Parker
* @date 2020-11-22 12:12:05
*/
@Api(tags = TestUserRestApi.TITLE)
@Slf4j
@ApiRestController("/gentest/user")
@ -156,7 +155,6 @@ public class TestUserRestController extends BaseRestController<TestUser, TestUse
* RequiresPermissionsCus
* @param request request
* @param response response
* @return ResultVo
*/
@ApiOperation(value = "导出Excel", notes = "导出Excel")
@RequiresPermissionsCus("gentest_user_export")
@ -187,7 +185,6 @@ public class TestUserRestController extends BaseRestController<TestUser, TestUse
* Excel
* RequiresPermissionsCus
* @param response response
* @return ResultVo
*/
@ApiOperation(value = "导出Excel模版", notes = "导出Excel模版")
@RequiresPermissionsCus("gentest_user_import")

@ -1,3 +1,18 @@
/**
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.opsli.modulars.test.entity;
import lombok.Data;
@ -5,11 +20,10 @@ import lombok.EqualsAndHashCode;
import org.opsli.core.base.entity.BaseEntity;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.test.entity
* @Author: Parker
* @CreateTime: 2020-09-16 17:33
* @Description:
*
*
* @author Parker
* @date 2020-09-16 17:33
*/
@Data
@EqualsAndHashCode(callSuper = false)

@ -1,3 +1,18 @@
/**
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.opsli.modulars.test.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -5,15 +20,19 @@ import org.apache.ibatis.annotations.Mapper;
import org.opsli.modulars.test.entity.TestEntity;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.test.mapper
* @Author: Parker
* @CreateTime: 2020-09-17 13:01
* @Description: Mapper
* Mapper
*
* @author Parker
* @date 2020-09-17 13:01
*/
@Mapper
public interface TestMapper extends BaseMapper<TestEntity> {
/**
*
* @param testEntity Entity
* @return TestEntity
*/
TestEntity getByName(TestEntity testEntity);
}

@ -1,3 +1,18 @@
/**
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.opsli.modulars.test.service;
import org.opsli.api.wrapper.test.TestModel;
@ -5,18 +20,17 @@ import org.opsli.core.base.service.interfaces.CrudServiceInterface;
import org.opsli.modulars.test.entity.TestEntity;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.test.service
* @Author: Parker
* @CreateTime: 2020-09-17 13:07
* @Description:
* Service
*
* @author Parker
* @date 2020-09-17 13:01
*/
public interface ITestService extends CrudServiceInterface<TestEntity,TestModel> {
/**
*
* @param model
* @return
* @param model
* @return
*/
TestModel getByName(TestModel model);

@ -1,3 +1,18 @@
/**
* Copyright 2020 OPSLI https://www.opsli.com
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.opsli.modulars.test.service.impl;
import org.opsli.api.wrapper.test.TestModel;
@ -15,18 +30,15 @@ import java.util.Collection;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.test.service
* @Author: Parker
* @CreateTime: 2020-09-16 17:34
* @Description:
*
*
* @EnableHotData
*
*
* -- @HotDataPut @HotDataDel
*
*
* @author Parker
* @date 2020-09-17 13:01
*/
@Service
@EnableHotData

@ -24,13 +24,11 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.reflect.Method;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.test.web
* @Author: Parker
* @CreateTime: 2020-09-13 17:40
* @Description:
* Controller
*
* @author Parker
* @date 2020-09-17 13:01
*/
@Api(tags = "测试类")
@Slf4j
@ -140,7 +138,6 @@ public class TestRestController extends BaseRestController<TestEntity, TestModel
* Excel
* @param request request
* @param response response
* @return ResultVo
*/
@ApiOperation(value = "导出Excel", notes = "导出Excel")
@RequiresPermissionsCus("gentest_test_export")
@ -169,7 +166,6 @@ public class TestRestController extends BaseRestController<TestEntity, TestModel
/**
* Excel
* @param response response
* @return ResultVo
*/
@ApiOperation(value = "导出Excel模版", notes = "导出Excel模版")
@RequiresPermissionsCus("gentest_test_import")

@ -1,49 +0,0 @@
package org.opsli.modulars.test.web;
import io.swagger.annotations.ApiOperation;
import org.opsli.api.base.result.ResultVo;
import org.opsli.api.web.test.TestApi;
import org.opsli.api.wrapper.test.TestModel;
import org.opsli.common.annotation.ApiRestController;
import org.opsli.common.constants.CacheConstants;
import org.opsli.core.cache.local.CacheUtil;
import org.opsli.plugins.cache.EhCachePlugin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.ArrayList;
import java.util.List;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.modulars.test.web
* @Author: Parker
* @CreateTime: 2020-09-13 17:40
* @Description:
*/
//@ApiRestController("/test2")
public class TestRestRestController2{
@Autowired
TestApi testApi;
@Autowired
EhCachePlugin ehCachePlugin;
@ApiOperation(value = "测试2", notes = "测试2")
@GetMapping("/getDictBy")
public ResultVo<?> t1(){
String id = "test";
List<TestModel> testModelList = new ArrayList<>();
for (int i = 0; i < 10; i++) {
TestModel testModel = new TestModel();
testModel.setId(id+i);
testModel.setName("测试数据"+i);
testModelList.add(testModel);
CacheUtil.put(id+i,testModel);
}
return ResultVo.success(testModelList);
}
}
Loading…
Cancel
Save