avalon
Toggle table of contents
0.0.1-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
avalon
avalon-dataset-controller
/
io.github.lishangbu.avalon.dataset.controller
/
TypeController
Type
Controller
@
RestController
@
RequestMapping
(
value
=
[
"/type"
]
)
class
TypeController
(
typeService
:
TypeService
)
属性控制器
Members
Constructors
Type
Controller
Link copied to clipboard
constructor
(
typeService
:
TypeService
)
Functions
delete
By
Id
Link copied to clipboard
@
DeleteMapping
(
value
=
[
"/{id:\d+}"
]
)
fun
deleteById
(
@
PathVariable
id
:
Long
)
按 ID 删除属性
get
Type
Page
Link copied to clipboard
@
GetMapping
(
value
=
[
"/page"
]
)
fun
getTypePage
(
pageable
:
Pageable
,
@
RequestParam
(
required
=
false
)
id
:
Long
?
,
@
RequestParam
(
required
=
false
)
internalName
:
String
?
,
@
RequestParam
(
required
=
false
)
name
:
String
?
)
:
Page
<
Type
>
获取属性分页结果
list
Types
Link copied to clipboard
@
GetMapping
(
value
=
[
"/list"
]
)
fun
listTypes
(
@
RequestParam
(
required
=
false
)
id
:
Long
?
,
@
RequestParam
(
required
=
false
)
internalName
:
String
?
,
@
RequestParam
(
required
=
false
)
name
:
String
?
)
:
List
<
Type
>
查询属性列表
save
Link copied to clipboard
@
PostMapping
fun
save
(
@
RequestBody
type
:
Type
)
:
Type
保存属性
update
Link copied to clipboard
@
PutMapping
fun
update
(
@
RequestBody
type
:
Type
)
:
Type
更新属性