mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
407 B
21 lines
407 B
package v1
|
|
|
|
import (
|
|
. "github.com/alimy/mir/v3"
|
|
. "github.com/alimy/mir/v3/engine"
|
|
"github.com/rocboss/paopao-ce/internal/model/web"
|
|
)
|
|
|
|
func init() {
|
|
AddEntry(new(Admin))
|
|
}
|
|
|
|
// Admin 运维相关服务
|
|
type Admin struct {
|
|
Chain Chain `mir:"-"`
|
|
Group Group `mir:"v1"`
|
|
|
|
// ChangeUserStatus 管理·禁言/解封用户
|
|
ChangeUserStatus func(Post, web.ChangeUserStatusReq) `mir:"/admin/user/status"`
|
|
}
|