面包店
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.

пре 8 месеци
пре 7 месеци
пре 8 месеци
пре 7 месеци
пре 8 месеци
123456789101112131415161718192021222324
  1. package svc
  2. import (
  3. "applet/app/db"
  4. "applet/app/e"
  5. "applet/app/utils"
  6. "github.com/gin-gonic/gin"
  7. )
  8. func Responsible(c *gin.Context) {
  9. list := make([]map[string]string, 0)
  10. admin := db.GetStaff(db.Db)
  11. if admin != nil {
  12. for _, v := range *admin {
  13. var tmp = map[string]string{
  14. "id": utils.IntToStr(v.Id),
  15. "name": v.Name,
  16. }
  17. list = append(list, tmp)
  18. }
  19. }
  20. e.OutSuc(c, list, nil)
  21. return
  22. }