初始化
This commit is contained in:
58
api/photo.js
Normal file
58
api/photo.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import request from '@/config/api.js'
|
||||
import axios from "@/config/api.js";
|
||||
|
||||
//查询学生照片
|
||||
export function getOwnPhoto(){
|
||||
return axios.get("/stureg/photo/getOwnPhoto");
|
||||
}
|
||||
|
||||
|
||||
//提交学生照片
|
||||
export function submitOwnPhoto(data){
|
||||
return axios.post("/stureg/photo/submitOwnPhoto",data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 查询新生照片列表
|
||||
export function listPhoto(query) {
|
||||
return request({
|
||||
url: '/stureg/photo/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询新生照片详细
|
||||
export function getPhoto(id) {
|
||||
return request({
|
||||
url: '/stureg/photo/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增新生照片
|
||||
export function addPhoto(data) {
|
||||
return request({
|
||||
url: '/stureg/photo/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改新生照片
|
||||
export function updatePhoto(data) {
|
||||
return request({
|
||||
url: '/stureg/photo/update',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除新生照片
|
||||
export function delPhoto(id) {
|
||||
return request({
|
||||
url: '/stureg/photo/' + id,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user