Skip to content

Instantly share code, notes, and snippets.

View tabvn's full-sized avatar

Toan tabvn

  • Danang, Vietnam
View GitHub Profile

render list of zalePages


<script type="text/javascript">
      window.addEventListener("load", function() {
        window.zortout.setProductionMode(true);
@tabvn
tabvn / database.go
Created July 8, 2022 04:10
database.go
package tracking
import (
"context"
)
type InsertOneResult struct {
InsertedID interface{} `bson:"insertedId"`
}
[
{
"id": "ZA0LOx5RvW",
"created_at": "2020-05-13 08:07:02.714856",
"updated_at": "2020-05-13 08:07:02.714856",
"deleted_at": null,
"type": "customer data",
"message": "{\"customer\":{\"id\":\"\",\"first_name\":\"Linda\",\"last_name\":\"Geist\",\"email\":\"test_order@gmail.com\",\"phone\":{\"String\":\"412-732-1767\",\"Valid\":true}}}"
},
{
{"product_id":"169849","store":"https://teecago.com","variants":[{"id":169854,"description":"","permalink":"https://teecago.com/product/dinosaur-world-sofa-blanket-th401/?attribute_size=Adult","sku":"APO-5D5E64574A1FE-2","price":"69.95","regular_price":"120","sale_price":"69.95","on_sale":true,"status":"publish","purchasable":true,"virtual":false,"downloadable":false,"downloads":[],"download_limit":-1,"download_expiry":-1,"tax_status":"taxable","tax_class":"","manage_stock":false,"stock_quantity":null,"stock_status":"instock","backorders":"no","backorders_allowed":false,"backordered":false,"weight":"","dimensions":{"length":"","width":"","height":""},"shipping_class":"","shipping_class_id":0,"image":{"id":169848,"name":"510c314c-581a-45a5-bde9-72ec3a322511.jpg","src":"https://storage.googleapis.com/teecago/20190822155344/510c314c-581a-45a5-bde9-72ec3a322511.jpg","alt":""},"attributes":[{"id":0,"name":"Size","option":"Adult"}],"menu_order":2,"meta_data":[]},{"id":169851,"description":"","permalink":"https://te
[
{
"id": "VGXhg4k",
"created_at": "2020-04-16 04:31:24.048802",
"updated_at": "2020-04-16 04:31:24.048802",
"deleted_at": null,
"team_id": "bovq3g8bcdfucfokvrq0",
"store_id": "YmHWpQ",
"product_id": "560",
"order_id": "666",
func (r *queryResolver) FindUsers(ctx context.Context, search *string, first *int, last *int, after *string, before *string) (*model.UserConnection, error) {
var (
nodes []*model.User
edges []*model.UserEdge
pageInfo model.PageInfo
)
query := r.DB.Model(&nodes)
if search != nil {
s := *search
if len(s) > 0 {
{"fields": [], "products": [{"tags": [], "title": "aaDe", "tagIds": [], "variants": [{"salePrice": 11, "regularPrice": 11, "productBaseVariantId": "bpoa7pjipt317j4an5e0"}, {"salePrice": 11, "regularPrice": 1, "productBaseVariantId": "bpoa7pjipt317j4an5fg"}, {"salePrice": 1, "regularPrice": 1, "productBaseVariantId": "bpoa7pjipt317j4an5h0"}, {"salePrice": 1, "regularPrice": 1, "productBaseVariantId": "bpoa7pjipt317j4an5ig"}], "collections": [], "description": "<p>Desc</p>\n", "collectionIds": [], "productBaseId": "bplfi8jipt33a3hlah4g", "shortDescription": "<p>short</p>\n"}, {"tags": [], "title": "aaDe", "tagIds": [], "variants": [{"salePrice": 2, "regularPrice": 2, "productBaseVariantId": "bplfiobipt33a3hlah8g"}, {"salePrice": 2, "regularPrice": 2, "productBaseVariantId": "bplfiobipt33a3hlah90"}, {"salePrice": 2, "regularPrice": 2, "productBaseVariantId": "bplfiobipt33a3hlah9g"}], "collections": [], "description": "<p>Desc</p>\n", "collectionIds": [], "productBaseId": "bplfiobipt33a3hlah7g", "shortDescription
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Globalization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace bha
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Globalization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace bha
using System;
using Newtonsoft.Json;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
namespace bha
{
public class GraphQL
{