Files
mayfly-go/mayfly_go_web/src/common/openApi.ts

12 lines
466 B
TypeScript
Raw Normal View History

import Api from './Api'
export default {
login: Api.newPost("/sys/accounts/login"),
2023-06-17 15:15:03 +08:00
otpVerify: Api.newPost("/sys/accounts/otp-verify"),
changePwd: Api.newPost("/sys/accounts/change-pwd"),
getPublicKey: Api.newGet("/common/public-key"),
getConfigValue: Api.newGet("/sys/configs/value"),
captcha: Api.newGet("/sys/captcha"),
logout: Api.newPost("/sys/accounts/logout/{token}"),
getPermissions: Api.newGet("/sys/accounts/permissions")
}