Compare commits
No commits in common. "646cea9ab274dd64d2873a8b5db1eb39b2d1432b" and "a95ed43a2c511d75cabd92356e5ee7ed3fc4c0e0" have entirely different histories.
646cea9ab2
...
a95ed43a2c
|
@ -10,3 +10,4 @@ auth:
|
||||||
- /sys/third/callback/**
|
- /sys/third/callback/**
|
||||||
- /sys/third/render/**
|
- /sys/third/render/**
|
||||||
- /upload/**
|
- /upload/**
|
||||||
|
- /
|
|
@ -9,12 +9,4 @@ auth:
|
||||||
- /swagger-ui/**
|
- /swagger-ui/**
|
||||||
- /doc.html
|
- /doc.html
|
||||||
- /
|
- /
|
||||||
- /maku/t_user/login
|
|
||||||
- /maku/t_user/updateUser
|
|
||||||
- /maku/t_user/register
|
|
||||||
- /maku/t_user/logout
|
|
||||||
- /user/login
|
- /user/login
|
||||||
- /maku/t_book/list/search
|
|
||||||
- /maku/t_book/{id}
|
|
||||||
- /user/login
|
|
||||||
|
|
||||||
|
|
|
@ -47,16 +47,6 @@ public class TBookController {
|
||||||
|
|
||||||
return Result.ok(entity);
|
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")
|
@GetMapping("page")
|
||||||
@Operation(summary = "分页")
|
@Operation(summary = "分页")
|
||||||
|
@ -67,12 +57,12 @@ public class TBookController {
|
||||||
return Result.ok(page);
|
return Result.ok(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("{id}")
|
@GetMapping("{id}")
|
||||||
@Operation(summary = "信息")
|
@Operation(summary = "信息")
|
||||||
// @PreAuthorize("hasAuthority('maku:t_book:info')")
|
@PreAuthorize("hasAuthority('maku:t_book:info')")
|
||||||
public Result<TBookVO> get(@PathVariable("id") Long id){
|
public Result<TBookVO> get(@PathVariable("id") Long id){
|
||||||
TBookEntity entity = tBookService.getById(id);
|
TBookEntity entity = tBookService.getById(id);
|
||||||
|
|
||||||
return Result.ok(TBookConvert.INSTANCE.convert(entity));
|
return Result.ok(TBookConvert.INSTANCE.convert(entity));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,5 +24,4 @@ public interface TBookService extends BaseService<TBookEntity> {
|
||||||
|
|
||||||
void delete(List<Long> idList);
|
void delete(List<Long> idList);
|
||||||
|
|
||||||
TBookEntity getByName(String name);
|
|
||||||
}
|
}
|
|
@ -61,12 +61,4 @@ public class TBookServiceImpl extends BaseServiceImpl<TBookDao, TBookEntity> imp
|
||||||
removeByIds(idList);
|
removeByIds(idList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public TBookEntity getByName(String name) {
|
|
||||||
LambdaQueryWrapper<TBookEntity> wrapper = Wrappers.lambdaQuery();
|
|
||||||
wrapper.eq(TBookEntity::getBookName, name);
|
|
||||||
return baseMapper.selectOne(wrapper);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -2,9 +2,9 @@ spring:
|
||||||
data:
|
data:
|
||||||
redis:
|
redis:
|
||||||
database: 0
|
database: 0
|
||||||
host: localhost
|
host: 127.0.0.1
|
||||||
port: 6379
|
port: 6379
|
||||||
# password: 123456
|
password: 123456
|
||||||
#timeout: 6000ms # 连接超时时长(毫秒)
|
#timeout: 6000ms # 连接超时时长(毫秒)
|
||||||
datasource:
|
datasource:
|
||||||
dynamic:
|
dynamic:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user