Advertisement
Guest User

Untitled

a guest
Jan 28th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.75 KB | None | 0 0
  1. // branch list
  2.  
  3. {
  4.   "result": [
  5.     {
  6.       "companyID": "WASHUP",
  7.       <<
  8.       add
  9.       here
  10.       for
  11.       firebase
  12.       reference
  13.       "id": "resultladprao",
  14.       <<
  15.       use
  16.       this
  17.       in
  18.       both
  19.       query
  20.       for
  21.       API
  22.       and
  23.       firebase
  24.       reference
  25.       "name": "Ladphao",
  26.       "officeHourly": [
  27.         {
  28.           "day": [
  29.             "MON",
  30.             "TUE",
  31.             "WED",
  32.             "FRI",
  33.             "SAT",
  34.             "SUN",
  35.             "Stop"
  36.           ],
  37.           "time": "12:00 - 20:30"
  38.         },
  39.         {
  40.           "day": [
  41.             "THU"
  42.           ],
  43.           "time": "10:40 - 20:30"
  44.         }
  45.       ],
  46.       "address": "At ladprao",
  47.       "phone": "0983983849",
  48.       "email": "contact@email.com",
  49.       "branchManager": "Chodkud Deemak",
  50.       "branchEmail": "manager@gmail.com",
  51.       "branchPhone": "0989098909"
  52.     },
  53.     {
  54.       "companyID": "WASHUP",
  55.       "id": "resultratchada",
  56.       "name": "Ratchada",
  57.       "officeHourly": [
  58.         {
  59.           "day": [
  60.             "MON",
  61.             "TUE",
  62.             "WED"
  63.           ],
  64.           "time": "10:00 - 20:00"
  65.         },
  66.         {
  67.           "day": [
  68.             "SAT",
  69.             "SUN"
  70.           ],
  71.           "time": "08:00 - 18:00"
  72.         }
  73.       ],
  74.       "address": "At Ratchada",
  75.       "phone": "0983983849",
  76.       "email": "contact@email.com",
  77.       "branchManager": "Chodkud Deemak",
  78.       "branchEmail": "manager@gmail.com",
  79.       "branchPhone": "0989098909",
  80.       "unusualClose": [
  81.         "10-20-2018",
  82.         "21-01-2019"
  83.       ]
  84.     }
  85.   ]
  86. }
  87.  
  88.  
  89.  
  90. //staff list
  91. {
  92.   "result": [
  93.     {
  94.       "avatar": " ",
  95.       "lastOnline": "online",
  96.       "name": "chopkud deemakk",
  97.       "phone": "1111111"
  98.     },
  99.     {
  100.       "avatar": " ",
  101.       "lastOnline": "2019-01-28T05:09:04.661Z",
  102.       "name": "chopkud deemakk",
  103.       "phone": "1111111"
  104.     }
  105.   ]
  106. }
  107.  
  108.  
  109. //branch stat
  110. {
  111.   "result": {
  112.     "checked": 55,
  113.     "onService": 100,
  114.     "finished": 42,
  115.     "summary": 5000,
  116.     "point": 1500,
  117.     "daily": {
  118.       "date": {
  119.         "data": 10,
  120.         "name": "Monday"
  121.       },
  122.       "today": 23,
  123.       "yesterday": 21,
  124.       "total_today": 46,
  125.       "total_washtime": 50
  126.     },
  127.     "weekly": {
  128.       "lastlastWeek": 50,
  129.       "lastWeek": 20,
  130.       "thisWeek": 100,
  131.       "total_week": 50,
  132.       "total_washtime": 100
  133.     },
  134.     "monthly": {
  135.       "prevMonth1": {
  136.         "data": 3,
  137.         "name": "November"
  138.       },
  139.       "prevMonth2": {
  140.         "data": 16,
  141.         "name": "December"
  142.       },
  143.       "total_month": 50,
  144.       "total_washtime": 100,
  145.       "thisMonth": 15
  146.     }
  147.   }
  148. }
  149.  
  150.  
  151. Notification
  152. {
  153.   "result": [
  154.     {
  155.       "status": "read",
  156.       <<
  157.       add
  158.       status
  159.       "title": "Feb 15 Summary Report",
  160.       "time": "20-10-2019 00:00:00",
  161.       "content": "Summary report here"
  162.     },
  163.     {
  164.       "status": "unread",
  165.       "title": "Feb 16 Summary Report",
  166.       "time": "21-10-2019 00:00:00",
  167.       "content": "Summary report here2"
  168.     }
  169.   ]
  170. }
  171.  
  172. // on service
  173. {
  174.   "result": [
  175.     {
  176.       "branchName": "Ratchada",
  177.       "state": "CHECKED",
  178.       "service": [
  179.         {
  180.           "code": "W1",
  181.           "name": "Wash",
  182.           "price": 500
  183.         },
  184.         {
  185.           "code": "W2",
  186.           "name": "Wash 2",
  187.           "price": 600
  188.         }
  189.       ],
  190.       "totalPrice": 500,
  191.       "discount": 600,
  192.       <<
  193.       add
  194.       discount
  195.       "time": "2018-01-01 29:29:92",
  196.       "brand": "bmw",
  197.       "model": "x1",
  198.       "plate": "3กข 1235",
  199.       "plateProvice": "กรุงเทพมหานคร",
  200.       "carSize": "S",
  201.       "driverName": "Suchat",
  202.       "phone": "0989382939",
  203.       "memberID": "xxxxxxxx",
  204.       "memberType": "Type A",
  205.       "memberExpire": "2018-01-01 00:00:00",
  206.       "memberTypeSize": "S",
  207.       "paymentStatus": "card"
  208.     }
  209.   ]
  210. }
  211.  
  212.  
  213. //financial
  214. {
  215.   "result": {
  216.     "expense": {
  217.       "list": [
  218.         {
  219.           "amount": 100,
  220.           "type": "Water cost"
  221.         },
  222.         {
  223.           "amount": 200,
  224.           "type": "Electricity"
  225.         },
  226.         {
  227.           "amount": 700,
  228.           "type": "Tools"
  229.         },
  230.         {
  231.           "amount": 1,
  232.           "type": "Other"
  233.         },
  234.         {
  235.           "amount": 200,
  236.           "type": "Electricity"
  237.         },
  238.         {
  239.           "amount": 2000,
  240.           "type": "Tools"
  241.         },
  242.         {
  243.           "amount": 3800,
  244.           "type": "Electricity"
  245.         },
  246.         {
  247.           "amount": 2000,
  248.           "type": "housing"
  249.         }
  250.       ]
  251.     },
  252.     "summary": {
  253.       "payment": [
  254.         {
  255.           "amount": 100,
  256.           "type": "Cash"
  257.         },
  258.         {
  259.           "amount": 300,
  260.           "type": "Credit"
  261.         }
  262.       ],
  263.       "service": [
  264.         {
  265.           "amount": 500,
  266.           "type": "Wash"
  267.         },
  268.         {
  269.           "amount": 600,
  270.           "type": "Wax"
  271.         },
  272.         {
  273.           "amount": 1000,
  274.           "type": "Wash"
  275.         },
  276.         {
  277.           "amount": 1000,
  278.           "type": "Wash"
  279.         },
  280.         {
  281.           "amount": 200,
  282.           "type": "Coating"
  283.         },
  284.         {
  285.           "amount": 200,
  286.           "type": "Wrap"
  287.         },
  288.         {
  289.           "amount": 200,
  290.           "type": "Other"
  291.         }
  292.       ],
  293.  
  294.       //add monthly record
  295.       "month": [
  296.         {
  297.           "month": "Oct",
  298.           "expense": 7000,
  299.           "summary": 3000
  300.         },
  301.         {
  302.           "month": "Nov",
  303.           "expense": 4000,
  304.           "summary": 8000
  305.         },
  306.         {
  307.           "month": "Dec",
  308.           "expense": 5000,
  309.           "summary": 8000
  310.         }
  311.       ]
  312.     }
  313.   }
  314. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement