wangfei 6 anos atrás
pai
commit
297ad71bda
75 arquivos alterados com 1056 adições e 1 exclusões
  1. 1
    1
      conf/db.conf
  2. 15
    0
      models/model/sys_activity.go
  3. 9
    0
      models/model/sys_activity_action.go
  4. 19
    0
      models/model/sys_case.go
  5. 17
    0
      models/model/sys_case_area.go
  6. 16
    0
      models/model/sys_case_equipment.go
  7. 18
    0
      models/model/sys_case_table.go
  8. 18
    0
      models/model/sys_case_user.go
  9. 14
    0
      models/model/sys_log.go
  10. 19
    0
      models/model/sys_menu.go
  11. 12
    0
      models/model/sys_org.go
  12. 15
    0
      models/model/sys_role.go
  13. 6
    0
      models/model/sys_role_menu.go
  14. 13
    0
      models/model/sys_tag.go
  15. 6
    0
      models/model/sys_tag_case.go
  16. 20
    0
      models/model/sys_user.go
  17. 14
    0
      models/model/sys_user_case.go
  18. 6
    0
      models/model/sys_user_menu.go
  19. 6
    0
      models/model/sys_user_role.go
  20. 6
    0
      models/model/sys_user_tag.go
  21. 6
    0
      models/model/sys_user_type.go
  22. 6
    0
      models/model/sys_user_type_func.go
  23. 13
    0
      models/model/sys_wechat_conf.go
  24. 29
    0
      models/model/ta_account_change.go
  25. 10
    0
      models/model/ta_card_image.go
  26. 11
    0
      models/model/ta_card_share.go
  27. 8
    0
      models/model/ta_channel.go
  28. 18
    0
      models/model/ta_cms_case.go
  29. 7
    0
      models/model/ta_cms_case_course.go
  30. 11
    0
      models/model/ta_cms_case_image.go
  31. 20
    0
      models/model/ta_cms_images.go
  32. 18
    0
      models/model/ta_cms_info.go
  33. 8
    0
      models/model/ta_cms_location.go
  34. 20
    0
      models/model/ta_cms_news.go
  35. 27
    0
      models/model/ta_coupon.go
  36. 28
    0
      models/model/ta_coupon_card2.go
  37. 7
    0
      models/model/ta_coupon_card_target.go
  38. 7
    0
      models/model/ta_coupon_card_target2.go
  39. 8
    0
      models/model/ta_coupon_image.go
  40. 10
    0
      models/model/ta_coupon_rule.go
  41. 10
    0
      models/model/ta_coupon_share.go
  42. 27
    0
      models/model/ta_course.go
  43. 18
    0
      models/model/ta_course_detail.go
  44. 8
    0
      models/model/ta_course_img.go
  45. 29
    0
      models/model/ta_course_orders.go
  46. 15
    0
      models/model/ta_course_orders_coupon.go
  47. 6
    0
      models/model/ta_course_tag.go
  48. 15
    0
      models/model/ta_course_verifcation.go
  49. 20
    0
      models/model/ta_customer.go
  50. 18
    0
      models/model/ta_customer_account.go
  51. 19
    0
      models/model/ta_customer_card.go
  52. 19
    0
      models/model/ta_customer_coupon.go
  53. 23
    0
      models/model/ta_customer_course.go
  54. 20
    0
      models/model/ta_customer_gym.go
  55. 13
    0
      models/model/ta_experience_card_verification.go
  56. 16
    0
      models/model/ta_goods.go
  57. 8
    0
      models/model/ta_goods_img.go
  58. 29
    0
      models/model/ta_goods_orders.go
  59. 19
    0
      models/model/ta_goods_orders_coupon.go
  60. 12
    0
      models/model/ta_goods_orders_detail.go
  61. 7
    0
      models/model/ta_goods_spec.go
  62. 28
    0
      models/model/ta_gym_card.go
  63. 13
    0
      models/model/ta_gym_card_usage.go
  64. 14
    0
      models/model/ta_stop_user.go
  65. 13
    0
      models/model/ta_user_mapping.go
  66. 16
    0
      models/model/ta_vip_card.go
  67. 16
    0
      models/model/ta_vip_card_child.go
  68. 8
    0
      models/model/td_card_type.go
  69. 9
    0
      models/model/td_cms_image_location.go
  70. 7
    0
      models/model/td_coupon_card_type.go
  71. 14
    0
      models/model/td_course_tag.go
  72. 15
    0
      models/model/td_goods_type.go
  73. 7
    0
      models/model/td_gym_type.go
  74. 9
    0
      models/model/td_spec.go
  75. 14
    0
      models/model/td_user_type.go

+ 1
- 1
conf/db.conf Ver arquivo

@@ -17,7 +17,7 @@ username     = h5-template
17 17
 password     = h5-template
18 18
 
19 19
 ; 数据库名或者schema
20
-database     = space-of-cheng
20
+database     = spaceofcheng
21 21
 
22 22
 ; 前缀,目前尚未使用
23 23
 dbprefix     = 

+ 15
- 0
models/model/sys_activity.go Ver arquivo

@@ -0,0 +1,15 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysActivity struct {
8
+	ActivityId   string    `xorm:"not null pk VARCHAR(64)"`
9
+	ActivityName string    `xorm:"VARCHAR(50)"`
10
+	ActivityType string    `xorm:"VARCHAR(64)"`
11
+	OrgId        string    `xorm:"VARCHAR(64)"`
12
+	CaseId       string    `xorm:"VARCHAR(64)"`
13
+	Status       int       `xorm:"SMALLINT(6)"`
14
+	CreateDate   time.Time `xorm:"DATETIME"`
15
+}

+ 9
- 0
models/model/sys_activity_action.go Ver arquivo

@@ -0,0 +1,9 @@
1
+package models
2
+
3
+type SysActivityAction struct {
4
+	ActionId     string `xorm:"not null pk VARCHAR(64)"`
5
+	ActivityId   string `xorm:"not null VARCHAR(64)"`
6
+	ActiveType   string `xorm:"comment('赠送还是取消赠送之类的') VARCHAR(5)"`
7
+	ResourceType string `xorm:"VARCHAR(20)"`
8
+	ResourceDesc string `xorm:"VARCHAR(500)"`
9
+}

+ 19
- 0
models/model/sys_case.go Ver arquivo

@@ -0,0 +1,19 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysCase struct {
8
+	OrgId       string    `xorm:"not null VARCHAR(64)"`
9
+	CaseId      string    `xorm:"not null pk VARCHAR(64)"`
10
+	CaseName    string    `xorm:"VARCHAR(50)"`
11
+	CaseDesc    string    `xorm:"TEXT"`
12
+	CaseIcon    string    `xorm:"TEXT"`
13
+	CaseAddress string    `xorm:"VARCHAR(500)"`
14
+	CaseTel     string    `xorm:"VARCHAR(50)"`
15
+	Coordinate  string    `xorm:"VARCHAR(200)"`
16
+	Status      int       `xorm:"SMALLINT(6)"`
17
+	CreateDate  time.Time `xorm:"DATETIME"`
18
+	CreateUser  string    `xorm:"VARCHAR(64)"`
19
+}

+ 17
- 0
models/model/sys_case_area.go Ver arquivo

