123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import { request } from '/@/utils/service';
- import { PageQuery, AddReq, DelReq, EditReq, InfoReq } from '@fast-crud/fast-crud';
- import { Session } from '/@/utils/storage';
- export const apiPrefix = '/system/interview_question/create';
- export function GetPermission() {
- return request({
- url: apiPrefix + 'field_permission/',
- method: 'get',
- });
- }
- export function GetList(query: PageQuery) {
- return request({
- url: '/api/system/interview_question/list',
- method: 'get',
- params: {...query,tenant_id:1},/* :Session.get('tenant_id').tenant_id || ,tenant_id:'1' */
- });
- }
- export function GetObj(id: InfoReq) {
- return request({
- url: "/api/system/interview_question/detail" + id,
- method: 'get',
- });
- }
- export function AddObj(obj: AddReq) {
- return request({
- url: "/api/system/interview_question/create",
- method: 'post',
- data: {...obj,tenant_id: '1'},/* Session.get('tenant_id').tenant_id ||,tenant_id: '1' */
- });
- }
- export function UpdateObj(obj: EditReq) {
- return request({
- url: "/api/system/interview_question/update",/* + obj.id+'/' */
- method: 'put',
- data: {...obj,tenant_id: '1'},
- });
- }
- export function DelObj(id: DelReq) {
- return request({
- url: '/api/system/interview_question/delete',/* + id + '/' ,tenant_id: '1' */
- method: 'delete',
- data: { id},
- });
- }
- export function GetTagList(params: any) {
- return request({
- url: '/api/system/question_tag/list',
- method: 'get',
- params: {...params,tenant_id:1},
- });
- }
- export function GetcategoryList(params: any) {
- return request({
- url: '/api/system/question_category/list',
- method: 'get',
- params: {...params,tenant_id:1},
- });
- }
|