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

db_cate.go 313 B

3 달 전
123456789101112131415
  1. package db
  2. import (
  3. "applet/app/db/model"
  4. "xorm.io/xorm"
  5. )
  6. func GetCate(eg *xorm.Engine, storeId string) *[]model.CommunityTeamCate {
  7. var data []model.CommunityTeamCate
  8. err := eg.Where("is_show=1 and uid=?", storeId).OrderBy("sort desc,id desc").Find(&data)
  9. if err != nil {
  10. return nil
  11. }
  12. return &data
  13. }