mirror of
https://github.com/m5stack/StackChan.git
synced 2026-04-28 03:22:39 +00:00
server code 4/27
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package stackchandevice
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"stackChan/api/stackchandevice/v2"
|
||||
)
|
||||
|
||||
type IStackchandeviceV2 interface {
|
||||
GetDeviceUserInfo(ctx context.Context, req *v2.GetDeviceUserInfoReq) (res *v2.GetDeviceUserInfoRes, err error)
|
||||
UnbindDevice(ctx context.Context, req *v2.UnbindDeviceReq) (res *v2.UnbindDeviceRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD
|
||||
SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
package v2
|
||||
|
||||
import (
|
||||
"stackChan/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type GetDeviceUserInfoReq struct {
|
||||
g.Meta `path:"/device/user" method:"get" tags:"Device" summary:"Get device information for StackChan device"`
|
||||
}
|
||||
|
||||
type GetDeviceUserInfoRes *model.User
|
||||
|
||||
type UnbindDeviceReq struct {
|
||||
g.Meta `path:"/device/unbind" method:"post" tags:"Device" summary:"Unbind device from current user for StackChan device"`
|
||||
}
|
||||
|
||||
type UnbindDeviceRes bool
|
||||
Reference in New Issue
Block a user