feat: 补齐客户端/管理端服务模块与数据库 schema,完善登录短信、法大大签署及公共函数

This commit is contained in:
2026-10-14 21:55:08 +08:00
parent 3481fda7a0
commit 55bcf96889
545 changed files with 28151 additions and 415 deletions
@@ -0,0 +1,39 @@
'use strict';
const { BALANCE_DOC_ID, getBalanceInfoList } = require('./util.js');
module.exports = {
/**
* 资金汇总
* @url admin/finance/balance/sys/getSummary 前端调用的url参数地址
*/
main: async (event) => {
let { util } = event;
let { vk } = util;
let info = await vk.baseDao.findByWhereJson({
dbName: 'jjx-balance',
whereJson: {
_id: BALANCE_DOC_ID
}
});
if (!info) {
return {
code: -1,
msg: `jjx-balance余额记录不存在: ${BALANCE_DOC_ID}`
};
}
const balanceInfoList = getBalanceInfoList(info.balanceInfo || {});
return {
code: 0,
msg: '',
data: {
balance: Number(Number(info.balance || 0).toFixed(2)),
updateTime: info.updateTime || info._update_time_str || info._add_time_str || '',
balanceInfoList
}
};
}
};