Skip to content

Commit

Permalink
refactor: 优化 部分代码的导入风格
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoMeiYouRen committed Nov 19, 2024
1 parent 2dcae85 commit 51baf2b
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/one.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CustomEmail, Dingtalk, Discord, IGot, OneBot, PushDeer, PushPlus, Qmsg, ServerChanTurbo, ServerChanV3, Telegram, WechatApp, WechatRobot, XiZhi } from '../src'
import { SendResponse } from '../src/interfaces/response'
import { CustomEmail, Dingtalk, Discord, IGot, OneBot, PushDeer, PushPlus, Qmsg, ServerChanTurbo, ServerChanV3, Telegram, WechatApp, WechatRobot, XiZhi } from './index'
import { SendResponse } from '@/interfaces/response'

const PushAllInOne = {
CustomEmail,
Expand Down
2 changes: 1 addition & 1 deletion src/push/custom-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import debug from 'debug'
import nodemailer from 'nodemailer'
import SMTPTransport from 'nodemailer/lib/smtp-transport'
import Mail from 'nodemailer/lib/mailer'
import { Send } from '../interfaces/send'
import { Send } from '@/interfaces/send'
import { SendResponse } from '@/interfaces/response'

const Debugger = debug('push:custom-email')
Expand Down
2 changes: 1 addition & 1 deletion src/push/discord.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Send } from '../interfaces/send'
import { Send } from '@/interfaces/send'
import { ajax } from '@/utils/ajax'
import { SendResponse } from '@/interfaces/response'

Expand Down
2 changes: 1 addition & 1 deletion src/push/i-got.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Send } from '../interfaces/send'
import { Send } from '@/interfaces/send'
import { ajax } from '@/utils/ajax'
import { SendResponse } from '@/interfaces/response'

Expand Down
2 changes: 1 addition & 1 deletion src/push/push-deer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Send } from '../interfaces/send'
import { Send } from '@/interfaces/send'
import { ajax } from '@/utils/ajax'
import { SendResponse } from '@/interfaces/response'

Expand Down
2 changes: 1 addition & 1 deletion src/push/push-plus.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Send } from '../interfaces/send'
import { Send } from '@/interfaces/send'
import { ajax } from '@/utils/ajax'
import { SendResponse } from '@/interfaces/response'

Expand Down
2 changes: 1 addition & 1 deletion src/push/qmsg.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Send } from '../interfaces/send'
import { Send } from '@/interfaces/send'
import { ajax } from '@/utils/ajax'
import { SendResponse } from '@/interfaces/response'

Expand Down
2 changes: 1 addition & 1 deletion src/push/telegram.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Send } from '../interfaces/send'
import { Send } from '@/interfaces/send'
import { ajax } from '@/utils/ajax'
import { SendResponse } from '@/interfaces/response'

Expand Down
2 changes: 1 addition & 1 deletion src/push/wechat-app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Send } from '../interfaces/send'
import { Send } from '@/interfaces/send'
import { warn } from '@/utils/helper'
import { ajax } from '@/utils/ajax'
import { SendResponse } from '@/interfaces/response'
Expand Down
2 changes: 1 addition & 1 deletion src/push/wechat-robot.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Send } from '../interfaces/send'
import { Send } from '@/interfaces/send'
import { ajax } from '@/utils/ajax'
import { SendResponse } from '@/interfaces/response'

Expand Down
2 changes: 1 addition & 1 deletion src/push/xi-zhi.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import { Send } from '../interfaces/send'
import { Send } from '@/interfaces/send'
import { ajax } from '@/utils/ajax'
import { SendResponse } from '@/interfaces/response'

Expand Down

0 comments on commit 51baf2b

Please sign in to comment.