Commit 9185640d authored by ml's avatar ml

邮件订阅相关接口调整

parent 86856f1d
......@@ -30,7 +30,6 @@ export const list = async (req: any, queryVO: QueryVO) => {
/**
* 删除订阅
* TODO: 关于status 字段 从老管理后台来看 0 代表无效 1 代表有效 但是数据库备注 0 有效 1 无效 以哪个为准?
* @param req
* @param authConfigVO
*/
......@@ -52,7 +51,6 @@ export const del = async (req: any, queryVO: QueryVO) => {
/**
* 订阅统计
* TODO: 关于status 字段 从老管理后台来看 0 代表无效 1 代表有效 但是数据库备注 0 有效 1 无效 以哪个为准?
* @param req
* @param authConfigVO
*/
......@@ -111,7 +109,6 @@ export const mailDetail = async (req: any, userMailLogVO: UserMailLogVO) => {
/**
* 邮件发送
* TODO: 关于status 字段 从老管理后台来看 0 代表无效 1 代表有效 但是数据库备注 0 有效 1 无效 service里面又查询 status = 0 的 ???
* @param req
* @param userMailLogVO
*/
......
......@@ -62,7 +62,6 @@ export async function mailDetail(id: number | undefined) {
export async function mailSend(userMailLogVO: UserMailLogVO, currentUserId: any, ip: string | undefined) {
let where = {
//TODO:0 ? 1 ???
status: 0
};
if (userMailLogVO.user_id) {
......@@ -95,7 +94,6 @@ export async function mailSend(userMailLogVO: UserMailLogVO, currentUserId: any,
}
for (let sub of toAddrRes) {
//TODO:老管理后台就没有模版 ???
sendEmail(sub.sub, sub.user_id, "", params, userMailLogVO.lang);
}
......
......@@ -428,8 +428,8 @@ async function buildReturnData(pageData: any, fill_user_info: boolean, fill_coin
real_name: item.real_name ? item.real_name : "",
email: item.email ? item.email : "",
register_date: item.createdAt ? item.createdAt : "",
spot_balance: 0,//TODO:现货余额
contract_balance: 0,//TODO:永续合约余额
spot_balance: 0,
contract_balance: 0,
assets_total: assets_total,//总资产
wallet_account_balance: wallet_account_balance,//钱包账户余额
trade_account_balance: trade_account_balance,//交易账户余额
......
......@@ -62,7 +62,7 @@ export async function del(id: number, currentUserId: any, ip: string | undefined
}
await userSub.prototype.update({
status: 0,
status: 1,//0 有效 1 无效
}, {
where: {
id: Number(id)
......@@ -84,7 +84,7 @@ export async function count() {
let dbInfoList = await userSub.prototype.findAll({
where: {
status: 1
status: 0
},
raw: true
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment