user.api.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. import { httpAxios, httpAxiosNoNprogress, httpAxios_gym, httpAxios_gyt, httpAxios_klx } from "@/api/ApiInstance"
  2. /** 获取二维码 */
  3. export const createQrcodeApi = (uuid?: string) => {
  4. return httpAxios.axioseRquest({
  5. method: "get",
  6. url: "/open/qrcode/create?uuid=" + uuid
  7. })
  8. }
  9. /** 查询二维码状态 */
  10. export const queryQrcodeStatusApi = (uuid: string) => {
  11. return httpAxiosNoNprogress.axioseRquest({
  12. method: "get",
  13. url: "/open/qrcode/query/" + uuid
  14. })
  15. }
  16. /** 获取字典 */
  17. export const getDictionary = (key: string) => {
  18. return httpAxios.axioseRquest({
  19. method: "get",
  20. url: "/api/v1/dictitem/getByValue",
  21. params: {
  22. value: key
  23. }
  24. })
  25. }
  26. /** 管乐迷 */
  27. //获取用户信息
  28. export const queryUserInfo_gym = () => {
  29. return httpAxios_gym.axioseRquest({
  30. method: "get",
  31. url: "/api-teacher/teacher/queryUserInfo"
  32. })
  33. }
  34. // 退出登录
  35. export const logout_gym = () => {
  36. return httpAxios_gym.axioseRquest({
  37. method: "get",
  38. url: "/api-auth/exit",
  39. headers: {
  40. "Content-Type": "x-www-form-urlencoded"
  41. }
  42. })
  43. }
  44. // 安全证书
  45. export const mutualTLSQuery_gym = () => {
  46. return httpAxios_gym.axioseRquest({
  47. method: "get",
  48. url: "/api-auth/open/mutualTLS/query?isLogin=true" // 后面跟参数来区分是不是登录511
  49. })
  50. }
  51. /** 管乐团*/
  52. // 获取用户信息
  53. export const getUserInfo_gyt = () => {
  54. return httpAxios_gyt.axioseRquest({
  55. method: "get",
  56. url: "/api-teacher/user/getUserInfo"
  57. })
  58. }
  59. // 退出登录
  60. export const logout_gyt = () => {
  61. return httpAxios_gyt.axioseRquest({
  62. method: "get",
  63. url: "/api-teacher/user/logout"
  64. })
  65. }
  66. // 安全证书
  67. export const mutualTLSQuery_gyt = () => {
  68. return httpAxios_gyt.axioseRquest({
  69. method: "get",
  70. url: "/api-teacher/open/mutualTLS/query?isLogin=true" // 后面跟参数来区分是不是登录511
  71. })
  72. }
  73. /** 酷乐秀 */
  74. // 获取用户信息
  75. export const getUserInfo_klx = () => {
  76. return httpAxios_klx.axioseRquest({
  77. method: "get",
  78. url: "/api-teacher/teacher/queryUserInfo"
  79. })
  80. }
  81. // 退出登录
  82. export const logout_klx = () => {
  83. return httpAxios_klx.axioseRquest({
  84. method: "get",
  85. url: "/api-auth/exit"
  86. })
  87. }
  88. // 安全证书
  89. export const mutualTLSQuery_klx = () => {
  90. return httpAxios_klx.axioseRquest({
  91. method: "get",
  92. url: "/api-auth/open/mutualTLS/query?isLogin=true" // 后面跟参数来区分是不是登录511
  93. })
  94. }