1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- /*
- * @Author: your name
- * @Date: 2022-02-21 09:15:17
- * @LastEditTime: 2022-02-23 15:11:47
- * @LastEditors: Please set LastEditors
- * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- * @FilePath: \CABaggageData\src\api\login.js
- */
- import request from '@/utils/request-new'
- //获取权限
- export function getAuth (params) {
- return request({
- url: '/foxlibc/getAuth',
- method: 'post',
- data: params
- })
- }
- //登录
- export function signIn (params) {
- return request({
- url: '/foxlibc/sign-in',
- method: 'post',
- data: params
- })
- }
- //登出
- export function loginOut (params) {
- return request({
- url: '/foxlibc/loginOut',
- method: 'post',
- data: params
- })
- }
- //获取验证码
- export function getVCode (params) {
- return request({
- url: '/foxlibc/getVCode',
- method: 'post',
- data: params
- })
- }
- //重置token
- export function refreshToken (params) {
- return request({
- url: '/foxlibc/refreshToken',
- method: 'post',
- data: params
- })
- }
- //token
- export function getToken (params) {
- return request({
- url: '/foxlibc/getToken',
- method: 'post',
- data: params,
- istoken: true
- })
- }
- //修改密码
- export function modifypass (params) {
- return request({
- url: '/openApi/query',
- method: 'post',
- data: params,
- istoken: true
- })
- }
|