Initial commit, repo migration
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
export const JamKerjaGet = async () => {
|
||||
const response = await axios.get('config/get')
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const JamKerjaCreate = async (data) => {
|
||||
const response = await axios.post('config/save', data)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const RoleList = async (data) => {
|
||||
const response = await axios.post('role/list', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const RoleGetOne = async (data) => {
|
||||
const response = await axios.post('role/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const RoleUpdate = async (data) => {
|
||||
const response = await axios.post('role/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const RoleCreate = async (data) => {
|
||||
const response = await axios.post('role/create', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const RoleDelete = async (data) => {
|
||||
const response = await axios.post('role/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import axios from '../../lib/axios'
|
||||
|
||||
const headers = {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
}
|
||||
|
||||
export const UserList = async (data) => {
|
||||
const response = await axios.post('user/list', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UserGetOne = async (data) => {
|
||||
const response = await axios.post('user/get', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UserUpdate = async (data) => {
|
||||
const response = await axios.post('user/update', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UserCreate = async (data) => {
|
||||
const response = await axios.post('user/create', data, headers)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const UserDelete = async (data) => {
|
||||
const response = await axios.post('user/delete', data, headers)
|
||||
return response.data
|
||||
}
|
||||
Reference in New Issue
Block a user