feat: 项目初始化。
This commit is contained in:
63
src/api/fishery/aquUser/index.ts
Normal file
63
src/api/fishery/aquUser/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { AquUserVO, AquUserForm, AquUserQuery } from '@/api/fishery/aquUser/types';
|
||||
|
||||
/**
|
||||
* 查询养殖用户管理列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listAquUser = (query?: AquUserQuery): AxiosPromise<AquUserVO[]> => {
|
||||
return request({
|
||||
url: '/fishery/aquUser/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询养殖用户管理详细
|
||||
* @param id
|
||||
*/
|
||||
export const getAquUser = (id: string | number): AxiosPromise<AquUserVO> => {
|
||||
return request({
|
||||
url: '/fishery/aquUser/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增养殖用户管理
|
||||
* @param data
|
||||
*/
|
||||
export const addAquUser = (data: AquUserForm) => {
|
||||
return request({
|
||||
url: '/fishery/aquUser',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改养殖用户管理
|
||||
* @param data
|
||||
*/
|
||||
export const updateAquUser = (data: AquUserForm) => {
|
||||
return request({
|
||||
url: '/fishery/aquUser',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除养殖用户管理
|
||||
* @param id
|
||||
*/
|
||||
export const delAquUser = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/fishery/aquUser/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
258
src/api/fishery/aquUser/types.ts
Normal file
258
src/api/fishery/aquUser/types.ts
Normal file
@@ -0,0 +1,258 @@
|
||||
export interface AquUserVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
userName: string;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
mobilePhone: string;
|
||||
|
||||
/**
|
||||
* 省份
|
||||
*/
|
||||
province: string;
|
||||
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
city: string;
|
||||
|
||||
/**
|
||||
* 区县
|
||||
*/
|
||||
district: string;
|
||||
|
||||
/**
|
||||
* 报警电话列表json
|
||||
*/
|
||||
warnPhoneJson: string;
|
||||
|
||||
/**
|
||||
* 访问Token
|
||||
*/
|
||||
accessToken: string;
|
||||
|
||||
/**
|
||||
* 刷新Token
|
||||
*/
|
||||
refreshToken: string;
|
||||
|
||||
/**
|
||||
* 小程序的openId
|
||||
*/
|
||||
wxOpenId: string | number;
|
||||
|
||||
/**
|
||||
* 微信SessionKey
|
||||
*/
|
||||
wxSessionKey: string;
|
||||
|
||||
/**
|
||||
* 是否管理员
|
||||
*/
|
||||
isManager: number;
|
||||
|
||||
/**
|
||||
* 微信unionId
|
||||
*/
|
||||
wxUnionId: string | number;
|
||||
|
||||
/**
|
||||
* 公众号的openId
|
||||
*/
|
||||
tecentOpenId: string | number;
|
||||
|
||||
/**
|
||||
* 展示标题
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 是否拥有大屏
|
||||
*/
|
||||
hasScreen: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface AquUserForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
mobilePhone?: string;
|
||||
|
||||
/**
|
||||
* 省份
|
||||
*/
|
||||
province?: string;
|
||||
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
city?: string;
|
||||
|
||||
/**
|
||||
* 区县
|
||||
*/
|
||||
district?: string;
|
||||
|
||||
/**
|
||||
* 报警电话列表json
|
||||
*/
|
||||
warnPhoneJson?: string;
|
||||
|
||||
/**
|
||||
* 访问Token
|
||||
*/
|
||||
accessToken?: string;
|
||||
|
||||
/**
|
||||
* 刷新Token
|
||||
*/
|
||||
refreshToken?: string;
|
||||
|
||||
/**
|
||||
* 小程序的openId
|
||||
*/
|
||||
wxOpenId?: string | number;
|
||||
|
||||
/**
|
||||
* 微信SessionKey
|
||||
*/
|
||||
wxSessionKey?: string;
|
||||
|
||||
/**
|
||||
* 是否管理员
|
||||
*/
|
||||
isManager?: number;
|
||||
|
||||
/**
|
||||
* 微信unionId
|
||||
*/
|
||||
wxUnionId?: string | number;
|
||||
|
||||
/**
|
||||
* 公众号的openId
|
||||
*/
|
||||
tecentOpenId?: string | number;
|
||||
|
||||
/**
|
||||
* 展示标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 是否拥有大屏
|
||||
*/
|
||||
hasScreen?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface AquUserQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
mobilePhone?: string;
|
||||
|
||||
/**
|
||||
* 省份
|
||||
*/
|
||||
province?: string;
|
||||
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
city?: string;
|
||||
|
||||
/**
|
||||
* 区县
|
||||
*/
|
||||
district?: string;
|
||||
|
||||
/**
|
||||
* 报警电话列表json
|
||||
*/
|
||||
warnPhoneJson?: string;
|
||||
|
||||
/**
|
||||
* 访问Token
|
||||
*/
|
||||
accessToken?: string;
|
||||
|
||||
/**
|
||||
* 刷新Token
|
||||
*/
|
||||
refreshToken?: string;
|
||||
|
||||
/**
|
||||
* 小程序的openId
|
||||
*/
|
||||
wxOpenId?: string | number;
|
||||
|
||||
/**
|
||||
* 微信SessionKey
|
||||
*/
|
||||
wxSessionKey?: string;
|
||||
|
||||
/**
|
||||
* 是否管理员
|
||||
*/
|
||||
isManager?: number;
|
||||
|
||||
/**
|
||||
* 微信unionId
|
||||
*/
|
||||
wxUnionId?: string | number;
|
||||
|
||||
/**
|
||||
* 公众号的openId
|
||||
*/
|
||||
tecentOpenId?: string | number;
|
||||
|
||||
/**
|
||||
* 展示标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 是否拥有大屏
|
||||
*/
|
||||
hasScreen?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/fishery/deviceThreshold/index.ts
Normal file
63
src/api/fishery/deviceThreshold/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { DeviceThresholdVO, DeviceThresholdForm, DeviceThresholdQuery } from '@/api/fishery/deviceThreshold/types';
|
||||
|
||||
/**
|
||||
* 查询设备阈值管理列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listDeviceThreshold = (query?: DeviceThresholdQuery): AxiosPromise<DeviceThresholdVO[]> => {
|
||||
return request({
|
||||
url: '/fishery/deviceThreshold/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询设备阈值管理详细
|
||||
* @param id
|
||||
*/
|
||||
export const getDeviceThreshold = (id: string | number): AxiosPromise<DeviceThresholdVO> => {
|
||||
return request({
|
||||
url: '/fishery/deviceThreshold/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增设备阈值管理
|
||||
* @param data
|
||||
*/
|
||||
export const addDeviceThreshold = (data: DeviceThresholdForm) => {
|
||||
return request({
|
||||
url: '/fishery/deviceThreshold',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改设备阈值管理
|
||||
* @param data
|
||||
*/
|
||||
export const updateDeviceThreshold = (data: DeviceThresholdForm) => {
|
||||
return request({
|
||||
url: '/fishery/deviceThreshold',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除设备阈值管理
|
||||
* @param id
|
||||
*/
|
||||
export const delDeviceThreshold = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/fishery/deviceThreshold/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
93
src/api/fishery/deviceThreshold/types.ts
Normal file
93
src/api/fishery/deviceThreshold/types.ts
Normal file
@@ -0,0 +1,93 @@
|
||||
export interface DeviceThresholdVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 参数类型
|
||||
*/
|
||||
thresholdType: number;
|
||||
|
||||
/**
|
||||
* 阈值名称
|
||||
*/
|
||||
thresholdName: string;
|
||||
|
||||
/**
|
||||
* 最大值
|
||||
*/
|
||||
limitUpper: number;
|
||||
|
||||
/**
|
||||
* 最小值
|
||||
*/
|
||||
limitLower: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DeviceThresholdForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 参数类型
|
||||
*/
|
||||
thresholdType?: number;
|
||||
|
||||
/**
|
||||
* 阈值名称
|
||||
*/
|
||||
thresholdName?: string;
|
||||
|
||||
/**
|
||||
* 最大值
|
||||
*/
|
||||
limitUpper?: number;
|
||||
|
||||
/**
|
||||
* 最小值
|
||||
*/
|
||||
limitLower?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DeviceThresholdQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 参数类型
|
||||
*/
|
||||
thresholdType?: number;
|
||||
|
||||
/**
|
||||
* 阈值名称
|
||||
*/
|
||||
thresholdName?: string;
|
||||
|
||||
/**
|
||||
* 最大值
|
||||
*/
|
||||
limitUpper?: number;
|
||||
|
||||
/**
|
||||
* 最小值
|
||||
*/
|
||||
limitLower?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/fishery/fish/index.ts
Normal file
63
src/api/fishery/fish/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { FishVO, FishForm, FishQuery } from '@/api/fishery/fish/types';
|
||||
|
||||
/**
|
||||
* 查询鱼类管理列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listFish = (query?: FishQuery): AxiosPromise<FishVO[]> => {
|
||||
return request({
|
||||
url: '/fishery/fish/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询鱼类管理详细
|
||||
* @param id
|
||||
*/
|
||||
export const getFish = (id: string | number): AxiosPromise<FishVO> => {
|
||||
return request({
|
||||
url: '/fishery/fish/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增鱼类管理
|
||||
* @param data
|
||||
*/
|
||||
export const addFish = (data: FishForm) => {
|
||||
return request({
|
||||
url: '/fishery/fish',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改鱼类管理
|
||||
* @param data
|
||||
*/
|
||||
export const updateFish = (data: FishForm) => {
|
||||
return request({
|
||||
url: '/fishery/fish',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除鱼类管理
|
||||
* @param id
|
||||
*/
|
||||
export const delFish = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/fishery/fish/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
63
src/api/fishery/fish/types.ts
Normal file
63
src/api/fishery/fish/types.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
export interface FishVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 鱼类类型
|
||||
*/
|
||||
fishType: number;
|
||||
|
||||
/**
|
||||
* 鱼类名称
|
||||
*/
|
||||
fishName: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FishForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 鱼类类型
|
||||
*/
|
||||
fishType?: number;
|
||||
|
||||
/**
|
||||
* 鱼类名称
|
||||
*/
|
||||
fishName?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FishQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 鱼类类型
|
||||
*/
|
||||
fishType?: number;
|
||||
|
||||
/**
|
||||
* 鱼类名称
|
||||
*/
|
||||
fishName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/fishery/pond/index.ts
Normal file
63
src/api/fishery/pond/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { PondVO, PondForm, PondQuery } from '@/api/fishery/pond/types';
|
||||
|
||||
/**
|
||||
* 查询塘口管理列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listPond = (query?: PondQuery): AxiosPromise<PondVO[]> => {
|
||||
return request({
|
||||
url: '/fishery/pond/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询塘口管理详细
|
||||
* @param id
|
||||
*/
|
||||
export const getPond = (id: string | number): AxiosPromise<PondVO> => {
|
||||
return request({
|
||||
url: '/fishery/pond/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增塘口管理
|
||||
* @param data
|
||||
*/
|
||||
export const addPond = (data: PondForm) => {
|
||||
return request({
|
||||
url: '/fishery/pond',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改塘口管理
|
||||
* @param data
|
||||
*/
|
||||
export const updatePond = (data: PondForm) => {
|
||||
return request({
|
||||
url: '/fishery/pond',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除塘口管理
|
||||
* @param id
|
||||
*/
|
||||
export const delPond = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/fishery/pond/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
135
src/api/fishery/pond/types.ts
Normal file
135
src/api/fishery/pond/types.ts
Normal file
@@ -0,0 +1,135 @@
|
||||
export interface PondVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId: string | number;
|
||||
|
||||
/**
|
||||
* 塘口名称
|
||||
*/
|
||||
pondName: string;
|
||||
|
||||
/**
|
||||
* 鱼品种列表
|
||||
*/
|
||||
fishKindIds: string | number;
|
||||
|
||||
/**
|
||||
* 面积
|
||||
*/
|
||||
area: number;
|
||||
|
||||
/**
|
||||
* 密度
|
||||
*/
|
||||
density: number;
|
||||
|
||||
/**
|
||||
* 投苗日期
|
||||
*/
|
||||
placeTime: string;
|
||||
|
||||
/**
|
||||
* 夜间防止误关
|
||||
*/
|
||||
keepNightOpen: number;
|
||||
}
|
||||
|
||||
export interface PondForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 塘口名称
|
||||
*/
|
||||
pondName?: string;
|
||||
|
||||
/**
|
||||
* 鱼品种列表
|
||||
*/
|
||||
fishKindIds?: string | number;
|
||||
|
||||
/**
|
||||
* 面积
|
||||
*/
|
||||
area?: number;
|
||||
|
||||
/**
|
||||
* 密度
|
||||
*/
|
||||
density?: number;
|
||||
|
||||
/**
|
||||
* 投苗日期
|
||||
*/
|
||||
placeTime?: string;
|
||||
|
||||
/**
|
||||
* 夜间防止误关
|
||||
*/
|
||||
keepNightOpen?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface PondQuery extends PageQuery {
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 塘口名称
|
||||
*/
|
||||
pondName?: string;
|
||||
|
||||
/**
|
||||
* 鱼品种列表
|
||||
*/
|
||||
fishKindIds?: string | number;
|
||||
|
||||
/**
|
||||
* 投苗日期
|
||||
*/
|
||||
placeTime?: string;
|
||||
|
||||
/**
|
||||
* 夜间防止误关
|
||||
*/
|
||||
keepNightOpen?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
|
||||
/**
|
||||
* 投苗日期
|
||||
*/
|
||||
time?: string;
|
||||
|
||||
/**
|
||||
* 投苗日期
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 投苗日期
|
||||
*/
|
||||
endTime?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user