Backend & digit password
This commit is contained in:
parent
409041c98c
commit
cf68186775
@ -22,13 +22,13 @@ public class HorseBTC {
|
|||||||
@Bean
|
@Bean
|
||||||
CommandLineRunner runner(@Autowired BtcUserService btcUserService, @Autowired BtcRaceService btcRaceService) {
|
CommandLineRunner runner(@Autowired BtcUserService btcUserService, @Autowired BtcRaceService btcRaceService) {
|
||||||
return (args) -> {
|
return (args) -> {
|
||||||
btcUserService.adminSetUserNamePasswordSet("123412341234", "John Dow", "123456");
|
btcUserService.adminSetUserNamePasswordSet("123412341234", "John Dow", "1234567");
|
||||||
btcUserService.adminSetUserNamePasswordSet("432143214321", "John Dow 1", "654321");
|
btcUserService.adminSetUserNamePasswordSet("432143214321", "John Dow 1", "1231234");
|
||||||
btcUserService.adminSetUserNamePasswordSet("567856785678", "John Dow 2", "321123");
|
btcUserService.adminSetUserNamePasswordSet("567856785678", "John Dow 2", "1234567");
|
||||||
btcUserService.adminSetUserNamePasswordSet("876587658765", "John Dow 3", "456456");
|
btcUserService.adminSetUserNamePasswordSet("876587658765", "John Dow 3", "1234567");
|
||||||
btcUserService.adminSetUserNamePasswordSet("098709870987", "John Dow 4", "789789");
|
btcUserService.adminSetUserNamePasswordSet("098709870987", "John Dow 4", "2222222");
|
||||||
btcUserService.adminSetUserNamePasswordSet("789078907890", "John Dow 5", "098098");
|
btcUserService.adminSetUserNamePasswordSet("789078907890", "John Dow 5", "4444444");
|
||||||
btcUserService.adminSetUserNamePasswordSet("231120230065", "Gowathami v", "111111");
|
btcUserService.adminSetUserNamePasswordSet("231120230065", "Gowathami v", "1111111");
|
||||||
|
|
||||||
|
|
||||||
btcRaceService.addARaceVenue("BNG");
|
btcRaceService.addARaceVenue("BNG");
|
||||||
|
|||||||
@ -91,6 +91,10 @@ public class BtcRaceService {
|
|||||||
Set<Integer> races2 = new LinkedHashSet<>(List.of(2,4,6,8,10,12));
|
Set<Integer> races2 = new LinkedHashSet<>(List.of(2,4,6,8,10,12));
|
||||||
Set<Integer> races3 = new LinkedHashSet<>(List.of(1,2,3,5,7,8,9,10,11));
|
Set<Integer> races3 = new LinkedHashSet<>(List.of(1,2,3,5,7,8,9,10,11));
|
||||||
Set<Integer> races4 = new LinkedHashSet<>(List.of(1,2,3,4,5,6,7,8,10,12,13));
|
Set<Integer> races4 = new LinkedHashSet<>(List.of(1,2,3,4,5,6,7,8,10,12,13));
|
||||||
|
Set<Integer> races5 = new LinkedHashSet<>(List.of(1,2,3,4,5,6,7,8,10,11,12));
|
||||||
|
Set<Integer> races6 = new LinkedHashSet<>(List.of(2,4,6,8,10,12,13));
|
||||||
|
Set<Integer> races7 = new LinkedHashSet<>(List.of(1,2,3,5,7,8,9,10,11));
|
||||||
|
Set<Integer> races8 = new LinkedHashSet<>(List.of(1,2,3,4,5));
|
||||||
|
|
||||||
// create a Venue
|
// create a Venue
|
||||||
Set<Set<Integer>> mysRaces = new LinkedHashSet<>();
|
Set<Set<Integer>> mysRaces = new LinkedHashSet<>();
|
||||||
@ -98,16 +102,24 @@ public class BtcRaceService {
|
|||||||
mysRaces.add(races2);
|
mysRaces.add(races2);
|
||||||
mysRaces.add(races3);
|
mysRaces.add(races3);
|
||||||
mysRaces.add(races4);
|
mysRaces.add(races4);
|
||||||
|
mysRaces.add(races5);
|
||||||
|
mysRaces.add(races6);
|
||||||
|
mysRaces.add(races7);
|
||||||
|
mysRaces.add(races8);
|
||||||
RaceVenueRaces raceVenueMYS = new RaceVenueRaces(mysRaces);
|
RaceVenueRaces raceVenueMYS = new RaceVenueRaces(mysRaces);
|
||||||
|
|
||||||
//create a Pool combination
|
//create a Pool combination
|
||||||
Set<Integer> pool1 = new LinkedHashSet<>(List.of(5, 6, 7));
|
Set<Integer> pool1 = new LinkedHashSet<>(List.of(5, 6, 7));
|
||||||
Set<Integer> pool2 = new LinkedHashSet<>(List.of(1, 2, 3));
|
Set<Integer> pool2 = new LinkedHashSet<>(List.of(1, 2, 3, 4));
|
||||||
|
Set<Integer> pool3 = new LinkedHashSet<>(List.of(2, 3, 4));
|
||||||
|
Set<Integer> pool4 = new LinkedHashSet<>(List.of(3, 4, 5, 6, 7));
|
||||||
|
|
||||||
// pole id to pool combo
|
// pole id to pool combo
|
||||||
Map<String, Set<Integer>> mysPools = new LinkedHashMap<>();
|
Map<String, Set<Integer>> mysPools = new LinkedHashMap<>();
|
||||||
mysPools.put("TRB2", pool1);
|
mysPools.put("TRB2", pool1);
|
||||||
mysPools.put("MJP1", pool2);
|
mysPools.put("MJP1", pool2);
|
||||||
|
mysPools.put("TRB1", pool3);
|
||||||
|
mysPools.put("JPPI", pool4);
|
||||||
Pools mysPool = new Pools(mysPools);
|
Pools mysPool = new Pools(mysPools);
|
||||||
|
|
||||||
RaceCard raceCard = new RaceCard("MYS", date, raceVenueMYS, mysPool);
|
RaceCard raceCard = new RaceCard("MYS", date, raceVenueMYS, mysPool);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user