You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
483 B
24 lines
483 B
|
4 years ago
|
package shiyan
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
|
||
|
|
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
||
|
|
"github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
|
||
|
|
"github.com/flipped-aurora/gin-vue-admin/server/model/testpage"
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
type ShiyanApi struct {
|
||
|
|
}
|
||
|
|
|
||
|
|
func (a *ShiyanApi) AddBaseMenu(c *gin.Context) {
|
||
|
|
var answerMap testpage.Answer
|
||
|
|
err := global.GVA_DB_Master.First(&answerMap)
|
||
|
|
if err != nil {
|
||
|
|
|
||
|
|
}
|
||
|
|
fmt.Printf("%v\n", answerMap)
|
||
|
|
response.Ok(c)
|
||
|
|
}
|