@@ -0,0 +1,17 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysCaseArea struct {
8
+	AreaId        string    `xorm:"not null pk VARCHAR(64)"`
9
+	CaseId        string    `xorm:"VARCHAR(64)"`
10
+	OrgId         string    `xorm:"VARCHAR(64)"`
11
+	AreaName      string    `xorm:"VARCHAR(100)"`
12
+	AreaIcon      string    `xorm:"TEXT"`
13
+	AreaIconWhite string    `xorm:"TEXT"`
14
+	Status        int       `xorm:"SMALLINT(6)"`
15
+	CreateDate    time.Time `xorm:"DATETIME"`
16
+	CreateUser    string    `xorm:"VARCHAR(64)"`
17
+}

+ 16
- 0
models/model/sys_case_equipment.go Ver arquivo

@@ -0,0 +1,16 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysCaseEquipment struct {
8
+	EquipmentId   string    `xorm:"not null pk VARCHAR(64)"`
9
+	CaseId        string    `xorm:"VARCHAR(64)"`
10
+	OrgId         string    `xorm:"VARCHAR(64)"`
11
+	Name          string    `xorm:"VARCHAR(100)"`
12
+	EquipmentCode string    `xorm:"VARCHAR(100)"`
13
+	Status        int       `xorm:"SMALLINT(6)"`
14
+	CreateDate    time.Time `xorm:"DATETIME"`
15
+	CreateUser    string    `xorm:"VARCHAR(64)"`
16
+}

+ 18
- 0
models/model/sys_case_table.go Ver arquivo

@@ -0,0 +1,18 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysCaseTable struct {
8
+	TableId    string    `xorm:"not null pk VARCHAR(64)"`
9
+	AreaId     string    `xorm:"VARCHAR(64)"`
10
+	CaseId     string    `xorm:"VARCHAR(64)"`
11
+	OrgId      string    `xorm:"VARCHAR(64)"`
12
+	TableNo    string    `xorm:"VARCHAR(50)"`
13
+	Order      int       `xorm:"INT(11)"`
14
+	Status     int       `xorm:"SMALLINT(6)"`
15
+	CreateDate time.Time `xorm:"DATETIME"`
16
+	CreateUser string    `xorm:"VARCHAR(64)"`
17
+	Remark     string    `xorm:"TEXT"`
18
+}

+ 18
- 0
models/model/sys_case_user.go Ver arquivo

@@ -0,0 +1,18 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysCaseUser struct {
8
+	CaseUserId string `xorm:"not null pk VARCHAR(64)"`
9
+	OrgId      string `xorm:"VARCHAR(64)"`
10
+	CaseId     string `xorm:"VARCHAR(64)"`
11
+	UserName   string `xorm:"VARCHAR(50)"`
12
+	Tel        string `xorm:"VARCHAR(50)"`
13
+	UserType   string `xorm:"comment('案场管理员
14
+            咖啡师
15
+            消息收发员') VARCHAR(20)"`
16
+	Status     int       `xorm:"SMALLINT(6)"`
17
+	CreateDate time.Time `xorm:"DATETIME"`
18
+}

+ 14
- 0
models/model/sys_log.go Ver arquivo

@@ -0,0 +1,14 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysLog struct {
8
+	LogId      string    `xorm:"not null pk VARCHAR(64)"`
9
+	Action     string    `xorm:"TEXT"`
10
+	Url        string    `xorm:"TEXT"`
11
+	Param      string    `xorm:"TEXT"`
12
+	Remark     string    `xorm:"TEXT"`
13
+	ActionDate time.Time `xorm:"DATETIME"`
14
+}

+ 19
- 0
models/model/sys_menu.go Ver arquivo

@@ -0,0 +1,19 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysMenu struct {
8
+	MenuId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	MenuName   string    `xorm:"VARCHAR(200)"`
10
+	Icon       string    `xorm:"TEXT"`
11
+	FatherId   string    `xorm:"VARCHAR(64)"`
12
+	Url        string    `xorm:"VARCHAR(200)"`
13
+	OrderNo    int       `xorm:"INT(11)"`
14
+	Remark     string    `xorm:"TEXT"`
15
+	IsShow     int       `xorm:"TINYINT(1)"`
16
+	Status     int       `xorm:"SMALLINT(6)"`
17
+	CreateDate time.Time `xorm:"DATETIME"`
18
+	OrgId      string    `xorm:"VARCHAR(64)"`
19
+}

+ 12
- 0
models/model/sys_org.go Ver arquivo

@@ -0,0 +1,12 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysOrg struct {
8
+	OrgId      string    `xorm:"not null pk VARCHAR(64)"`
9
+	OrgName    string    `xorm:"VARCHAR(100)"`
10
+	CreateDate time.Time `xorm:"DATETIME"`
11
+	Status     int       `xorm:"SMALLINT(6)"`
12
+}

+ 15
- 0
models/model/sys_role.go Ver arquivo

@@ -0,0 +1,15 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysRole struct {
8
+	RoleId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	RoleName   string    `xorm:"not null VARCHAR(100)"`
10
+	CaseId     string    `xorm:"not null VARCHAR(64)"`
11
+	OrgId      string    `xorm:"not null VARCHAR(64)"`
12
+	Remark     string    `xorm:"TEXT"`
13
+	Status     int       `xorm:"SMALLINT(6)"`
14
+	CreateDate time.Time `xorm:"DATETIME"`
15
+}

+ 6
- 0
models/model/sys_role_menu.go Ver arquivo

@@ -0,0 +1,6 @@
1
+package models
2
+
3
+type SysRoleMenu struct {
4
+	RoleId string `xorm:"not null pk VARCHAR(64)"`
5
+	MenuId string `xorm:"not null pk VARCHAR(64)"`
6
+}

+ 13
- 0
models/model/sys_tag.go Ver arquivo

@@ -0,0 +1,13 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysTag struct {
8
+	TagId      string    `xorm:"not null pk VARCHAR(64)"`
9
+	TagName    string    `xorm:"not null VARCHAR(50)"`
10
+	OrgId      string    `xorm:"VARCHAR(64)"`
11
+	Status     int       `xorm:"SMALLINT(6)"`
12
+	CreateDate time.Time `xorm:"DATETIME"`
13
+}

+ 6
- 0
models/model/sys_tag_case.go Ver arquivo

@@ -0,0 +1,6 @@
1
+package models
2
+
3
+type SysTagCase struct {
4
+	TagId  string `xorm:"not null pk VARCHAR(64)"`
5
+	CaseId string `xorm:"VARCHAR(64)"`
6
+}

+ 20
- 0
models/model/sys_user.go Ver arquivo

@@ -0,0 +1,20 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysUser struct {
8
+	UserId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	UserName   string    `xorm:"not null VARCHAR(50)"`
10
+	RealName   string    `xorm:"VARCHAR(50)"`
11
+	Pwd        string    `xorm:"VARCHAR(500)"`
12
+	OrgId      string    `xorm:"VARCHAR(64)"`
13
+	Sex        int       `xorm:"SMALLINT(6)"`
14
+	WorkNo     string    `xorm:"VARCHAR(100)"`
15
+	Email      string    `xorm:"VARCHAR(100)"`
16
+	Phone      string    `xorm:"VARCHAR(100)"`
17
+	Status     int       `xorm:"SMALLINT(6)"`
18
+	CreateDate time.Time `xorm:"DATETIME"`
19
+	Headimgurl string    `xorm:"TEXT"`
20
+}

