| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import request from '@/utils/request';
- import { AxiosPromise } from 'axios';
- import { HandHistoryVO, HandHistoryForm, HandHistoryQuery } from '@/api/system/business/handHistory/types';
- /**
- * 查询【请填写功能名称】列表
- * @param query
- * @returns {*}
- */
- export const listHandHistory = (query?: HandHistoryQuery): AxiosPromise<HandHistoryVO[]> => {
- return request({
- url: '/business/handHistory/list',
- method: 'get',
- params: query
- });
- };
- /**
- * 查询【请填写功能名称】详细
- * @param playerId
- */
- export const getHandHistory = (playerId: string | number): AxiosPromise<HandHistoryVO> => {
- return request({
- url: '/business/handHistory/' + playerId,
- method: 'get'
- });
- };
- /**
- * 新增【请填写功能名称】
- * @param data
- */
- export const addHandHistory = (data: HandHistoryForm) => {
- return request({
- url: '/business/handHistory',
- method: 'post',
- data: data
- });
- };
- /**
- * 修改【请填写功能名称】
- * @param data
- */
- export const updateHandHistory = (data: HandHistoryForm) => {
- return request({
- url: '/business/handHistory',
- method: 'put',
- data: data
- });
- };
- /**
- * 删除【请填写功能名称】
- * @param playerId
- */
- export const delHandHistory = (playerId: string | number | Array<string | number>) => {
- return request({
- url: '/business/handHistory/' + playerId,
- method: 'delete'
- });
- };
|