tag.go 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package models
  2. import "go.mongodb.org/mongo-driver/bson/primitive"
  3. type Tag struct {
  4. Id primitive.ObjectID `json:"_id" bson:"_id"`
  5. Scustomer string `json:"s_customer" bson:"s_customer"`
  6. Scustomerkey string `json:"s_customerkey" bson:"s_customerkey"`
  7. Scustomername string `json:"s_customername" bson:"s_customername"`
  8. Stagname string `json:"s_name" bson:"s_name"`
  9. Stagnamekey string `json:"s_namekey" bson:"s_namekey"`
  10. Ssalesperson string `json:"s_salesperson" bson:"s_salesperson"`
  11. Istarttime int `json:"i_starttime" bson:"i_starttime"`
  12. Iendtime int `json:"i_endtime" bson:"i_endtime"`
  13. Sarea string `json:"s_area" bson:"s_area"`
  14. Scity string `json:"s_city" bson:"s_city"`
  15. Sdistrict string `json:"s_district" bson:"s_district"`
  16. Sbudget string `json:"s_budgetlimit" bson:"s_budgetlimit"`
  17. Sbidamount string `json:"s_bidamountlimit" bson:"s_bidamountlimit"`
  18. Sglobaladdkey string `json:"s_globaladdkey" bson:"s_globaladdkey"`
  19. Sglobaladdkeymatch string `json:"s_globaladdkeymatch" bson:"s_globaladdkeymatch"`
  20. Sglobalnotkey string `json:"s_globalnotkey" bson:"s_globalnotkey"`
  21. Sglobalnotkeymatch string `json:"s_globalnotkeymatch" bson:"s_globalnotkeymatch"`
  22. Stoptype string `json:"s_toptype" bson:"s_toptype"`
  23. Ssubtype string `json:"s_subtype" bson:"s_subtype"`
  24. Sglobalbuyerclass string `json:"s_globalbuyerclass" bson:"s_globalbuyerclass"`
  25. Sglobalsubscopeclass string `json:"s_globalsubscopeclass" bson:"s_globalsubscopeclass"`
  26. Sglobaltopscopeclass string `json:"s_globaltopscopeclass" bson:"s_globaltopscopeclass"`
  27. Orules []ORules `json:"o_rules" bson:"s_buyerclass"`
  28. Sexistfields string `json:"s_existfields" bson:"s_existfields"`
  29. Imaxnum int `json:"i_maxnum" bson:"i_maxnum"`
  30. Iextfieldstype int `json:"i_extfieldstype" bson:"i_extfieldstype"`
  31. Sesquery string `json:"s_esquery" bson:"s_esquery"`
  32. Iesquerytype int `json:"i_esquerytype" bson:"i_esquerytype"`
  33. Sdataid string `json:"s_dataid" bson:"s_dataid"`
  34. Icreatetime int `json:"i_createtime" bson:"i_createtime"`
  35. Iupdatetime int `json:"i_updatetime" bson:"i_updatetime"`
  36. Screateuser string `json:"s_createuser" bson:"s_createuser"`
  37. Supdateuser string `json:"s_updateuser" bson:"s_updateuser"`
  38. SbudgetFieldExist int `json:"i_budgetfieldexist" bson:"i_budgetfieldexist"`
  39. SbidamountFieldExist int `json:"i_bidamountfieldexist" bson:"i_bidamountfieldexist"`
  40. Site string `json:"s_sites" bson:"s_sites"`
  41. ExpurasingtimeStart int `json:"i_expurasingtimeStart" bson:"i_expurasingtimeStart"`
  42. ExpurasingtimeEnd int `json:"i_expurasingtimeEnd" bson:"i_expurasingtimeEnd"`
  43. }
  44. type ORules struct {
  45. Smatchkey string `json:"s_matchkey" bson:"s_matchkey"`
  46. Skeymatch string `json:"s_keymatch" bson:"s_keymatch"`
  47. Saddkey string `json:"s_addkey" bson:"s_addkey"`
  48. Saddkeymatch string `json:"s_addkeymatch" bson:"s_addkeymatch"`
  49. Snotkey string `json:"s_notkey" bson:"s_notkey"`
  50. Snotkeymatch string `json:"s_notkeymatch" bson:"s_notkeymatch"`
  51. Stopscopeclass string `json:"s_topscopeclass" bson:"s_topscopeclass"`
  52. Ssubscopeclass string `json:"s_subscopeclass" bson:"s_subscopeclass"`
  53. Sbuyerclass string `json:"s_buyerclass" bson:"s_buyerclass"`
  54. }