接口的使用
top.tangyh.basic.base.service.SuperService
使用SuperService的程序包
程序包
说明
-
top.tangyh.basic.base.controller中SuperService的使用
类型参数类型为SuperService的top.tangyh.basic.base.controller中的类修饰符和类型类说明classSuperController<S extends SuperService<Id,Entity>, Id extends Serializable, Entity extends SuperEntity<Id>, SaveVO, UpdateVO, PageQuery, ResultVO> SuperNoPoiControllerclassSuperReadController<S extends SuperService<Id,Entity>, Id extends Serializable, Entity extends SuperEntity<Id>, PageQuery, ResultVO> SuperReadControllerclassSuperSimpleController<S extends SuperService<Id,Entity>, Id extends Serializable, Entity extends SuperEntity<Id>> 简单的实现了BaseController,为了获取注入 Service 和 实体类型classSuperWriteController<S extends SuperService<Id,Entity>, Id extends Serializable, Entity extends SuperEntity<Id>, SaveVO, UpdateVO> SuperReadController -
top.tangyh.basic.base.service中SuperService的使用
修饰符和类型接口说明interfaceSuperCacheService<Id extends Serializable,Entity extends SuperEntity<?>> 基于MP的 IService 新增了3个方法: getByIdCache 其中: 1,getByIdCache 方法 会先从缓存查询,后从DB查询 (取决于实现类) 2、SuperService 上的方法 -
top.tangyh.basic.base.service.impl中SuperService的使用
修饰符和类型类说明classSuperCacheServiceImpl<M extends SuperCacheManager<Entity>,Id extends Serializable, Entity extends SuperEntity<?>> 基于 CacheOps 实现的 缓存实现 默认的key规则: #{CacheKeyBuilder#key()}:idclassSuperServiceImpl<M extends SuperManager<Entity>,Id extends Serializable, Entity extends SuperEntity<?>> 不含缓存的Service实现