Blame view

ais-structure/src/modules/helper/constants.js 1.59 KB
3d36a443   Nattapon Wongpaet   add constant
1
2
3
module.exports = Object.freeze({
    REQUEST: 'Request',
    RESPONSE: 'Response',
479b9d98   sumatek   update use constants
4
5
    SUCCESS: 'Success',
    ERROR: 'Error',
584b2672   Nattapon Wongpaet   update handler er...
6
    METHOD:{
3d36a443   Nattapon Wongpaet   add constant
7
8
9
10
11
12
        GET : 'GET',
        POST : 'POST',
        PUT : 'PUT',
        DELETE : 'DELETE'
    },
    RESPONSECONN:{
479b9d98   sumatek   update use constants
13
14
15
16
        STATS:{
            ETIMEDOUT:'ETIMEDOUT',
            ECONNREFUSED : 'ECONNREFUSED',
            MISSING : 'Missing',
449b0a7c   Nattapon Wongpaet   fix bug vizcard
17
18
        },
        MESSAGE:{
479b9d98   sumatek   update use constants
19
20
21
22
23
24
25
26
27
28
            ETIMEDOUT:{
                resultCode : '50003',
                resultDescription : 'Timeout'
            },
            ECONNREFUSED:{
                resultCode : '50002',
                resultDescription : 'Reject'
            },
            ERROR:{
                resultCode : '50000',
449b0a7c   Nattapon Wongpaet   fix bug vizcard
29
30
31
32
                resultDescription : 'System error'
            },
            SUCCESS:{
                resultCode : '20000',
479b9d98   sumatek   update use constants
33
34
35
36
37
38
39
                resultDescription : 'Success'
            }
        }
    },
    RESPONSERESULT:{
        SUCCESS:{
            resultCode : '20000',
27aed231   Nattapon Wongpaet   update post membe...
40
41
42
43
            developerMessage : 'Success'
        },
        MISSING_INVALID:{
            resultCode : '40300',
479b9d98   sumatek   update use constants
44
45
46
            developerMessage : 'Missing or invalid parameter'
        },
        DATA_NOT_FOUND:{
3d36a443   Nattapon Wongpaet   add constant
47
48
49
            resultCode : '40401',
            developerMessage : 'Data Not Found'
        },
90f9d224   sumatek   update unknow req
50
        DATA_EXIST:{
3d36a443   Nattapon Wongpaet   add constant
51
52
53
            resultCode : '40301',
            developerMessage : 'Data Exist'
        },
90f9d224   sumatek   update unknow req
54
        ERROR:{
3d36a443   Nattapon Wongpaet   add constant
55
56
57
            resultCode : '50000',
            developerMessage : 'System error'
        },
90f9d224   sumatek   update unknow req
58
        UNKNOW:{
3d36a443   Nattapon Wongpaet   add constant
59
60
61
            resultCode : '40400',
            developerMessage : 'Unknown URL'
        }
90f9d224   sumatek   update unknow req
62
    }
3d36a443   Nattapon Wongpaet   add constant
63
});
90f9d224   sumatek   update unknow req

479b9d98   sumatek   update use constants

3d36a443   Nattapon Wongpaet   add constant