+ 14
- 0
models/model/sys_user_case.go Ver arquivo

@@ -0,0 +1,14 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysUserCase struct {
8
+	UserId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	CaseId     string    `xorm:"VARCHAR(64)"`
10
+	CaseName   string    `xorm:"VARCHAR(100)"`
11
+	IsBelong   int       `xorm:"TINYINT(1)"`
12
+	Status     int       `xorm:"SMALLINT(6)"`
13
+	CreateDate time.Time `xorm:"DATETIME"`
14
+}

+ 6
- 0
models/model/sys_user_menu.go Ver arquivo

@@ -0,0 +1,6 @@
1
+package models
2
+
3
+type SysUserMenu struct {
4
+	MenuId string `xorm:"not null pk VARCHAR(64)"`
5
+	UserId string `xorm:"not null pk VARCHAR(64)"`
6
+}

+ 6
- 0
models/model/sys_user_role.go Ver arquivo

@@ -0,0 +1,6 @@
1
+package models
2
+
3
+type SysUserRole struct {
4
+	UserId string `xorm:"not null pk VARCHAR(64)"`
5
+	RoleId string `xorm:"not null pk VARCHAR(64)"`
6
+}

+ 6
- 0
models/model/sys_user_tag.go Ver arquivo

@@ -0,0 +1,6 @@
1
+package models
2
+
3
+type SysUserTag struct {
4
+	TagId  string `xorm:"not null pk VARCHAR(64)"`
5
+	UserId string `xorm:"not null pk VARCHAR(64)"`
6
+}

+ 6
- 0
models/model/sys_user_type.go Ver arquivo

@@ -0,0 +1,6 @@
1
+package models
2
+
3
+type SysUserType struct {
4
+	TypeId string `xorm:"not null pk VARCHAR(64)"`
5
+	UserId string `xorm:"not null pk VARCHAR(64)"`
6
+}

+ 6
- 0
models/model/sys_user_type_func.go Ver arquivo

@@ -0,0 +1,6 @@
1
+package models
2
+
3
+type SysUserTypeFunc struct {
4
+	FuncId string `xorm:"not null pk VARCHAR(64)"`
5
+	TypeId string `xorm:"VARCHAR(64)"`
6
+}

+ 13
- 0
models/model/sys_wechat_conf.go Ver arquivo

@@ -0,0 +1,13 @@
1
+package models
2
+
3
+type SysWechatConf struct {
4
+	ConfId string `xorm:"VARCHAR(64)"`
5
+	OrgId  string `xorm:"VARCHAR(64)"`
6
+	Type   int    `xorm:"comment('wechat 微信公众号
7
+            mini 小程序') SMALLINT(6)"`
8
+	Appid  string `xorm:"VARCHAR(50)"`
9
+	Secret string `xorm:"VARCHAR(50)"`
10
+	Token  string `xorm:"VARCHAR(50)"`
11
+	Aeskey string `xorm:"VARCHAR(100)"`
12
+	Wxid   string `xorm:"VARCHAR(50)"`
13
+}

+ 29
- 0
models/model/ta_account_change.go Ver arquivo

@@ -0,0 +1,29 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaAccountChange struct {
8
+	DetailId   string `xorm:"not null pk VARCHAR(64)"`
9
+	AccountId  string `xorm:"VARCHAR(64)"`
10
+	UserId     string `xorm:"VARCHAR(64)"`
11
+	UserName   string `xorm:"VARCHAR(50)"`
12
+	OrgId      string `xorm:"VARCHAR(64)"`
13
+	CaseId     string `xorm:"VARCHAR(64)"`
14
+	ChangeType string `xorm:"comment('integral 积分
15
+            amount 城币') VARCHAR(20)"`
16
+	ChangeSource string `xorm:"comment('vip vip卡充值
17
+            orders 订单消费
18
+            register 注册
19
+            perfect 完善资料
20
+            recommend 推荐') VARCHAR(20)"`
21
+	SourceId   string  `xorm:"VARCHAR(64)"`
22
+	SourceName string  `xorm:"VARCHAR(255)"`
23
+	Amount     float32 `xorm:"FLOAT(8,2)"`
24
+	FloatType  string  `xorm:"comment('+
25
+            -') VARCHAR(5)"`
26
+	CreateDate time.Time `xorm:"DATETIME"`
27
+	CreateUser string    `xorm:"VARCHAR(64)"`
28
+	Status     int       `xorm:"SMALLINT(6)"`
29
+}

+ 10
- 0
models/model/ta_card_image.go Ver arquivo

@@ -0,0 +1,10 @@
1
+package models
2
+
3
+type TaCardImage struct {
4
+	CardImageId  string `xorm:"not null pk VARCHAR(64)"`
5
+	GymCardId    string `xorm:"VARCHAR(64)"`
6
+	CardId       string `xorm:"VARCHAR(64)"`
7
+	CardImageUrl string `xorm:"TEXT"`
8
+	Status       int    `xorm:"SMALLINT(6)"`
9
+	Sort         int    `xorm:"INT(11)"`
10
+}

+ 11
- 0
models/model/ta_card_share.go Ver arquivo

@@ -0,0 +1,11 @@
1
+package models
2
+
3
+type TaCardShare struct {
4
+	CardShareId        string `xorm:"not null pk VARCHAR(64)"`
5
+	GymCardId          string `xorm:"VARCHAR(64)"`
6
+	CardId             string `xorm:"VARCHAR(64)"`
7
+	CardShareInfo      string `xorm:"TEXT"`
8
+	CardUseRule        string `xorm:"TEXT"`
9
+	CardUseInstruction string `xorm:"TEXT"`
10
+	Status             int    `xorm:"SMALLINT(6)"`
11
+}

+ 8
- 0
models/model/ta_channel.go Ver arquivo

@@ -0,0 +1,8 @@
1
+package models
2
+
3
+type TaChannel struct {
4
+	ChannelId   string `xorm:"not null pk VARCHAR(64)"`
5
+	ChannelName string `xorm:"VARCHAR(64)"`
6
+	CaseId      string `xorm:"VARCHAR(64)"`
7
+	OrgId       string `xorm:"VARCHAR(64)"`
8
+}

+ 18
- 0
models/model/ta_cms_case.go Ver arquivo

@@ -0,0 +1,18 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCmsCase struct {
8
+	CmsCaseId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	CaseId        string    `xorm:"VARCHAR(64)"`
10
+	Title         string    `xorm:"VARCHAR(128)"`
11
+	DetailContent string    `xorm:"TEXT"`
12
+	IsAllCourse   int       `xorm:"comment('是否显示全部课程 0否1是') SMALLINT(6)"`
13
+	Status        int       `xorm:"SMALLINT(6)"`
14
+	CreateUser    string    `xorm:"VARCHAR(64)"`
15
+	Sort          int       `xorm:"INT(11)"`
16
+	CreateDate    time.Time `xorm:"DATETIME"`
17
+	OrgId         string    `xorm:"VARCHAR(64)"`
18
+}

+ 7
- 0
models/model/ta_cms_case_course.go Ver arquivo

@@ -0,0 +1,7 @@
1
+package models
2
+
3
+type TaCmsCaseCourse struct {
4
+	CaseCourseId string `xorm:"not null pk VARCHAR(64)"`
5
+	CmsCaseId    string `xorm:"VARCHAR(64)"`
6
+	CourseId     string `xorm:"VARCHAR(64)"`
7
+}

