mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 17:40:24 +08:00
实现基本的集群DNS列表、设置、简单数据同步
This commit is contained in:
@@ -125,14 +125,14 @@ func ValidateRequest(ctx context.Context, userTypes ...UserType) (userType UserT
|
||||
}
|
||||
}
|
||||
|
||||
// 返回Update成功信息
|
||||
func RPCUpdateSuccess() (*pb.RPCUpdateSuccess, error) {
|
||||
return &pb.RPCUpdateSuccess{}, nil
|
||||
// 返回操作成功信息
|
||||
func Success() (*pb.RPCSuccess, error) {
|
||||
return &pb.RPCSuccess{}, nil
|
||||
}
|
||||
|
||||
// 返回Delete成功信息
|
||||
func RPCDeleteSuccess() (*pb.RPCDeleteSuccess, error) {
|
||||
return &pb.RPCDeleteSuccess{}, nil
|
||||
// 返回数量
|
||||
func NewCountResponse(count int64) (*pb.RPCCountResponse, error) {
|
||||
return &pb.RPCCountResponse{Count: count}, nil
|
||||
}
|
||||
|
||||
// 包装错误
|
||||
|
||||
Reference in New Issue
Block a user