| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import { http } from '@/http/alova'
- /**
- *
- * 发券人账户表-通过userId查询账户信息
- */
- // export function getCouponIssuerApplyById() {
- // return http.Get<CouponIssuerApplyByIdResponse>('/couponCenter/APP/couponIssuerAccount/queryByUserId')
- // }
- export interface CouponIssuerAccountByPageMapForm {
- pageNo?: number
- pageSize?: number
- year: string
- month: string
- status: number // 0-待结算, 1-已结算/成功
- type: number // 明细类型: 1-佣金收入, 2-提现支出, 3-退款扣减, 4-系统调整
- }
- // 定义账户明细项接口
- export interface AccountDetailItem {
- id: number
- receiveUserName: string
- couponName: string
- changeAmount: number
- settleTime: string
- [key: string]: any
- }
- // 定义分页响应数据接口
- export interface PageMapResponse {
- detailList: AccountDetailItem[]
- total: number
- [key: string]: any
- }
- // 获取账户明细分页数据(Map格式)
- export function getCouponIssuerAccountByPageMap(couponIssuerAccountByPageMapForm: CouponIssuerAccountByPageMapForm) {
- return http.Post<PageMapResponse>('/couponCenter/APP/couponIssuerAccountDetail/pageMap', couponIssuerAccountByPageMapForm)
- }
- /**
- *
- * 发券人账户表-通过userId查询解锁收益
- */
- export function getUnlockAmountByUserId() {
- return http.Get<number>('/couponCenter/APP/couponIssuerAccount/queryUnlockAmountByUserId')
- }
- export function getAccountDetailTotalAmount(params: CouponIssuerAccountByPageMapForm) {
- return http.Post('/couponCenter/APP/couponIssuerAccountDetail/getAccountDetailTotalAmount', params)
- }
|