+ 11
- 0
models/model/ta_cms_case_image.go Ver arquivo

@@ -0,0 +1,11 @@
1
+package models
2
+
3
+type TaCmsCaseImage struct {
4
+	CmsCaseImageId string `xorm:"not null pk VARCHAR(64)"`
5
+	CmsCaseId      string `xorm:"VARCHAR(64)"`
6
+	CaseImageUrl   string `xorm:"TEXT"`
7
+	Status         int    `xorm:"SMALLINT(6)"`
8
+	ImageType      string `xorm:"comment('cover:封面
9
+            detail:详情') VARCHAR(32)"`
10
+	Sort int `xorm:"INT(11)"`
11
+}

+ 20
- 0
models/model/ta_cms_images.go Ver arquivo

@@ -0,0 +1,20 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCmsImages struct {
8
+	ImageId          string    `xorm:"not null pk VARCHAR(64)"`
9
+	LocationId       string    `xorm:"VARCHAR(64)"`
10
+	ImageUrl         string    `xorm:"VARCHAR(128)"`
11
+	ForwardType      string    `xorm:"comment('url:转跳链接,course:转跳课程') CHAR(32)"`
12
+	FowardUrl        string    `xorm:"VARCHAR(255)"`
13
+	FowardResourceId string    `xorm:"VARCHAR(64)"`
14
+	Status           int       `xorm:"comment('是否发布 0是1否') SMALLINT(6)"`
15
+	Sort             int       `xorm:"INT(11)"`
16
+	CaseId           string    `xorm:"VARCHAR(64)"`
17
+	OrgId            string    `xorm:"VARCHAR(64)"`
18
+	CreateUser       string    `xorm:"VARCHAR(64)"`
19
+	CreateTime       time.Time `xorm:"DATETIME"`
20
+}

+ 18
- 0
models/model/ta_cms_info.go Ver arquivo

@@ -0,0 +1,18 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCmsInfo struct {
8
+	InfoId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	LocationId string    `xorm:"VARCHAR(64)"`
10
+	InfoName   string    `xorm:"VARCHAR(32)"`
11
+	InfoUrl    string    `xorm:"VARCHAR(255)"`
12
+	CreateDate time.Time `xorm:"DATETIME"`
13
+	CreateUser string    `xorm:"VARCHAR(64)"`
14
+	CaseId     string    `xorm:"VARCHAR(64)"`
15
+	OrgId      string    `xorm:"VARCHAR(64)"`
16
+	Status     int       `xorm:"SMALLINT(6)"`
17
+	Type       string    `xorm:"VARCHAR(64)"`
18
+}

+ 8
- 0
models/model/ta_cms_location.go Ver arquivo

@@ -0,0 +1,8 @@
1
+package models
2
+
3
+type TaCmsLocation struct {
4
+	Cms位置映射id  string `xorm:"not null pk VARCHAR(64)"`
5
+	LocationId string `xorm:"VARCHAR(64)"`
6
+	NewsId     string `xorm:"VARCHAR(64)"`
7
+	Status     int    `xorm:"SMALLINT(6)"`
8
+}

+ 20
- 0
models/model/ta_cms_news.go Ver arquivo

@@ -0,0 +1,20 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCmsNews struct {
8
+	NewsId          string    `xorm:"not null pk VARCHAR(64)"`
9
+	ImageUrl        string    `xorm:"VARCHAR(128)"`
10
+	ForwardType     string    `xorm:"VARCHAR(32)"`
11
+	ForwardUrl      string    `xorm:"VARCHAR(255)"`
12
+	ForwardCourseId string    `xorm:"VARCHAR(64)"`
13
+	Status          int       `xorm:"comment('是否发布,0否1是') SMALLINT(6)"`
14
+	Title           string    `xorm:"VARCHAR(128)"`
15
+	CaseId          string    `xorm:"VARCHAR(64)"`
16
+	OrgId           string    `xorm:"VARCHAR(64)"`
17
+	CreateUser      string    `xorm:"VARCHAR(64)"`
18
+	CreateDate      time.Time `xorm:"DATETIME"`
19
+	PublicDate      time.Time `xorm:"DATETIME"`
20
+}

+ 27
- 0
models/model/ta_coupon.go Ver arquivo

@@ -0,0 +1,27 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCoupon struct {
8
+	CouponId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	CouponTypeId string    `xorm:"VARCHAR(64)"`
10
+	SendType     int       `xorm:"comment('0案场 1渠道') SMALLINT(6)"`
11
+	VideoUrl     string    `xorm:"TEXT"`
12
+	CoverUrl     string    `xorm:"TEXT"`
13
+	Price        string    `xorm:"DECIMAL(64)"`
14
+	IsAll        int       `xorm:"TINYINT(1)"`
15
+	StartDate    time.Time `xorm:"DATETIME"`
16
+	EndDate      time.Time `xorm:"DATETIME"`
17
+	ValidDays    int       `xorm:"INT(11)"`
18
+	TotalCount   int       `xorm:"INT(11)"`
19
+	SentCount    int       `xorm:"INT(11)"`
20
+	UsedCount    int       `xorm:"INT(11)"`
21
+	Status       int       `xorm:"comment('0未发布 1发布 2过期') SMALLINT(6)"`
22
+	CaseId       string    `xorm:"VARCHAR(64)"`
23
+	OrgId        string    `xorm:"VARCHAR(64)"`
24
+	CreateDate   time.Time `xorm:"DATETIME"`
25
+	CreateUser   string    `xorm:"VARCHAR(64)"`
26
+	IsOver       int       `xorm:"TINYINT(1)"`
27
+}

+ 28
- 0
models/model/ta_coupon_card2.go Ver arquivo

@@ -0,0 +1,28 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCouponCard2 struct {
8
+	CardId           string    `xorm:"not null pk VARCHAR(64)"`
9
+	CardTypeId       string    `xorm:"VARCHAR(64)"`
10
+	SendType         int       `xorm:"comment('0案场 1渠道') SMALLINT(6)"`
11
+	VideoUrl         string    `xorm:"TEXT"`
12
+	CoverUrl         string    `xorm:"TEXT"`
13
+	Price            float32   `xorm:"FLOAT(64)"`
14
+	StartDate        time.Time `xorm:"DATETIME"`
15
+	EndDate          time.Time `xorm:"DATETIME"`
16
+	ShareDescription string    `xorm:"VARCHAR(255)"`
17
+	RuleDescription  string    `xorm:"VARCHAR(400)"`
18
+	UseDescription   string    `xorm:"TEXT"`
19
+	TotalCount       int       `xorm:"INT(11)"`
20
+	SentCount        int       `xorm:"INT(11)"`
21
+	UsedCount        int       `xorm:"INT(11)"`
22
+	Status           int       `xorm:"comment('0未发布 1发布 2过期') SMALLINT(6)"`
23
+	CaseId           string    `xorm:"VARCHAR(64)"`
24
+	OrgId            string    `xorm:"VARCHAR(64)"`
25
+	CreateDate       time.Time `xorm:"DATETIME"`
26
+	CreateUser       string    `xorm:"VARCHAR(64)"`
27
+	IsOver           int       `xorm:"TINYINT(1)"`
28
+}

+ 7
- 0
models/model/ta_coupon_card_target.go Ver arquivo

@@ -0,0 +1,7 @@
1
+package models
2
+
3
+type TaCouponCardTarget struct {
4
+	TargetId   string `xorm:"not null pk VARCHAR(64)"`
5
+	CouponId   string `xorm:"VARCHAR(64)"`
6
+	TargetName string `xorm:"VARCHAR(255)"`
7
+}

+ 7
- 0
models/model/ta_coupon_card_target2.go Ver arquivo

@@ -0,0 +1,7 @@
1
+package models
2
+
3
+type TaCouponCardTarget2 struct {
4
+	TargetId   string `xorm:"not null pk VARCHAR(64)"`
5
+	CardId     string `xorm:"VARCHAR(64)"`
6
+	TargetName string `xorm:"VARCHAR(255)"`
7
+}

+ 8
- 0
models/model/ta_coupon_image.go Ver arquivo

@@ -0,0 +1,8 @@
1
+package models
2
+
3
+type TaCouponImage struct {
4
+	CouponImageId  string `xorm:"not null pk VARCHAR(64)"`
5
+	CouponId       string `xorm:"VARCHAR(64)"`
6
+	CouponImageUrl string `xorm:"TEXT"`
7
+	Status         int    `xorm:"SMALLINT(6)"`
8
+}

+ 10
- 0
models/model/ta_coupon_rule.go Ver arquivo

@@ -0,0 +1,10 @@
1
+package models
2
+
3
+type TaCouponRule struct {
4
+	CouponRuleId string `xorm:"not null pk VARCHAR(64)"`
5
+	CouponId     string `xorm:"VARCHAR(64)"`
6
+	CouponType   string `xorm:"VARCHAR(32)"`
7
+	Rule         string `xorm:"VARCHAR(32)"`
8
+	Offer        int    `xorm:"INT(11)"`
9
+	Status       int    `xorm:"SMALLINT(6)"`
10
+}

+ 10
- 0
models/model/ta_coupon_share.go Ver arquivo

@@ -0,0 +1,10 @@
1
+package models
2
+
3
+type TaCouponShare struct {
4
+	CouponShareId   string `xorm:"not null pk VARCHAR(64)"`
5
+	CouponId        string `xorm:"VARCHAR(64)"`
6
+	CouponShareInfo string `xorm:"TEXT"`
7
+	UseRule         string `xorm:"TEXT"`
8
+	UseInstruction  string `xorm:"TEXT"`
9
+	Status          int    `xorm:"SMALLINT(6)"`
10
+}

+ 27
- 0
models/model/ta_course.go Ver arquivo

@@ -0,0 +1,27 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCourse struct {
8
+	CourseId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	CourseName   string    `xorm:"VARCHAR(50)"`
10
+	Price        float32   `xorm:"FLOAT(8,2)"`
11
+	OrgId        string    `xorm:"VARCHAR(64)"`
12
+	CaseId       string    `xorm:"VARCHAR(64)"`
13
+	LocationName string    `xorm:"VARCHAR(50)"`
14
+	CourseNum    int       `xorm:"INT(11)"`
15
+	ScheduleNum  int       `xorm:"INT(11)"`
16
+	MaxNum       int       `xorm:"INT(11)"`
17
+	MinNum       int       `xorm:"INT(11)"`
18
+	BeginDate    time.Time `xorm:"DATETIME"`
19
+	EndDate      time.Time `xorm:"DATETIME"`
20
+	CourseImg    string    `xorm:"TEXT"`
21
+	CourseDesc   string    `xorm:"VARCHAR(500)"`
22
+	Remark       string    `xorm:"TEXT"`
23
+	IsSelect     int       `xorm:"TINYINT(1)"`
24
+	Status       int       `xorm:"SMALLINT(6)"`
25
+	CreateDate   time.Time `xorm:"DATETIME"`
26
+	CreateUser   string    `xorm:"VARCHAR(64)"`
27
+}

+ 18
- 0
models/model/ta_course_detail.go Ver arquivo

@@ -0,0 +1,18 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCourseDetail struct {
8
+	DetailId   string    `xorm:"not null pk VARCHAR(64)"`
9
+	CourseId   string    `xorm:"VARCHAR(64)"`
10
+	DetailName string    `xorm:"VARCHAR(50)"`
11
+	DetailDesc string    `xorm:"VARCHAR(200)"`
12
+	OrgId      string    `xorm:"VARCHAR(64)"`
13
+	CaseId     string    `xorm:"VARCHAR(64)"`
14
+	BeginDate  time.Time `xorm:"DATETIME"`
15
+	EndDate    time.Time `xorm:"DATETIME"`
16
+	Status     int       `xorm:"SMALLINT(6)"`
17
+	CreateDate time.Time `xorm:"DATETIME"`
18
+}

+ 8
- 0
models/model/ta_course_img.go Ver arquivo

@@ -0,0 +1,8 @@
1
+package models
2
+
3
+type TaCourseImg struct {
4
+	ImgId    string `xorm:"not null pk VARCHAR(64)"`
5
+	CourseId string `xorm:"not null VARCHAR(64)"`
6
+	ImgUrl   string `xorm:"TEXT"`
7
+	Sort     int    `xorm:"INT(11)"`
8
+}

+ 29
- 0
models/model/ta_course_orders.go Ver arquivo

@@ -0,0 +1,29 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCourseOrders struct {
8
+	OrdersId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	OrdersNo     string    `xorm:"not null VARCHAR(32)"`
10
+	CustomerId   string    `xorm:"VARCHAR(64)"`
11
+	OrgId        string    `xorm:"VARCHAR(64)"`
12
+	CaseId       string    `xorm:"VARCHAR(64)"`
13
+	CourseId     string    `xorm:"VARCHAR(64)"`
14
+	CourseName   string    `xorm:"VARCHAR(50)"`
15
+	LocationId   string    `xorm:"VARCHAR(64)"`
16
+	LocationName string    `xorm:"VARCHAR(50)"`
17
+	Price        string    `xorm:"DECIMAL(8,2)"`
18
+	CourseNum    int       `xorm:"INT(11)"`
19
+	JoinNum      int       `xorm:"INT(11)"`
20
+	CreateDate   time.Time `xorm:"DATETIME"`
21
+	Status       int       `xorm:"SMALLINT(6)"`
22
+	PayType      int       `xorm:"SMALLINT(6)"`
23
+	Address      string    `xorm:"VARCHAR(200)"`
24
+	CourseDate   string    `xorm:"VARCHAR(200)"`
25
+	Remark       string    `xorm:"TEXT"`
26
+	IsPay        int       `xorm:"TINYINT(1)"`
27
+	ActualAmount string    `xorm:"DECIMAL(8,2)"`
28
+	CouponAmount string    `xorm:"DECIMAL(8,2)"`
29
+}

+ 15
- 0
models/model/ta_course_orders_coupon.go Ver arquivo

@@ -0,0 +1,15 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCourseOrdersCoupon struct {
8
+	OrdersCouponId string    `xorm:"not null pk VARCHAR(64)"`
9
+	OrdersId       string    `xorm:"VARCHAR(64)"`
10
+	CouponId       string    `xorm:"VARCHAR(64)"`
11
+	CouponName     string    `xorm:"VARCHAR(50)"`
12
+	UsedAmount     string    `xorm:"DECIMAL(8,2)"`
13
+	Status         int       `xorm:"SMALLINT(6)"`
14
+	CreateDate     time.Time `xorm:"DATETIME"`
15
+}

