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) }