1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import { Result, deleteRequest, get, post, put } from "../base";
- /**
- * 分页查询
- * @param query .
- * @returns .
- */
- export function queryPage<T>(query?: any): Promise<Result<T>> {
- return get("/sys/pay/agent/page", query);
- }
- /**
- * 列表查询
- * @param query .
- * @returns .
- */
- export function queryList<T>(query?: any): Promise<Result<T>> {
- return get("/sys/pay/agent/list", query);
- }
- /**
- * 新增
- * @param data .
- * @returns .
- */
- export function save<T>(data: any): Promise<Result<T>> {
- return post("/sys/pay/agent/save", data);
- }
- /**
- * 更新
- * @param id .
- * @param data .
- * @returns .
- */
- export function update<T>(id: string, data: any): Promise<Result<T>> {
- return put(`/sys/pay/agent/update/${id}`, {}, data);
- }
- /**
- * 删除用户
- * @param userIds .
- * @returns .
- */
- export function del<T>(userIds: string[]): Promise<Result<T>> {
- return deleteRequest(`/sys/pay/agent/remove`, {}, userIds);
- }
|