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

80 rivejä
3.1 KiB

  1. package md
  2. import (
  3. "applet/app/db/model"
  4. )
  5. const (
  6. InitO2OScanOrdModule = "{\"bg_img\":\"http://ossn.izhim.net/%E4%B8%AA%E6%80%A7%E5%8C%96%2F%E4%B8%AD%E9%97%B4%E9%A1%B5%E8%83%8C%E6%99%AF%E5%9B%BE-484448.png\",\"bg_img_url\":\"http://ossn.izhim.net/个性化/中间页背景图-484448.png\",\"logo\":\"\",\"logo_url\":\"\",\"down_btn_bg_color\":\"#FFFFF\",\"down_btn_font_color\":\"#333333\",\"down_btn_font\":\"进入小程序点餐/付款\"}"
  7. )
  8. type Store struct {
  9. P string `json:"p"`
  10. Size string `json:"size"`
  11. Name string `json:"name"`
  12. }
  13. type StoreGroup struct {
  14. model.User `xorm:"extends"`
  15. model.CommunityTeamStore `xorm:"extends"`
  16. }
  17. type StoreSave struct {
  18. Uid string `json:"uid"`
  19. AgentCommission string `json:"agent_commission"`
  20. }
  21. type StoreOrder struct {
  22. P string `json:"p"`
  23. Size string `json:"size"`
  24. Nickname string `json:"nickname"`
  25. Phone string `json:"phone"`
  26. StartTime string `json:"start_time"`
  27. EndTime string `json:"end_time"`
  28. Oid string `json:"oid"`
  29. StoreUid string `json:"store_uid"`
  30. StoreType string `json:"store_type"`
  31. StoreName string `json:"store_name"`
  32. ConfirmStartTime string `json:"confirm_start_time"`
  33. ConfirmEndTime string `json:"confirm_end_time"`
  34. }
  35. type StoreOrderTotal struct {
  36. StoreUid string `json:"store_uid"`
  37. }
  38. type StoreOrderDetail struct {
  39. Oid string `json:"oid"`
  40. }
  41. // Register is 注册 postbody
  42. type Register struct {
  43. Mobile string `json:"mobile"`
  44. Captcha string `json:"captcha"`
  45. Type string `json:"type"`
  46. Zone string `json:"zone"`
  47. PicCode string `json:"pic_code"`
  48. PicCodeId string `json:"pic_code_id"`
  49. }
  50. type CommunityTeamStore struct {
  51. Lat string `json:"lat" xorm:"default 0.000000 comment('纬度') DECIMAL(30,6)"`
  52. Lng string `json:"lng" xorm:"default 0.000000 comment('经度') DECIMAL(30,6)"`
  53. Address string `json:"address" xorm:"comment('详细地址') VARCHAR(255)"`
  54. WorkState string `json:"work_state" xorm:"default 0 comment('0营业中 1休息中') INT(1)"`
  55. Name string `json:"name" xorm:"VARCHAR(255)"`
  56. Province string `json:"province" xorm:"comment('省级的名称') VARCHAR(255)"`
  57. City string `json:"city" xorm:"comment('市级的名称') VARCHAR(255)"`
  58. District string `json:"district" xorm:"comment('县,区名称') VARCHAR(255)"`
  59. Timer string `json:"timer" xorm:"comment('') VARCHAR(255)"`
  60. Phone string `json:"phone" xorm:"comment('') VARCHAR(255)"`
  61. Logo string `json:"logo" xorm:"comment('') VARCHAR(255)"`
  62. ProvinceId string `json:"province_id" xorm:"comment('省级的名称') INT(11)"`
  63. CityId string `json:"city_id" xorm:"comment('市级的名称') INT(11)"`
  64. DistrictId string `json:"district_id" xorm:"comment('县,区名称') INT(11)"`
  65. }
  66. type ModuleByO2oCByScanOrdData struct {
  67. BgImg string `json:"bg_img"`
  68. BgImgUrl string `json:"bg_img_url"`
  69. Logo string `json:"logo"`
  70. LogoUrl string `json:"logo_url"`
  71. DownBtnBgColor string `json:"down_btn_bg_color"`
  72. DownBtnFontColor string `json:"down_btn_font_color"`
  73. DownBtnFont string `json:"down_btn_font"`
  74. }