123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- 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},
- });
- }
- // 批量更新标签
- export function BatchUpdateTags(data: any) {
- return request({
- url: '/api/system/interview_question/batch_update_tags',
- method: 'post',
- data
- });
- }
- // 获取职位列表
- export function GetPositionList(params: any) {
- return request({
- url: '/api/system/job/list',
- method: 'get',
- params
- });
- }
- // 批量更新分类
- export function BatchUpdateCategory(data: any) {
- return request({
- url: '/api/system/interview_question/batch_update_category',
- method: 'post',
- data
- });
- }
- // 获取问题类型
- export function GetQuestionTypeList() {
- return request({
- url: '/api/wechat/question_type_enums',
- method: 'get'
- });
- }
- export const BatchUpdateCompetencyTags = (data: any) => {
- return request({
- url: '/api/system/question/batch_update_competency_tags',
- method: 'post',
- data
- });
- }
- // 获取胜任力标签列表
- export function GetCompetencyList(params: any) {
- return request({
- url: '/api/system/competency/list',
- method: 'get',
- params: {...params, tenant_id: 1}
- });
- }
|