diff --git a/src/api/user/index.ts b/src/api/user/index.ts index 59e0852..7e1b6f9 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -1,7 +1,7 @@ /** * 用户信息相关接口 */ -import type { CouponBean, LoginParams, LoginResult, RegisterParams, TerminalBean, SetPayPasswordParams} from './types'; +import type { CouponBean, LoginParams, LoginResult, RegisterParams, TerminalBean, SetPayPasswordParams,PayPasswordResponse} from './types'; import { get, post } from '@/utils/request'; import { UserBean } from '@/store/modules/user/types'; diff --git a/src/api/user/types.ts b/src/api/user/types.ts index 39aa857..2292727 100644 --- a/src/api/user/types.ts +++ b/src/api/user/types.ts @@ -124,3 +124,9 @@ export interface SetPayPasswordParams { oldpwd: string, newpwd: string } + +export interface PayPasswordResponse { + success: boolean + message: string + hasPassword?: boolean +}