feat: 小程序统一走 Go 后台,咨询与登录切到 /api/v1

去掉协会 WebView 和魔方账密页,微信登录与咨询接口共用同一 token 和拦截器。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-09-15 00:26:28 +08:00
co-authored by Cursor
parent 6e97f01378
commit b09d82df8d
40 changed files with 3852 additions and 285 deletions
+38 -42
View File
@@ -1,52 +1,48 @@
//统一设置API接口地址
// 统一打 Go /api/v1ECR-050 咨询域已原生,不再反代 Java)
let urls = {
// 七牛相关API
upload: `/api/v1/upload`,
newPageUrl: `/api/v1/psychic/news/page`,
newDetailUrl: `/api/v1/psychic/news/get`,
loginUrl: `/api/v1/auth/wechat`,
getBanner: `/api/v1/psychic/banner/all`,
psychicSave: `/api/v1/psychic/save`,
getPsychicListTest: `/api/v1/psychic/study/list`,
getSingleDetail: `/api/v1/psychic/study/getSingleDetail`,
userChoiceSave: `/api/v1/psychic/user-choice/save`,
getResult: `/api/v1/psychic/user-choice/getResult`,
myTest: `/api/v1/psychic/user-choice/my-test`,
businessScopeList: `/api/v1/psychic/doctor-info/business-scope-list`,
getDoctorInfo: `/api/v1/psychic/doctor-info/get`,
doctorInfopage: `/api/v1/psychic/doctor-info/page`,
focus: `/api/v1/psychic/doctor-info/focus`,
cancelFocus: `/api/v1/psychic/doctor-info/cancel-focus`,
appointTotalList: `/api/v1/psychic/appointment/remain-list`,
dateDetailList: `/api/v1/psychic/appointment/date-detail-list`,
getShowInfo: `/api/v1/psychic/doctor-info/get-show-info`,
createOrder: `/api/v1/psychic/pay/createOrder`,
refund: `/api/v1/psychic/pay/refund`,
upload: `/admin-api/infra/file/upload`,
newPageUrl: `/app-api/psychic/news/page`,
newDetailUrl: `/app-api/psychic/news/get`,
loginUrl: `/app-api/oauth/app/login`,
getBanner: `/app-api/psychic/banner/all`,
psychicSave: `/app-api/psychic/save`,
getPsychicListTest: `/app-api/psychic/study/list`,
getSingleDetail: `/app-api/psychic/study/getSingleDetail`,
userChoiceSave: `/app-api/psychic/user-choice/save`,
getResult: `/app-api/psychic/user-choice/getResult`,
myTest: `/app-api/psychic/user-choice/my-test`,
businessScopeList: `/app-api/psychic/doctor-info/business-scope-list`,
getDoctorInfo: `/app-api/psychic/doctor-info/get`,
doctorInfopage: `/app-api/psychic/doctor-info/page`,
focus: `/app-api/psychic/doctor-info/focus`,
cancelFocus: `/app-api/psychic/doctor-info/cancel-focus`,
appointTotalList: `/app-api/psychic/appointment/remain-list`,
dateDetailList: `/app-api/psychic/appointment/date-detail-list`,
getShowInfo: `/app-api/psychic/doctor-info/get-show-info`,
createOrder: `/app-api/psychic/pay/createOrder`,
refund: `/app-api/psychic/pay/refund`,
getSelfInfo: `/api/v1/psychic/platform-user/getSelfInfo`,
updateUserInfo: `/api/v1/psychic/platform-user/update`,
getSelfInfo: `/app-api/psychic/platform-user/getSelfInfo`,
updateUserInfo: `/app-api/psychic/platform-user/update`,
notReadNum: `/app-api/psychic/platform-user/not-read-num`,
focusToRead: `/app-api/psychic/platform-user/focus-to-read`,
orderToRead: `/app-api/psychic/platform-user/order-to-read`,
userFeedback: `/app-api/psychic/platform-user/user-feedback`,
feedbackFlag: `/app-api/psychic/platform-user/feedback-flag`,
notReadNum: `/api/v1/psychic/platform-user/not-read-num`,
focusToRead: `/api/v1/psychic/platform-user/focus-to-read`,
orderToRead: `/api/v1/psychic/platform-user/order-to-read`,
userFeedback: `/api/v1/psychic/platform-user/user-feedback`,
feedbackFlag: `/api/v1/psychic/platform-user/feedback-flag`,
focusAll: `/app-api/psychic/platform-user/focus-all`,
getByCode: `/app-api/psychic/procotol/getByCode`,
focusAll: `/api/v1/psychic/platform-user/focus-all`,
getByCode: `/api/v1/psychic/procotol/getByCode`,
createZxOrder: `/api/v1/psychic/order/create`,
// 订单
createZxOrder: `/app-api/psychic/order/create`,
orderList: `/app-api/psychic/order/order-list`,
orderDetail: `/app-api/psychic/order/order-detail`,
getPayParam: `/app-api/psychic/order/get-pay-param`,
cancelOrder: `/app-api/psychic/order/cancel`,
deleteOrder: `/app-api/psychic/order/delete-order`,
orderList: `/api/v1/psychic/order/order-list`,
orderDetail: `/api/v1/psychic/order/order-detail`,
getPayParam: `/api/v1/psychic/order/get-pay-param`,
cancelOrder: `/api/v1/psychic/order/cancel`,
deleteOrder: `/api/v1/psychic/order/delete-order`,
}
export {
urls
}
}