code refactor

This commit is contained in:
MaysWind
2024-07-01 23:03:55 +08:00
parent 675b5f039a
commit 93bc3bf94b
2 changed files with 49 additions and 22 deletions
+32
View File
@@ -5,11 +5,43 @@ const allTransactionTypes = {
Transfer: 4
};
const allTransactionEditScopeTypes = {
None: {
type: 0,
name: 'None'
},
All: {
type: 1,
name: 'All'
},
TodayOrLater: {
type: 2,
name: 'Today or later'
},
Recent24HoursOrLater: {
type: 3,
name: 'Recent 24 hours or later'
},
ThisWeekOrLater: {
type: 4,
name: 'This week or later'
},
ThisMonthOrLater: {
type: 5,
name: 'This month or later'
},
ThisYearOrLater: {
type: 6,
name: 'This year or later'
}
};
const minAmountNumber = -99999999999; // -999999999.99
const maxAmountNumber = 99999999999; // 999999999.99
export default {
allTransactionTypes: allTransactionTypes,
allTransactionEditScopeTypes: allTransactionEditScopeTypes,
minAmountNumber: minAmountNumber,
maxAmountNumber: maxAmountNumber,
};