Files
observer/server/biz/controller/app_version.go
T
2026-08-25 16:52:55 +08:00

19 lines
468 B
Go

package controller
import (
"context"
"observer-server/biz/model/dto"
"observer-server/biz/service"
)
// cAppVersion App 版本接口:公开组(无需登录态,旧版本/未登录用户均可检查更新)。
type cAppVersion struct{}
var AppVersion = &cAppVersion{}
// GetUpdate 版本更新检查
func (c *cAppVersion) GetUpdate(ctx context.Context, req *dto.AppUpdateReq) (*dto.AppUpdateRes, error) {
return service.AppVersion.GetUpdate(ctx, req)
}