附近小店
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.
 
 
 

19 line
447 B

  1. package db
  2. import (
  3. "applet/app/db/model"
  4. "applet/app/utils"
  5. "xorm.io/xorm"
  6. )
  7. func GetBankNotice(eg *xorm.Engine, args map[string]string) *[]model.CommunityTeamStoreNotice {
  8. var data []model.CommunityTeamStoreNotice
  9. size := utils.StrToInt(args["size"])
  10. start := (utils.StrToInt(args["p"]) - 1) * size
  11. err := eg.Where("uid=?", args["uid"]).Limit(size, start).OrderBy("id desc").Find(&data)
  12. if err != nil {
  13. return nil
  14. }
  15. return &data
  16. }