You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
435 B
Plaintext

//import "model.api"
type (
UserReq {
BaseID
*Pagination
}
)
@server(
group: user_admin
prefix: /api/admin/user
jwt: Auth
middleware: Authority
)
service api {
// Create user | 创建用户
@handler createUserAdmin
post /create (UserInfo) returns (BaseID)
// Get user | 获取用户
@handler getUserAdmin
get / (UserReq) returns (UserInfo)
// Delete user | 删除用户
@handler deleteUserAdmin
post / (BaseID)
}