forked from codeBrice/helios-tipbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroulette.historic.controller.js
67 lines (62 loc) · 1.57 KB
/
roulette.historic.controller.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
require('dotenv').config();
const RouletteHistoricDao = require('../dao/roulette.historic.dao');
const ROULETTEHDAO = new RouletteHistoricDao();
const conf = require('../config.js').jsonConfig();
const logger = require(conf.pathLogger).getHeliosBotLogger();
/**
* RouletteHistoricController
*/
class RouletteHistoricController {
/**
* init
* @date 2020-09-04
* @param {any} json
* @param {any} number
* @param {any} isFinish
* @return {any}
*/
static async init( json, number, isFinish ) {
logger.info('start roulette.hictoric init');
return await ROULETTEHDAO.create( json, number, isFinish );
}
/**
* updateHistoric
* @date 2020-09-04
* @param {any} id
* @param {any} isFinish
* @return {any}
*/
static async updateHistoric( id, isFinish) {
logger.info('start roulette.hictoric updateHistoric');
return await ROULETTEHDAO.update( id, isFinish);
}
/**
* get LastWins
* @date 2020-09-07
* @return {any}
*/
static async getLastWins() {
logger.info('start getLastWins');
return await ROULETTEHDAO.getLastWins();
}
/**
* get Commissions
* @date 2020-09-07
* @return {any}
*/
static async getCommissions() {
logger.info('start getCommissions');
return await ROULETTEHDAO.getCommissions();
}
/**
* update Commissions
* @date 2020-09-07
* @param {any} ids
* @return {any}
*/
static async updateCommissions(ids) {
logger.info('start updateCommissions');
return await ROULETTEHDAO.updateCommissions(ids);
}
}
module.exports = RouletteHistoricController;