Files
StackChan/server/api/device/device.go
T
袁智鸿 1349df2d68 feat(server): deliver major backend expansion with v2 APIs, AI integration, and realtime infrastructure
- introduce broad v2 API surface across device, user, dance, and stackchandevice modules
- add admin/appstore management flows and strengthen service/controller layering
- implement XiaoZhi integration end-to-end, including token, refresh, license, and agent-related models/services
- expand social and media capabilities with pano support, post/comment workflow updates, and bundled dance music assets
- add websocket task pipeline and refactor realtime communication models/handlers
- enhance middleware, cron bootstrap, DAO/model coverage, and configuration/deployment manifests for production readiness
- add RSA utility support and update project documentation/config scaffolding
2026-04-28 11:09:39 +08:00

34 lines
1.4 KiB
Go

/*
SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD
SPDX-License-Identifier: MIT
*/
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package device
import (
"context"
"stackChan/api/device/v1"
"stackChan/api/device/v2"
)
type IDeviceV1 interface {
Create(ctx context.Context, req *v1.CreateReq) (res *v1.CreateRes, err error)
Update(ctx context.Context, req *v1.UpdateReq) (res *v1.UpdateRes, err error)
GetRandomDevice(ctx context.Context, req *v1.GetRandomDeviceReq) (res *v1.GetRandomDeviceRes, err error)
GetDeviceInfo(ctx context.Context, req *v1.GetDeviceInfoReq) (res *v1.GetDeviceInfoRes, err error)
UpdateDeviceInfo(ctx context.Context, req *v1.UpdateDeviceInfoReq) (res *v1.UpdateDeviceInfoRes, err error)
}
type IDeviceV2 interface {
GetDevices(ctx context.Context, req *v2.GetDevicesReq) (res *v2.GetDevicesRes, err error)
BindDevice(ctx context.Context, req *v2.BindDeviceReq) (res *v2.BindDeviceRes, err error)
UnbindDevice(ctx context.Context, req *v2.UnbindDeviceReq) (res *v2.UnbindDeviceRes, err error)
UpdateDevice(ctx context.Context, req *v2.UpdateDeviceReq) (res *v2.UpdateDeviceRes, err error)
AgentRestoreDefault(ctx context.Context, req *v2.AgentRestoreDefaultReq) (res *v2.AgentRestoreDefaultRes, err error)
}