简化代码/增加HTTPPage服务

This commit is contained in:
刘祥超
2020-09-17 10:16:00 +08:00
parent 58bce36fb3
commit c1327e8ca8
22 changed files with 453 additions and 75 deletions

View File

@@ -9,6 +9,7 @@ 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"
@@ -116,3 +117,8 @@ func ValidateRequest(ctx context.Context, userTypes ...UserType) (userType UserT
return t, m.GetInt64("userId"), nil
}
}
// 返回Update信息
func RPCUpdateSuccess() (*pb.RPCUpdateSuccess, error) {
return &pb.RPCUpdateSuccess{}, nil
}