pre-dev: added more config
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"request-ok": "request is done succesfully",
|
||||
"request-methodNotAllowed": "request has been rejected, method is not allowed",
|
||||
"request-tooMany": "too many request",
|
||||
"payload-bad": "invalid data structure",
|
||||
|
||||
"auth-required": "authentication required",
|
||||
"auth-missingHeader": "authentication header is missing",
|
||||
"auth-forbidden": "forbidden",
|
||||
"auth-login-success": "login success",
|
||||
"auth-login-incorrect": "login failed, icorrect username or password",
|
||||
"auth-login-tooMany": "login failed, too many login attempts",
|
||||
"auth-login-blocked": "login failed, account is blocked",
|
||||
"auth-login-unverified": "login failed, account is not verified",
|
||||
"auth-logout-success": "logout success",
|
||||
"auth-reject-suspend": "restricted for suspended account",
|
||||
|
||||
"balance-exceeded": "must not exceeds balance",
|
||||
|
||||
"email-confirmation-success": "email confirmation success",
|
||||
"email-confirmation-fail": "failed to confirm email",
|
||||
"email-confirmation-resend-fail": "failed to resend email confirmation",
|
||||
|
||||
"data-create-success": "data has been created",
|
||||
"data-create-fail": "failed to create data",
|
||||
"data-notFound": "data or resource can not be found",
|
||||
"data-notFound-condition": "\"%v\" with %v \"%v\" can not be found",
|
||||
"data-get-fail": "get data failed, %v",
|
||||
"data-update-fail": "failed to update data",
|
||||
"data-delete-success": "data has been deleted",
|
||||
"data-delete-fail": "failed to delete data",
|
||||
"data-send-fail": "send data failed, %v",
|
||||
"data-fetch-fail": "failed to fetch data",
|
||||
"data-copy-fail": "failed to copy data",
|
||||
"data-process-fail": "failed to process data",
|
||||
"data-confirm-fail": "failed to confirm data",
|
||||
"data-generate-fail": "failed to generate data",
|
||||
"data-registered": "is already registered",
|
||||
"data-state-mismatch": "\"%v\" is not in \"%v\" state",
|
||||
"data-duplicate": "duplicate data",
|
||||
"data-payment-fail": "failed to create payment",
|
||||
|
||||
"expired": "is expired",
|
||||
"registered": "is already registered",
|
||||
"mustUuid": "must be a valid uuid",
|
||||
"invalid": "invalid value",
|
||||
"equalToField": "must equal to",
|
||||
"constraint-vioalate": "must not violate constraint",
|
||||
|
||||
"config-fetch-done": "app config is fetched successfully",
|
||||
"userToken-incorrect": "incorrect email, token, or token type",
|
||||
|
||||
"token-missing": "missing required token",
|
||||
"token-invalid": "invalid token",
|
||||
"token-invalidType": "invalid token type",
|
||||
"token-sign-unexcpeted": "unexpected signing method: %v",
|
||||
"token-sign-err": "token signing failed, %v",
|
||||
"token-parse-fail": "token parsing failed, %v",
|
||||
"token-expired": "token is expired",
|
||||
"token-unidentified": "token is could not be identified",
|
||||
|
||||
"file-detect-fail": "file type detection failed",
|
||||
"file-type-mismatch": "file type mismatch",
|
||||
"file-create-fail": "failed to create file, %v",
|
||||
"file-open-fail": "failed to open file, %v",
|
||||
"file-copy-fail": "failed to copy file, %v",
|
||||
|
||||
"uuid-gen-fail" : "failed to generate uuid, %v",
|
||||
"nanoid-gen-fail" : "failed to generate nanoid, %v",
|
||||
|
||||
"redis-store-fail": "redis storing value failed, %v",
|
||||
|
||||
"eq": "must be equal to %v",
|
||||
"gt": "must be greater than %v",
|
||||
"gte": "must be greater than or equal to %v",
|
||||
"lt": "must be less than %v",
|
||||
"lte": "must be less than or equal to %v"
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"request-ok": "'request' berhasil diproses",
|
||||
"request-methodNotAllowed": "'request' ditolak, method tidak diijinkan",
|
||||
"request-tooMany": "terlalu banyak 'request'",
|
||||
"payload-bad": "struktur data tidak sesuai standar",
|
||||
|
||||
"auth-required": "butuh autentikasi",
|
||||
"auth-missingHeader": "Header autentikasi tidak ditemukan",
|
||||
"auth-forbidden": "tidak diijinkan",
|
||||
"auth-login-success": "login berhasil",
|
||||
"auth-login-incorrect": "Username atau Password Tidak Sesuai",
|
||||
"auth-login-tooMany": "login gagal, terlalu banyak percobaan",
|
||||
"auth-login-blocked": "login gagal, akun diblokir",
|
||||
"auth-login-unverified": "login gagal, akun belum terverifikasi",
|
||||
"auth-logout-success": "logout berhasil",
|
||||
"auth-reject-suspend": "dibatasi untuk akun dibekukan",
|
||||
|
||||
"balance-exceeded": "tidak boleh melebihi saldo",
|
||||
|
||||
"email-confirmation-success": "konfimrasi email berhasil",
|
||||
"email-confirmation-fail": "gagal mengkonfirmasi email",
|
||||
"email-confirmation-resend-fail": "gagal mengirim konfirmasi email",
|
||||
|
||||
"data-create-success": "data telah dibuat",
|
||||
"data-create-fail": "gagal membuat data",
|
||||
"data-notFound": "data atau sumber tidak daoat ditemukan",
|
||||
"data-notFound-condition": "\"%v\" dengan %v \"%v\" tidak dapat ditemukan",
|
||||
"data-get-fail": "gagal mengambil data, %v",
|
||||
"data-update-success": "berhasil memperbarui data",
|
||||
"data-update-fail": "gagal memperbarui data",
|
||||
"data-delete-success": "data telah dihapus",
|
||||
"data-delete-fail": "gagal menghapus data",
|
||||
"data-fetch-fail": "gagal mengambil data",
|
||||
"data-copy-fail": "gagal menyalin data",
|
||||
"data-process-fail": "gagal memproses data",
|
||||
"data-confirm-fail": "gagal mengirim data",
|
||||
"data-generate-fail": "gagal membuat data",
|
||||
"data-registered": "sudah pernah dibuat",
|
||||
"data-state-mismatch": "\"%v\" tidak dalam kondisi \"%v\"",
|
||||
"data-duplicate": "duplicate data",
|
||||
"data-payment-fail": "failed to create payment",
|
||||
|
||||
"expired": "expired",
|
||||
"registered": "sudah terdaftar",
|
||||
"mustUuid": "harus UUID yang valid",
|
||||
"invalid": "nilai tidak sesuai",
|
||||
"equalToField": "harus sama dengan",
|
||||
"constraint-vioalate": "tidak boleh melanggar batasan",
|
||||
|
||||
"config-fetch-done": "konfigurasi app berhasil diterapkan",
|
||||
"userToken-incorrect": "salah email, token, atau jenis token",
|
||||
|
||||
"token-missing": "token tidak dapat ditemukan",
|
||||
"token-invalid": "token tidak berlaku",
|
||||
"token-invalidType": "jenis token tidak berlaku",
|
||||
"token-sign-unexcpeted": "metode penanda tidak beralku: %v",
|
||||
"token-sign-err": "penanda token tidak sesuai, %v",
|
||||
"token-parse-fail": "%v",
|
||||
"token-expired": "Token Expired",
|
||||
"token-unidentified": "token tidak dapat diidentifikasi",
|
||||
|
||||
"file-detect-fail": "gagal mendeteksi tipe file",
|
||||
"file-type-mismatch": "tipe file tidak sesuai",
|
||||
"file-create-fail": "gagal membuat file, %v",
|
||||
"file-open-fail": "gagal membuka file, %v",
|
||||
"file-copy-fail": "gagal menyalin file, %v",
|
||||
|
||||
"uuid-gen-fail" : "gagal membuat UUID, %v",
|
||||
"nanoid-gen-fail" : "gagal membuat NANOID, %v",
|
||||
|
||||
"redis-store-fail": "gagal mengimpan data pada redis, %v",
|
||||
|
||||
"eq": "must be equal to %v",
|
||||
"gt": "must be greater than %v",
|
||||
"gte": "lebih besar atau sama dengan %v",
|
||||
"lt": "must be less than %v",
|
||||
"lte": "lebih kecil atau sama dengan %v",
|
||||
|
||||
"jknData-required": "%v Belum Diisi",
|
||||
"jknData-length": "Format %v Tidak Sesuai",
|
||||
"jknData-numeric": "Format %v Tidak Sesuai",
|
||||
"jknData-notFound": "%v Tidak Ditemukan"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
# convention
|
||||
Key - value data indexed. Key prefered to be be consisting of 3 part: [feature]-[action]-[status]. Special case for validation that is intended to point error on an input (field), the key can be stated directly to the validation index, for example: min is for minimum value needed.
|
||||
@@ -9,6 +9,12 @@ httpCfg:
|
||||
host:
|
||||
port:
|
||||
|
||||
dbCfg:
|
||||
dsn:
|
||||
maxOpenConns: 5
|
||||
maxIdleConns: 5
|
||||
maxIdleTime: 100
|
||||
|
||||
loggerCfg:
|
||||
hideTime:
|
||||
hideLevel:
|
||||
@@ -21,6 +27,21 @@ langCfg:
|
||||
path:
|
||||
fileName:
|
||||
|
||||
minioCfg:
|
||||
endpoint:
|
||||
region:
|
||||
accessKey:
|
||||
secretKey:
|
||||
useSsl:
|
||||
bucketName:
|
||||
- patient
|
||||
|
||||
corsCfg:
|
||||
allowedOrigin:
|
||||
allowedMethod:
|
||||
allowedMethod:
|
||||
|
||||
satuSehatCfg:
|
||||
host: localhsot:8200
|
||||
|
||||
bpjsCfg:
|
||||
host: localhsot:8200
|
||||
|
||||
Reference in New Issue
Block a user