生成数据字典代码.

This commit is contained in:
lijiahang
2023-10-16 18:24:20 +08:00
parent 114b17bef4
commit 07162f2528
56 changed files with 2504 additions and 15 deletions

View File

@@ -14,7 +14,7 @@ import static com.orion.ops.framework.biz.operator.log.core.enums.OperatorRiskLe
* @since ${date}
*/
@Module("${package.ModuleName}:${typeHyphen}")
public class ${type}OperatorType {
public class ${type}OperatorType extends InitializingOperatorTypes {
public static final String CREATE = "${typeHyphen}:create";

View File

@@ -106,6 +106,7 @@ public class ${type}ApiImpl implements ${type}Api {
return ${typeLower}DAO.of(wrapper).list(${type}ProviderConvert.MAPPER::to);
}
#if($cacheMeta.enableCache)
@Override
public List<${type}DTO> get${type}ListByCache() {
return ${typeLower}Service.get${type}ListByCache()
@@ -114,6 +115,7 @@ public class ${type}ApiImpl implements ${type}Api {
.collect(Collectors.toList());
}
#end
@Override
public Long get${type}Count(${type}QueryDTO dto) {
log.info("${type}Api.get${type}Count dto: {}", JSON.toJSONString(dto));

View File

@@ -64,6 +64,7 @@ public interface ${type}Api {
*/
List<${type}DTO> get${type}List(${type}QueryDTO dto);
#if($cacheMeta.enableCache)
/**
* ${apiComment.queryListByCache}
*
@@ -71,6 +72,7 @@ public interface ${type}Api {
*/
List<${type}DTO> get${type}ListByCache();
#end
/**
* ${apiComment.queryCount}
*