This repository has been archived on 2026-07-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GoEdgeAdmin/internal/web/models/base_dao.go
T

19 lines
326 B
Go

package models
import (
"github.com/TeaOSLab/EdgeAdmin/internal/rpc"
"github.com/iwind/TeaGo/logs"
)
type BaseDAO struct {
}
func (this *BaseDAO) RPC() *rpc.RPCClient {
client, err := rpc.SharedRPC()
if err != nil {
logs.Println("[MODEL]get shared rpc client failed: " + err.Error())
return nil
}
return client
}