添加代理与节点的注册与端口分配接口功能
This commit is contained in:
@@ -27,8 +27,8 @@ var (
|
||||
Client *client
|
||||
ClientPermissionLink *clientPermissionLink
|
||||
Coupon *coupon
|
||||
Edge *edge
|
||||
LogsRequest *logsRequest
|
||||
Node *node
|
||||
Permission *permission
|
||||
Product *product
|
||||
Proxy *proxy
|
||||
@@ -58,8 +58,8 @@ func SetDefault(db *gorm.DB, opts ...gen.DOOption) {
|
||||
Client = &Q.Client
|
||||
ClientPermissionLink = &Q.ClientPermissionLink
|
||||
Coupon = &Q.Coupon
|
||||
Edge = &Q.Edge
|
||||
LogsRequest = &Q.LogsRequest
|
||||
Node = &Q.Node
|
||||
Permission = &Q.Permission
|
||||
Product = &Q.Product
|
||||
Proxy = &Q.Proxy
|
||||
@@ -90,8 +90,8 @@ func Use(db *gorm.DB, opts ...gen.DOOption) *Query {
|
||||
Client: newClient(db, opts...),
|
||||
ClientPermissionLink: newClientPermissionLink(db, opts...),
|
||||
Coupon: newCoupon(db, opts...),
|
||||
Edge: newEdge(db, opts...),
|
||||
LogsRequest: newLogsRequest(db, opts...),
|
||||
Node: newNode(db, opts...),
|
||||
Permission: newPermission(db, opts...),
|
||||
Product: newProduct(db, opts...),
|
||||
Proxy: newProxy(db, opts...),
|
||||
@@ -123,8 +123,8 @@ type Query struct {
|
||||
Client client
|
||||
ClientPermissionLink clientPermissionLink
|
||||
Coupon coupon
|
||||
Edge edge
|
||||
LogsRequest logsRequest
|
||||
Node node
|
||||
Permission permission
|
||||
Product product
|
||||
Proxy proxy
|
||||
@@ -157,8 +157,8 @@ func (q *Query) clone(db *gorm.DB) *Query {
|
||||
Client: q.Client.clone(db),
|
||||
ClientPermissionLink: q.ClientPermissionLink.clone(db),
|
||||
Coupon: q.Coupon.clone(db),
|
||||
Edge: q.Edge.clone(db),
|
||||
LogsRequest: q.LogsRequest.clone(db),
|
||||
Node: q.Node.clone(db),
|
||||
Permission: q.Permission.clone(db),
|
||||
Product: q.Product.clone(db),
|
||||
Proxy: q.Proxy.clone(db),
|
||||
@@ -198,8 +198,8 @@ func (q *Query) ReplaceDB(db *gorm.DB) *Query {
|
||||
Client: q.Client.replaceDB(db),
|
||||
ClientPermissionLink: q.ClientPermissionLink.replaceDB(db),
|
||||
Coupon: q.Coupon.replaceDB(db),
|
||||
Edge: q.Edge.replaceDB(db),
|
||||
LogsRequest: q.LogsRequest.replaceDB(db),
|
||||
Node: q.Node.replaceDB(db),
|
||||
Permission: q.Permission.replaceDB(db),
|
||||
Product: q.Product.replaceDB(db),
|
||||
Proxy: q.Proxy.replaceDB(db),
|
||||
@@ -229,8 +229,8 @@ type queryCtx struct {
|
||||
Client *clientDo
|
||||
ClientPermissionLink *clientPermissionLinkDo
|
||||
Coupon *couponDo
|
||||
Edge *edgeDo
|
||||
LogsRequest *logsRequestDo
|
||||
Node *nodeDo
|
||||
Permission *permissionDo
|
||||
Product *productDo
|
||||
Proxy *proxyDo
|
||||
@@ -260,8 +260,8 @@ func (q *Query) WithContext(ctx context.Context) *queryCtx {
|
||||
Client: q.Client.WithContext(ctx),
|
||||
ClientPermissionLink: q.ClientPermissionLink.WithContext(ctx),
|
||||
Coupon: q.Coupon.WithContext(ctx),
|
||||
Edge: q.Edge.WithContext(ctx),
|
||||
LogsRequest: q.LogsRequest.WithContext(ctx),
|
||||
Node: q.Node.WithContext(ctx),
|
||||
Permission: q.Permission.WithContext(ctx),
|
||||
Product: q.Product.WithContext(ctx),
|
||||
Proxy: q.Proxy.WithContext(ctx),
|
||||
|
||||
Reference in New Issue
Block a user