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

25 rivejä
422 B

  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.GetAllAdmin(db.Db)
  11. if admin != nil {
  12. for _, v := range *admin {
  13. var tmp = map[string]string{
  14. "id": utils.IntToStr(v.AdmId),
  15. "name": v.Memo,
  16. }
  17. list = append(list, tmp)
  18. }
  19. }
  20. e.OutSuc(c, list, nil)
  21. return
  22. }