Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
ts-api-demo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wmvm
ts-api-demo
Commits
9185640d
Commit
9185640d
authored
Nov 08, 2024
by
ml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邮件订阅相关接口调整
parent
86856f1d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
9 deletions
+4
-9
mUserSubscribe.control.ts
src/functional/mvc/control/mUserSubscribe.control.ts
+0
-3
mUserMailLog.service.ts
src/functional/mvc/service/mUserMailLog.service.ts
+0
-2
mUserManage.service.ts
src/functional/mvc/service/mUserManage.service.ts
+2
-2
mUserSubscribe.service.ts
src/functional/mvc/service/mUserSubscribe.service.ts
+2
-2
No files found.
src/functional/mvc/control/mUserSubscribe.control.ts
View file @
9185640d
...
@@ -30,7 +30,6 @@ export const list = async (req: any, queryVO: QueryVO) => {
...
@@ -30,7 +30,6 @@ export const list = async (req: any, queryVO: QueryVO) => {
/**
/**
* 删除订阅
* 删除订阅
* TODO: 关于status 字段 从老管理后台来看 0 代表无效 1 代表有效 但是数据库备注 0 有效 1 无效 以哪个为准?
* @param req
* @param req
* @param authConfigVO
* @param authConfigVO
*/
*/
...
@@ -52,7 +51,6 @@ export const del = async (req: any, queryVO: QueryVO) => {
...
@@ -52,7 +51,6 @@ export const del = async (req: any, queryVO: QueryVO) => {
/**
/**
* 订阅统计
* 订阅统计
* TODO: 关于status 字段 从老管理后台来看 0 代表无效 1 代表有效 但是数据库备注 0 有效 1 无效 以哪个为准?
* @param req
* @param req
* @param authConfigVO
* @param authConfigVO
*/
*/
...
@@ -111,7 +109,6 @@ export const mailDetail = async (req: any, userMailLogVO: UserMailLogVO) => {
...
@@ -111,7 +109,6 @@ export const mailDetail = async (req: any, userMailLogVO: UserMailLogVO) => {
/**
/**
* 邮件发送
* 邮件发送
* TODO: 关于status 字段 从老管理后台来看 0 代表无效 1 代表有效 但是数据库备注 0 有效 1 无效 service里面又查询 status = 0 的 ???
* @param req
* @param req
* @param userMailLogVO
* @param userMailLogVO
*/
*/
...
...
src/functional/mvc/service/mUserMailLog.service.ts
View file @
9185640d
...
@@ -62,7 +62,6 @@ export async function mailDetail(id: number | undefined) {
...
@@ -62,7 +62,6 @@ export async function mailDetail(id: number | undefined) {
export
async
function
mailSend
(
userMailLogVO
:
UserMailLogVO
,
currentUserId
:
any
,
ip
:
string
|
undefined
)
{
export
async
function
mailSend
(
userMailLogVO
:
UserMailLogVO
,
currentUserId
:
any
,
ip
:
string
|
undefined
)
{
let
where
=
{
let
where
=
{
//TODO:0 ? 1 ???
status
:
0
status
:
0
};
};
if
(
userMailLogVO
.
user_id
)
{
if
(
userMailLogVO
.
user_id
)
{
...
@@ -95,7 +94,6 @@ export async function mailSend(userMailLogVO: UserMailLogVO, currentUserId: any,
...
@@ -95,7 +94,6 @@ export async function mailSend(userMailLogVO: UserMailLogVO, currentUserId: any,
}
}
for
(
let
sub
of
toAddrRes
)
{
for
(
let
sub
of
toAddrRes
)
{
//TODO:老管理后台就没有模版 ???
sendEmail
(
sub
.
sub
,
sub
.
user_id
,
""
,
params
,
userMailLogVO
.
lang
);
sendEmail
(
sub
.
sub
,
sub
.
user_id
,
""
,
params
,
userMailLogVO
.
lang
);
}
}
...
...
src/functional/mvc/service/mUserManage.service.ts
View file @
9185640d
...
@@ -428,8 +428,8 @@ async function buildReturnData(pageData: any, fill_user_info: boolean, fill_coin
...
@@ -428,8 +428,8 @@ async function buildReturnData(pageData: any, fill_user_info: boolean, fill_coin
real_name
:
item
.
real_name
?
item
.
real_name
:
""
,
real_name
:
item
.
real_name
?
item
.
real_name
:
""
,
email
:
item
.
email
?
item
.
email
:
""
,
email
:
item
.
email
?
item
.
email
:
""
,
register_date
:
item
.
createdAt
?
item
.
createdAt
:
""
,
register_date
:
item
.
createdAt
?
item
.
createdAt
:
""
,
spot_balance
:
0
,
//TODO:现货余额
spot_balance
:
0
,
contract_balance
:
0
,
//TODO:永续合约余额
contract_balance
:
0
,
assets_total
:
assets_total
,
//总资产
assets_total
:
assets_total
,
//总资产
wallet_account_balance
:
wallet_account_balance
,
//钱包账户余额
wallet_account_balance
:
wallet_account_balance
,
//钱包账户余额
trade_account_balance
:
trade_account_balance
,
//交易账户余额
trade_account_balance
:
trade_account_balance
,
//交易账户余额
...
...
src/functional/mvc/service/mUserSubscribe.service.ts
View file @
9185640d
...
@@ -62,7 +62,7 @@ export async function del(id: number, currentUserId: any, ip: string | undefined
...
@@ -62,7 +62,7 @@ export async function del(id: number, currentUserId: any, ip: string | undefined
}
}
await
userSub
.
prototype
.
update
({
await
userSub
.
prototype
.
update
({
status
:
0
,
status
:
1
,
//0 有效 1 无效
},
{
},
{
where
:
{
where
:
{
id
:
Number
(
id
)
id
:
Number
(
id
)
...
@@ -84,7 +84,7 @@ export async function count() {
...
@@ -84,7 +84,7 @@ export async function count() {
let
dbInfoList
=
await
userSub
.
prototype
.
findAll
({
let
dbInfoList
=
await
userSub
.
prototype
.
findAll
({
where
:
{
where
:
{
status
:
1
status
:
0
},
},
raw
:
true
raw
:
true
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment