|
123456789101112131415161718192021222324 |
- package svc
-
- import (
- "applet/app/db"
- "applet/app/e"
- "applet/app/utils"
- "github.com/gin-gonic/gin"
- )
-
- func Responsible(c *gin.Context) {
- list := make([]map[string]string, 0)
- admin := db.GetStaff(db.Db)
- if admin != nil {
- for _, v := range *admin {
- var tmp = map[string]string{
- "id": utils.IntToStr(v.Id),
- "name": v.Name,
- }
- list = append(list, tmp)
- }
- }
- e.OutSuc(c, list, nil)
- return
- }
|