Files
zmkgC/internal/app/system/service/manage_device.go
2025-07-07 20:11:59 +08:00

39 lines
1.3 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期2023-11-14 10:53:21
// 生成路径: internal/app/system/service/manage_device.go
// 生成人gfast
// desc:设备信息
// company:云南奇讯科技有限公司
// ==========================================================================
package service
import (
"context"
"github.com/tiger1103/gfast/v3/api/v1/system"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
type IManageDevice interface {
List(ctx context.Context, req *system.ManageDeviceSearchReq) (res *system.ManageDeviceSearchRes, err error)
GetById(ctx context.Context, Id uint64) (res *model.ManageDeviceInfoRes, err error)
Add(ctx context.Context, req *system.ManageDeviceAddReq) (err error)
Edit(ctx context.Context, req *system.ManageDeviceEditReq) (err error)
Delete(ctx context.Context, Id []uint64) (err error)
NoPageList(ctx context.Context, req *system.NoPageListSearchReq) (res *system.NoPageListSearchRes, err error)
}
var localManageDevice IManageDevice
func ManageDevice() IManageDevice {
if localManageDevice == nil {
panic("implement not found for interface IManageDevice, forgot register?")
}
return localManageDevice
}
func RegisterManageDevice(i IManageDevice) {
localManageDevice = i
}