123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- import { http } from '@/utils/http'
- const homeUrl = ''
- const getSacleUrl = '/scale/findScaleByFlag'
- const saveSacleUrl = '/record/saveScaleRecord'
- const saveGoNoGoUrl = '/record/saveSuppressionRecord'
- const saveFaceDotUrl = '/record/saveEmotionRecord'
- const getDataUrl = '/plan/findCompletePlanByUser'
- const queryReportUrl = '/userBriefing/findByFlag'
- const pubMsgUrl = '/comment/addComment'
- const queryMsgUrl = '/comment/findAllByPage'
- const queryScaleDetailUrl = '/subject/findByFlag'
- const queryCognizeDetailUrl = '/cognitive/findByFlag'
- export const homeApi = (val: any) => {
- return http<any>(
- {
- method: 'post',
- url: homeUrl,
- data: { val }
- })
- }
- export const getScaleApi = (val: string) => {
- return http<any>(
- {
- method: 'get',
- url: `${getSacleUrl}?flag=${val}`
- })
- }
- export const saveScaleApi = (val: any) => {
- return http<any>(
- {
- method: 'post',
- url: saveSacleUrl,
- data: { ...val }
- })
- }
- export const saveGoNoGoApi = (val: any) => {
- return http<any>(
- {
- method: 'post',
- url: saveGoNoGoUrl,
- data: { ...val }
- })
- }
- export const saveFaceDotApi = (val: any) => {
- return http<any>(
- {
- method: 'post',
- url: saveFaceDotUrl,
- data: { ...val }
- })
- }
- export const getDataApi = (val: any) => {
- return http<any>(
- {
- method: 'get',
- url: `${getDataUrl}?pageNum=${val.pageNum}&pageSize=${val.pageSize}&userNo=${val.userNo}`,
- })
- }
- export const queryReportApi = (val: any) => {
- return http<any>(
- {
- method: 'get',
- url: `${queryReportUrl}?planId=${val.planId}&flag=${val.flag}`,
- })
- }
- export const pubMsgApi = (val: any) => {
- return http<any>(
- {
- method: 'post',
- url: pubMsgUrl,
- data: { ...val }
- })
- }
- export const subPubMsgApi = (val: any) => {
- return http<any>(
- {
- method: 'post',
- url: pubMsgUrl,
- data: { ...val }
- })
- }
- export const queryMsgApi = (val: any) => {
- return http<any>(
- {
- method: 'get',
- url: `${queryMsgUrl}?pageNum=${val.pageNum}&pageSize=${val.pageSize}`,
- })
- }
- export const queryMsgApi1 = (val: any) => {
- return http<any>(
- {
- method: 'get',
- url: `${queryMsgUrl}?pageNum=${val.pageNum}&pageSize=${val.pageSize}&parentId=${val.parentId}`,
- })
- }
- export const queryScaleDetailApi = (val: string) => {
- return http<any>({
- method: 'get',
- url: `${queryScaleDetailUrl}?flag=${val}`
- })
- }
- export const queryCognizeDetailApi = (val: string) => {
- return http<any>({
- method: 'get',
- url: `${queryCognizeDetailUrl}?flag=${val}`
- })
- }
|