Files
wechat_ipad_pro/api/controller/proxy_mapping_controller.go
2026-02-17 13:06:23 +08:00

28 lines
463 B
Go

package controller
import (
"net/http"
"xiawan/wx/api/service"
"github.com/gin-gonic/gin"
)
// GetProxyMappingList 获取代理映射列表
func GetProxyMappingList(ctx *gin.Context) {
list, err := service.GetProxyMappingList()
if err != nil {
ctx.JSON(http.StatusInternalServerError, gin.H{
"code": -1,
"msg": err.Error(),
"data": nil,
})
return
}
ctx.JSON(http.StatusOK, gin.H{
"code": 0,
"msg": "success",
"data": list,
})
}