admin_backend/controller/auth.go
2025-01-09 10:33:13 +08:00

24 lines
430 B
Go

package controller
import "github.com/gin-gonic/gin"
func Login(c *gin.Context) {
c.JSON(200, gin.H{
"code": 0,
"data": map[string]interface{}{
"accessToken": "fakeToken",
},
"message": "Login success!",
})
}
func Codes(c *gin.Context) {
c.JSON(200, gin.H{
"code": 0,
"data": map[string]interface{}{
"codes": []string{"AC_100100", "AC_100110", "AC_100120", "AC_100010"},
},
"message": "Success",
})
}