123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- import request from '@/utils/request'
- export function login(data) {
- return request({
- url: '/auth/login',
- method: 'post',
- data: data
- })
- }
- export function loginOut(data) {
- return request({
- url: '/auth/logout',
- method: 'post',
- data: data
- })
- }
- export function getUserInfo() {
- return request({
- url: '/auth/user/info',
- method: 'get',
- })
- }
- export function getChatList(data) {
- return request({
- url: '/messages/history/selConversationList',
- method: 'get',
- data: data
- })
- }
- export function getChatDetail(data) {
- return request({
- url: '/messages/history/pageList',
- method: 'get',
- data: data
- })
- }
- export function deleteChat(data) {
- return request({
- url: '/messages/history/delMessages',
- method: 'post',
- data: data
- })
- }
- export function putChat(data) {
- return request({
- url: '/messages/history',
- method: 'post',
- data: data
- })
- }
- export function getQRcodeResult(data) {
- return request({
- url: `/auth/status/${data}`,
- method: 'get',
- })
- }
- export function getQRcode(data) {
- return request({
- url: '/statistics/frontList',
- method: 'put',
- data: data
- })
- }
- export function getCode(data) {
- return request({
- url: '/statistics/frontList',
- method: 'put',
- data: data
- })
- }
- export function getWeChatLoginCode({source}) {
- return request({
- url: `/auth/${source}`,
- method: 'get',
- })
- }
- export function getBehaviorCaptcha(data) {
- return request({
- url: `/captcha/behavior`,
- method: 'get',
- data: data
- })
- }
- export function checkBehaviorCaptcha(data) {
- return request({
- url: `/captcha/behavior`,
- method: 'post',
- data: data
- })
- }
- export function getSmsCaptcha(data) {
- return request({
- url: `/captcha/sms`,
- method: 'get',
- data
- })
- }
- export function uploadFile(data) {
- return request({
- url: `/messages/file/addFile`,
- method: 'post',
- data: data,
- headers: {
- 'Content-Type': 'multipart/form-data'
- },
- })
- }
- export function getDomainList(data) {
- return request({
- url: `/ai/agent/list`,
- method: 'get',
- data
- })
- }
- export function getModalList(data) {
- return request({
- url: `/ai/model/pageList`,
- method: 'get',
- data
- })
- }
|