+ 6
- 0
models/model/ta_course_tag.go Ver arquivo

@@ -0,0 +1,6 @@
1
+package models
2
+
3
+type TaCourseTag struct {
4
+	CourseId string `xorm:"not null pk VARCHAR(64)"`
5
+	TagId    string `xorm:"not null pk VARCHAR(64)"`
6
+}

+ 15
- 0
models/model/ta_course_verifcation.go Ver arquivo

@@ -0,0 +1,15 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCourseVerifcation struct {
8
+	VerifcationId string    `xorm:"not null pk VARCHAR(64)"`
9
+	CourseId      string    `xorm:"VARCHAR(64)"`
10
+	CreateDate    time.Time `xorm:"DATETIME"`
11
+	CreateUser    string    `xorm:"VARCHAR(64)"`
12
+	Status        int       `xorm:"SMALLINT(6)"`
13
+	Source        string    `xorm:"VARCHAR(20)"`
14
+	SourceId      string    `xorm:"VARCHAR(64)"`
15
+}

+ 20
- 0
models/model/ta_customer.go Ver arquivo

@@ -0,0 +1,20 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCustomer struct {
8
+	CustomerId    string    `xorm:"not null pk VARCHAR(64)"`
9
+	OrgId         string    `xorm:"VARCHAR(64)"`
10
+	CustomerName  string    `xorm:"VARCHAR(50)"`
11
+	Name          string    `xorm:"VARCHAR(50)"`
12
+	Tel           string    `xorm:"VARCHAR(100)"`
13
+	Sex           int       `xorm:"SMALLINT(6)"`
14
+	Headimgurl    string    `xorm:"TEXT"`
15
+	RecommendId   string    `xorm:"VARCHAR(64)"`
16
+	RecommendCase string    `xorm:"VARCHAR(64)"`
17
+	RecommendName string    `xorm:"VARCHAR(50)"`
18
+	CreateDate    time.Time `xorm:"DATETIME"`
19
+	Status        int       `xorm:"SMALLINT(6)"`
20
+}

+ 18
- 0
models/model/ta_customer_account.go Ver arquivo

@@ -0,0 +1,18 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCustomerAccount struct {
8
+	AccountId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	UserId        string    `xorm:"VARCHAR(64)"`
10
+	UserName      string    `xorm:"VARCHAR(50)"`
11
+	Amount        float32   `xorm:"FLOAT(8,2)"`
12
+	Integral      float32   `xorm:"FLOAT(8,2)"`
13
+	Status        int       `xorm:"SMALLINT(6)"`
14
+	OrgId         string    `xorm:"VARCHAR(64)"`
15
+	CreateDate    time.Time `xorm:"DATETIME"`
16
+	PayedAmount   float32   `xorm:"FLOAT(8,2)"`
17
+	PayedIntegral float32   `xorm:"FLOAT(8,2)"`
18
+}

+ 19
- 0
models/model/ta_customer_card.go Ver arquivo

@@ -0,0 +1,19 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCustomerCard struct {
8
+	CustomerCardId   string    `xorm:"not null pk VARCHAR(64)"`
9
+	CardId           string    `xorm:"VARCHAR(64)"`
10
+	CustomerCardName string    `xorm:"VARCHAR(64)"`
11
+	CustomerId       string    `xorm:"VARCHAR(64)"`
12
+	StartDate        time.Time `xorm:"DATETIME"`
13
+	EndDate          time.Time `xorm:"DATETIME"`
14
+	Status           int       `xorm:"SMALLINT(6)"`
15
+	ReceiveDate      time.Time `xorm:"DATETIME"`
16
+	VerifyDate       time.Time `xorm:"DATETIME"`
17
+	CaseId           string    `xorm:"VARCHAR(64)"`
18
+	OrgId            string    `xorm:"VARCHAR(64)"`
19
+}

+ 19
- 0
models/model/ta_customer_coupon.go Ver arquivo

@@ -0,0 +1,19 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCustomerCoupon struct {
8
+	CustomerCouponId   string    `xorm:"not null pk VARCHAR(64)"`
9
+	CouponId           string    `xorm:"VARCHAR(64)"`
10
+	CustomerCouponName string    `xorm:"VARCHAR(64)"`
11
+	CustomerId         string    `xorm:"VARCHAR(64)"`
12
+	StartDate          time.Time `xorm:"DATETIME"`
13
+	EndDate            time.Time `xorm:"DATETIME"`
14
+	Status             int       `xorm:"SMALLINT(6)"`
15
+	ReceiveDate        time.Time `xorm:"DATETIME"`
16
+	UseDate            time.Time `xorm:"DATETIME"`
17
+	CaseId             string    `xorm:"VARCHAR(64)"`
18
+	OrgId              string    `xorm:"VARCHAR(64)"`
19
+}

+ 23
- 0
models/model/ta_customer_course.go Ver arquivo

@@ -0,0 +1,23 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCustomerCourse struct {
8
+	CustomerCourseId string    `xorm:"not null pk VARCHAR(64)"`
9
+	CourseId         string    `xorm:"VARCHAR(64)"`
10
+	CustomerId       string    `xorm:"VARCHAR(64)"`
11
+	OrgId            string    `xorm:"VARCHAR(64)"`
12
+	CaseId           string    `xorm:"VARCHAR(64)"`
13
+	CourseName       string    `xorm:"VARCHAR(50)"`
14
+	LocationId       string    `xorm:"VARCHAR(64)"`
15
+	LocationName     string    `xorm:"VARCHAR(64)"`
16
+	Price            float32   `xorm:"FLOAT(8,2)"`
17
+	CourseNum        int       `xorm:"INT(11)"`
18
+	JoinNum          int       `xorm:"INT(11)"`
19
+	CreateDate       time.Time `xorm:"DATETIME"`
20
+	Address          string    `xorm:"VARCHAR(200)"`
21
+	CourseDate       string    `xorm:"VARCHAR(200)"`
22
+	Remark           string    `xorm:"TEXT"`
23
+}

+ 20
- 0
models/model/ta_customer_gym.go Ver arquivo

@@ -0,0 +1,20 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaCustomerGym struct {
8
+	CustomerGymId   string    `xorm:"not null pk VARCHAR(64)"`
9
+	GymCardId       string    `xorm:"VARCHAR(64)"`
10
+	CustomerGymName string    `xorm:"VARCHAR(64)"`
11
+	CustomerId      string    `xorm:"VARCHAR(64)"`
12
+	StartDate       time.Time `xorm:"DATETIME"`
13
+	EndDate         time.Time `xorm:"DATETIME"`
14
+	Status          int       `xorm:"SMALLINT(6)"`
15
+	ReceiveDate     time.Time `xorm:"DATETIME"`
16
+	VerifyDate      time.Time `xorm:"DATETIME"`
17
+	GymType         string    `xorm:"VARCHAR(64)"`
18
+	CaseId          string    `xorm:"VARCHAR(64)"`
19
+	OrgId           string    `xorm:"VARCHAR(64)"`
20
+}

+ 13
- 0
models/model/ta_experience_card_verification.go Ver arquivo

