|
- package com.ffii.fpsms.m18
-
- import org.springframework.beans.factory.annotation.Value
- import org.springframework.cloud.context.config.annotation.RefreshScope
- import org.springframework.context.annotation.Bean
- import org.springframework.context.annotation.Configuration
-
-
- @Configuration
- open class M18Config {
-
- // Account
- @Value("\${m18.config.grant-type}")
- lateinit var GRANT_TYPE: String;
-
- @Value("\${m18.config.client-id}")
- lateinit var CLIENT_ID: String;
-
- @Value("\${m18.config.client-secret}")
- lateinit var CLIENT_SECRET: String;
-
- @Value("\${m18.config.username}")
- lateinit var USERNAME: String;
-
- @Value("\${m18.config.password}")
- lateinit var PASSWORD: String;
-
- // Series
- @Value("\${m18.config.seriesId.pp}")
- var SERIESID_PP: Long? = null;
-
- @Value("\${m18.config.seriesId.pf}")
- var SERIESID_PF: Long? = null;
-
- @Value("\${m18.config.seriesId.sc}")
- var SERIESID_SC: Long? = null;
-
- @Value("\${m18.config.seriesId.se}")
- var SERIESID_SE: Long? = null;
-
- @Value("\${m18.config.seriesId.sf}")
- var SERIESID_SF: Long? = null;
-
- @Value("\${m18.config.seriesId.sr}")
- var SERIESID_SR: Long? = null;
- // BE
- @Value("\${m18.config.beId.pp}")
- var BEID_PP: Long? = null;
-
- @Value("\${m18.config.beId.pf}")
- var BEID_PF: Long? = null;
-
- @Value("\${m18.config.beId.toa}")
- var BEID_TOA: Long? = null;
-
- // Fetch
- var ACCESS_TOKEN: String? = null;
-
- /**
- * Condition Detail
- * Conds Format:
- * Id=lessThan=5=and=id=largerOrEqual=3=or=(name=contains =ss=or=name=contains=bb)
- * Which means:
- * Id<5 and id >=3 or (name like ‘%ss%’ or name like ‘%bb%’)
- * **Please use these formats to write the conds: **
- * ("equal", "="),
- * ("unequal", "<>"),
- * ("largerThan", ">"),
- * ("lessThan", "<"),
- * ("largerOrEqual", ">="),
- * ("lessOrEqual", "<="),
- * ("contains", "like"),
- * ("doseNotContain", "notlike"),
- * ("in", "in"),
- * ("notIn", "notin"),
- * ("startWith", "like"),
- * ("endWith", "like");
- */
- }
|