面包店
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

svc_responsible.go 422 B

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.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. }