@@ -0,0 +1,13 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaExperienceCardVerification struct {
8
+	ExperienceCardVerifyId   string    `xorm:"not null pk VARCHAR(64)"`
9
+	CustomerCardId           string    `xorm:"VARCHAR(64)"`
10
+	ExperienceCardVerifyTime time.Time `xorm:"DATETIME"`
11
+	ExperienceCardVerifyCase string    `xorm:"VARCHAR(64)"`
12
+	Status                   int       `xorm:"SMALLINT(6)"`
13
+}

+ 16
- 0
models/model/ta_goods.go Ver arquivo

@@ -0,0 +1,16 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaGoods struct {
8
+	GoodsId    string    `xorm:"not null pk VARCHAR(64)"`
9
+	GoodsName  string    `xorm:"VARCHAR(50)"`
10
+	OrgId      string    `xorm:"VARCHAR(64)"`
11
+	CaseId     string    `xorm:"VARCHAR(64)"`
12
+	TypeId     string    `xorm:"VARCHAR(64)"`
13
+	Status     int       `xorm:"SMALLINT(6)"`
14
+	CreateDate time.Time `xorm:"DATETIME"`
15
+	CreateUser string    `xorm:"VARCHAR(64)"`
16
+}

+ 8
- 0
models/model/ta_goods_img.go Ver arquivo

@@ -0,0 +1,8 @@
1
+package models
2
+
3
+type TaGoodsImg struct {
4
+	ImgId   string `xorm:"not null pk VARCHAR(64)"`
5
+	GoodsId string `xorm:"VARCHAR(64)"`
6
+	ImgUrl  string `xorm:"TEXT"`
7
+	Status  int    `xorm:"SMALLINT(6)"`
8
+}

+ 29
- 0
models/model/ta_goods_orders.go Ver arquivo

@@ -0,0 +1,29 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaGoodsOrders struct {
8
+	OrdersId   string    `xorm:"not null pk VARCHAR(64)"`
9
+	OrdersNo   string    `xorm:"VARCHAR(32)"`
10
+	OrgId      string    `xorm:"VARCHAR(64)"`
11
+	CaseId     string    `xorm:"VARCHAR(64)"`
12
+	AreaId     string    `xorm:"VARCHAR(64)"`
13
+	AreaName   string    `xorm:"VARCHAR(50)"`
14
+	TableId    string    `xorm:"VARCHAR(64)"`
15
+	TableName  string    `xorm:"VARCHAR(50)"`
16
+	Amount     string    `xorm:"DECIMAL(8,2)"`
17
+	CreateDate time.Time `xorm:"DATETIME"`
18
+	Status     int       `xorm:"SMALLINT(6)"`
19
+	PayType    int       `xorm:"comment('vip VIP卡城币抵用
20
+            coupon 优惠券抵用') SMALLINT(6)"`
21
+	UserType     int    `xorm:"SMALLINT(6)"`
22
+	UserId       string `xorm:"VARCHAR(64)"`
23
+	UserName     string `xorm:"VARCHAR(50)"`
24
+	OrdersNum    int    `xorm:"INT(11)"`
25
+	Remark       string `xorm:"TEXT"`
26
+	IsPay        int    `xorm:"TINYINT(1)"`
27
+	ActualAmount string `xorm:"DECIMAL(8,2)"`
28
+	CouponAmount string `xorm:"DECIMAL(8,2)"`
29
+}

+ 19
- 0
models/model/ta_goods_orders_coupon.go Ver arquivo

@@ -0,0 +1,19 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaGoodsOrdersCoupon struct {
8
+	OrdersCouponId string    `xorm:"not null pk VARCHAR(64)"`
9
+	OrdersId       string    `xorm:"VARCHAR(64)"`
10
+	OrdersNo       string    `xorm:"VARCHAR(100)"`
11
+	CouponId       string    `xorm:"VARCHAR(64)"`
12
+	CouponName     string    `xorm:"VARCHAR(50)"`
13
+	OrgId          string    `xorm:"VARCHAR(64)"`
14
+	GoodsId        string    `xorm:"VARCHAR(64)"`
15
+	GoodsName      string    `xorm:"VARCHAR(50)"`
16
+	UsedAmount     float32   `xorm:"FLOAT(8,2)"`
17
+	Status         int       `xorm:"SMALLINT(6)"`
18
+	CreateDate     time.Time `xorm:"DATETIME"`
19
+}

+ 12
- 0
models/model/ta_goods_orders_detail.go Ver arquivo

@@ -0,0 +1,12 @@
1
+package models
2
+
3
+type TaGoodsOrdersDetail struct {
4
+	DetailId  string `xorm:"not null pk VARCHAR(64)"`
5
+	OrdersId  string `xorm:"VARCHAR(64)"`
6
+	GoodsId   string `xorm:"VARCHAR(64)"`
7
+	GoodsName string `xorm:"VARCHAR(50)"`
8
+	SpecId    string `xorm:"VARCHAR(64)"`
9
+	SpecName  string `xorm:"VARCHAR(50)"`
10
+	Number    int    `xorm:"INT(11)"`
11
+	Price     string `xorm:"DECIMAL(8,2)"`
12
+}

+ 7
- 0
models/model/ta_goods_spec.go Ver arquivo

@@ -0,0 +1,7 @@
1
+package models
2
+
3
+type TaGoodsSpec struct {
4
+	SpecId     string  `xorm:"not null pk VARCHAR(64)"`
5
+	GoodsId    string  `xorm:"not null pk VARCHAR(64)"`
6
+	GoodsPrice float32 `xorm:"FLOAT(8,2)"`
7
+}

+ 28
- 0
models/model/ta_gym_card.go Ver arquivo

@@ -0,0 +1,28 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaGymCard struct {
8
+	GymCardId        string    `xorm:"not null pk VARCHAR(64)"`
9
+	GymTypeId        string    `xorm:"VARCHAR(64)"`
10
+	GymCardName      string    `xorm:"VARCHAR(128)"`
11
+	Price            float32   `xorm:"FLOAT(8,2)"`
12
+	VideoUrl         string    `xorm:"TEXT"`
13
+	CoverUrl         string    `xorm:"TEXT"`
14
+	SentType         int       `xorm:"comment('0案场 1渠道') SMALLINT(6)"`
15
+	StartDate        time.Time `xorm:"DATETIME"`
16
+	EndDate          time.Time `xorm:"DATETIME"`
17
+	ValidDays        int       `xorm:"INT(11)"`
18
+	ShareDescription string    `xorm:"VARCHAR(255)"`
19
+	RuleDescription  string    `xorm:"VARCHAR(255)"`
20
+	UseDescription   string    `xorm:"TEXT"`
21
+	TotalCount       int       `xorm:"INT(11)"`
22
+	SentCount        int       `xorm:"INT(11)"`
23
+	UsedCount        int       `xorm:"INT(11)"`
24
+	Status           int       `xorm:"comment('0未发布 1已发布 2已过期') SMALLINT(6)"`
25
+	CaseId           string    `xorm:"VARCHAR(64)"`
26
+	OrgId            string    `xorm:"VARCHAR(64)"`
27
+	CreateDate       time.Time `xorm:"DATETIME"`
28
+}

+ 13
- 0
models/model/ta_gym_card_usage.go Ver arquivo

