Compare commits

..

No commits in common. "646cea9ab274dd64d2873a8b5db1eb39b2d1432b" and "a95ed43a2c511d75cabd92356e5ee7ed3fc4c0e0" have entirely different histories.

6 changed files with 6 additions and 32 deletions

View File

@ -10,3 +10,4 @@ auth:
- /sys/third/callback/**
- /sys/third/render/**
- /upload/**
- /

View File

@ -9,12 +9,4 @@ auth:
- /swagger-ui/**
- /doc.html
- /
- /maku/t_user/login
- /maku/t_user/updateUser
- /maku/t_user/register
- /maku/t_user/logout
- /user/login
- /maku/t_book/list/search
- /maku/t_book/{id}
- /user/login

View File

@ -47,16 +47,6 @@ public class TBookController {
return Result.ok(entity);
}
@GetMapping("/list/search")
@Operation(summary = "根据书名查询书籍")
@Parameter
public Result<TBookEntity> getByName(@RequestParam String name){
TBookEntity entity = tBookService.getByName(name);
return Result.ok(entity);
}
@GetMapping("page")
@Operation(summary = "分页")
@ -67,12 +57,12 @@ public class TBookController {
return Result.ok(page);
}
@GetMapping("{id}")
@Operation(summary = "信息")
// @PreAuthorize("hasAuthority('maku:t_book:info')")
@PreAuthorize("hasAuthority('maku:t_book:info')")
public Result<TBookVO> get(@PathVariable("id") Long id){
TBookEntity entity = tBookService.getById(id);
return Result.ok(TBookConvert.INSTANCE.convert(entity));
}

View File

@ -24,5 +24,4 @@ public interface TBookService extends BaseService<TBookEntity> {
void delete(List<Long> idList);
TBookEntity getByName(String name);
}

View File

@ -61,12 +61,4 @@ public class TBookServiceImpl extends BaseServiceImpl<TBookDao, TBookEntity> imp
removeByIds(idList);
}
@Override
public TBookEntity getByName(String name) {
LambdaQueryWrapper<TBookEntity> wrapper = Wrappers.lambdaQuery();
wrapper.eq(TBookEntity::getBookName, name);
return baseMapper.selectOne(wrapper);
}
}

View File

@ -2,9 +2,9 @@ spring:
data:
redis:
database: 0
host: localhost
host: 127.0.0.1
port: 6379
# password: 123456
password: 123456
#timeout: 6000ms # 连接超时时长(毫秒)
datasource:
dynamic: