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.
paopao-ce/mirc/web/v1/site.go

23 lines
447 B

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"`
}