实现对ACME用户的增删改

This commit is contained in:
刘祥超
2020-11-24 17:36:47 +08:00
parent a7bdbf411e
commit 6e6083d6af
27 changed files with 202 additions and 87 deletions

View File

@@ -9,7 +9,6 @@ import (
"github.com/TeaOSLab/EdgeAPI/internal/db/models"
"github.com/TeaOSLab/EdgeAPI/internal/encrypt"
"github.com/TeaOSLab/EdgeAPI/internal/utils"
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
"github.com/iwind/TeaGo/lists"
"github.com/iwind/TeaGo/maps"
"google.golang.org/grpc/metadata"
@@ -125,16 +124,6 @@ func ValidateRequest(ctx context.Context, userTypes ...UserType) (userType UserT
}
}
// 返回操作成功信息
func Success() (*pb.RPCSuccess, error) {
return &pb.RPCSuccess{}, nil
}
// 返回数量
func NewCountResponse(count int64) (*pb.RPCCountResponse, error) {
return &pb.RPCCountResponse{Count: count}, nil
}
// 包装错误
func Wrap(description string, err error) error {
if err == nil {