@@ -0,0 +1,13 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaGymCardUsage struct {
8
+	GymCardUsageId string    `xorm:"not null pk VARCHAR(64)"`
9
+	CustomerGymId  string    `xorm:"VARCHAR(64)"`
10
+	UseDate        time.Time `xorm:"DATETIME"`
11
+	UseCaseId      string    `xorm:"VARCHAR(64)"`
12
+	Status         int       `xorm:"SMALLINT(6)"`
13
+}

+ 14
- 0
models/model/ta_stop_user.go Ver arquivo

@@ -0,0 +1,14 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaStopUser struct {
8
+	StopId    string    `xorm:"not null pk VARCHAR(64)"`
9
+	UserId    string    `xorm:"VARCHAR(64)"`
10
+	UserType  string    `xorm:"VARCHAR(64)"`
11
+	StopType  int       `xorm:"SMALLINT(6)"`
12
+	BeginDate time.Time `xorm:"DATETIME"`
13
+	EndDate   time.Time `xorm:"DATETIME"`
14
+}

+ 13
- 0
models/model/ta_user_mapping.go Ver arquivo

@@ -0,0 +1,13 @@
1
+package models
2
+
3
+type TaUserMapping struct {
4
+	MappingId string `xorm:"not null pk VARCHAR(64)"`
5
+	UserId    string `xorm:"VARCHAR(64)"`
6
+	UserType  string `xorm:"comment('customer 为会员
7
+            user 为后台用户') VARCHAR(50)"`
8
+	AccountType string `xorm:"comment('wechat 微信公众号
9
+            mini 小程序') VARCHAR(50)"`
10
+	Openid      string `xorm:"VARCHAR(200)"`
11
+	Uuid        string `xorm:"VARCHAR(200)"`
12
+	AccountInfo string `xorm:"TEXT"`
13
+}

+ 16
- 0
models/model/ta_vip_card.go Ver arquivo

@@ -0,0 +1,16 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaVipCard struct {
8
+	VipCardId   string    `xorm:"not null pk VARCHAR(64)"`
9
+	VipCardName string    `xorm:"VARCHAR(64)"`
10
+	CardAmount  float32   `xorm:"FLOAT(8,2)"`
11
+	CreateDate  time.Time `xorm:"DATETIME"`
12
+	TotalCount  int       `xorm:"INT(11)"`
13
+	Status      int       `xorm:"SMALLINT(6)"`
14
+	CaseId      string    `xorm:"VARCHAR(64)"`
15
+	OrgId       string    `xorm:"VARCHAR(64)"`
16
+}

+ 16
- 0
models/model/ta_vip_card_child.go Ver arquivo

@@ -0,0 +1,16 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaVipCardChild struct {
8
+	VipCardChildId   string    `xorm:"not null pk VARCHAR(64)"`
9
+	VipCardId        string    `xorm:"VARCHAR(64)"`
10
+	VipCardChildCode string    `xorm:"VARCHAR(255)"`
11
+	Status           int       `xorm:"SMALLINT(6)"`
12
+	CustomerId       string    `xorm:"VARCHAR(64)"`
13
+	CustomerTel      string    `xorm:"DECIMAL(13)"`
14
+	CreateDate       time.Time `xorm:"DATETIME"`
15
+	ActiveDate       time.Time `xorm:"DATETIME"`
16
+}

+ 8
- 0
models/model/td_card_type.go Ver arquivo

@@ -0,0 +1,8 @@
1
+package models
2
+
3
+type TdCardType struct {
4
+	CardTypeId   string `xorm:"not null pk VARCHAR(64)"`
5
+	CardTypeName string `xorm:"VARCHAR(128)"`
6
+	Status       int    `xorm:"SMALLINT(6)"`
7
+	OrgId        string `xorm:"VARCHAR(64)"`
8
+}

+ 9
- 0
models/model/td_cms_image_location.go Ver arquivo

@@ -0,0 +1,9 @@
1
+package models
2
+
3
+type TdCmsImageLocation struct {
4
+	LocationId   string `xorm:"not null pk VARCHAR(64)"`
5
+	LocationName string `xorm:"VARCHAR(32)"`
6
+	LocationCode string `xorm:"VARCHAR(32)"`
7
+	OrgId        string `xorm:"VARCHAR(64)"`
8
+	Status       int    `xorm:"SMALLINT(6)"`
9
+}

+ 7
- 0
models/model/td_coupon_card_type.go Ver arquivo

@@ -0,0 +1,7 @@
1
+package models
2
+
3
+type TdCouponCardType struct {
4
+	CouponTypeId   string `xorm:"not null pk VARCHAR(64)"`
5
+	CouponTypeName string `xorm:"VARCHAR(128)"`
6
+	OrgId          string `xorm:"VARCHAR(64)"`
7
+}

+ 14
- 0
models/model/td_course_tag.go Ver arquivo

@@ -0,0 +1,14 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TdCourseTag struct {
8
+	TagId      string    `xorm:"not null pk VARCHAR(64)"`
9
+	OrgId      string    `xorm:"VARCHAR(64)"`
10
+	TagName    string    `xorm:"VARCHAR(50)"`
11
+	Status     int       `xorm:"SMALLINT(6)"`
12
+	CreateDate time.Time `xorm:"DATETIME"`
13
+	CaseId     string    `xorm:"VARCHAR(64)"`
14
+}

+ 15
- 0
models/model/td_goods_type.go Ver arquivo

@@ -0,0 +1,15 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TdGoodsType struct {
8
+	TypeId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	TypeName   string    `xorm:"VARCHAR(32)"`
10
+	CaseId     string    `xorm:"VARCHAR(64)"`
11
+	OrgId      string    `xorm:"VARCHAR(64)"`
12
+	CreateUser string    `xorm:"VARCHAR(64)"`
13
+	CreateDate time.Time `xorm:"DATETIME"`
14
+	Status     int       `xorm:"SMALLINT(6)"`
15
+}

+ 7
- 0
models/model/td_gym_type.go Ver arquivo

@@ -0,0 +1,7 @@
1
+package models
2
+
3
+type TdGymType struct {
4
+	GymTypeId   string `xorm:"not null pk VARCHAR(64)"`
5
+	GymTypeName string `xorm:"VARCHAR(64)"`
6
+	OrgId       string `xorm:"VARCHAR(64)"`
7
+}

+ 9
- 0
models/model/td_spec.go Ver arquivo

@@ -0,0 +1,9 @@
1
+package models
2
+
3
+type TdSpec struct {
4
+	SpecId   string `xorm:"not null pk VARCHAR(64)"`
5
+	SpecName string `xorm:"VARCHAR(50)"`
6
+	Status   int    `xorm:"SMALLINT(6)"`
7
+	OrgId    string `xorm:"VARCHAR(64)"`
8
+	CaseId   string `xorm:"VARCHAR(64)"`
9
+}

+ 14
- 0
models/model/td_user_type.go Ver arquivo

@@ -0,0 +1,14 @@
1
+package models
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TdUserType struct {
8
+	TypeId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	TypeName   string    `xorm:"VARCHAR(50)"`
10
+	OrgId      string    `xorm:"VARCHAR(128)"`
11
+	CaseId     string    `xorm:"VARCHAR(128)"`
12
+	Status     int       `xorm:"SMALLINT(6)"`
13
+	CreateDate time.Time `xorm:"DATETIME"`
14
+}