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.
23 lines
447 B
23 lines
447 B
1 year ago
|
package v1
|
||
|
|
||
|
import (
|
||
|
. "github.com/alimy/mir/v4"
|
||
|
. "github.com/alimy/mir/v4/engine"
|
||
|
"github.com/rocboss/paopao-ce/internal/model/web"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
Entry[Site]()
|
||
|
}
|
||
|
|
||
|
// Site 站点本身相关的信息服务
|
||
|
type Site struct {
|
||
|
Group `mir:"v1"`
|
||
|
|
||
|
// Version 获取后台版本信息
|
||
|
Version func(Get) web.VersionResp `mir:"/site/version"`
|
||
|
|
||
|
// Profile 站点配置概要信息
|
||
|
Profile func(Get) web.SiteProfileResp `mir:"/site/profile"`
|
||
|
}
|