23 lines
329 B
Go
23 lines
329 B
Go
package models
|
|
|
|
import "fmt"
|
|
|
|
const rpcNamePrefix = "UnisRpcService"
|
|
|
|
type UnisRpcMethod string
|
|
|
|
func (m UnisRpcMethod)Methord()string{
|
|
return fmt.Sprintf("%s.%s",rpcNamePrefix,string(m))
|
|
}
|
|
|
|
const(
|
|
UnisStationConfig UnisRpcMethod = "Config"
|
|
)
|
|
|
|
type UnisRpcRequest struct{
|
|
Id string
|
|
}
|
|
|
|
type UnisRpcResponse struct{
|
|
Id string
|
|
} |