avalon
Toggle table of contents
0.0.1-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
avalon
avalon-dataset
/
io.github.lishangbu.avalon.dataset.controller
/
ItemController
Item
Controller
@
RestController
@
RequestMapping
(
value
=
[
"/item"
]
)
class
ItemController
(
itemService
:
ItemService
)
道具管理控制器
Members
Constructors
Item
Controller
Link copied to clipboard
constructor
(
itemService
:
ItemService
)
Functions
delete
By
Id
Link copied to clipboard
@
DeleteMapping
(
value
=
[
"/{id:\d+}"
]
)
fun
deleteById
(
@
PathVariable
id
:
Long
)
删除指定 ID 的道具
get
Item
Page
Link copied to clipboard
@
GetMapping
(
value
=
[
"/page"
]
)
fun
getItemPage
(
pageable
:
Pageable
,
@
ModelAttribute
specification
:
ItemSpecification
)
:
Page
<
ItemView
>
按筛选条件分页查询道具
save
Link copied to clipboard
@
PostMapping
fun
save
(
@
Valid
@
RequestBody
command
:
SaveItemInput
)
:
ItemView
创建道具
update
Link copied to clipboard
@
PutMapping
fun
update
(
@
Valid
@
RequestBody
command
:
UpdateItemInput
)
:
ItemView
更新道具