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,62 @@
'use strict';
module.exports = {
/**
* 加工详情
* @url client/process/sheet/pub/getInfo 前端调用的url参数地址
* data 请求参数
* @param {String} params1 参数1
*/
main: async (event) => {
let {data = {}, userInfo, util, filterResponse, originalParam} = event;
let {customUtil, uniID, config, pubFun, vk, db, _} = util;
let {uid} = data;
let res = {code: 0, msg: ""};
// 业务逻辑开始-----------------------------------------------------------
const dbName = "jjx-process-sheet";
const quoteDbName = "jjx-process-quote";
const userDbName = "uni-id-users";
res = await vk.baseDao.findById({
dbName, id: data.id
})
res.quoteList = await vk.baseDao.selects({
dbName: quoteDbName,
whereJson: {
sheetId: data.id,
},
foreignDB: [
{
dbName: "uni-id-users",
localKey: "userId",
foreignKey: "_id",
as: "user",
limit: 1, // limit=1则以对象形式返回
fieldJson: {
_id: true,
company: {
companyName: true,
mobile: true,
},
person: {
personName: true,
mobile: true,
},
businessCard: true,
accountType: true,
},
}
]
})
res.user = await vk.baseDao.findById({
dbName: userDbName,
id: res.userId
})
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}