Skip to content

Commit aed79c8

Browse files
committed
feat:v5
1 parent 38e9651 commit aed79c8

4 files changed

Lines changed: 2 additions & 33 deletions

File tree

models/shop_order.go

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +0,0 @@
1-
// Code generated by log-gen. DO NOT EDIT.
2-
package models
3-
4-
import "time"
5-
6-
type ShopOrder struct {
7-
id int64 `json:"id"`//
8-
uuid string `json:"uuid"`//'uuid,为兼容旧逻辑',
9-
user_id int64 `json:"user_id"`//'购买用户id',
10-
payment int8 `json:"payment"`//'0-no,1-wepay,2-alipay',
11-
fee_amount int `json:"fee_amount"`//'总共需要支付费用',
12-
prepare_time int `json:"prepare_time"`//'发起支付时间,10位时间戳',
13-
paid_time int `json:"paid_time"`//'回调确认支付时间',
14-
goods_detail string `json:"goods_detail"`//'订单商品详情,json数组',
15-
status int8 `json:"status"`//'1-待支付,3-待确认,4-已经支付成功,5-支付失败,6-物流中,7-关闭,8-完成',
16-
created_ts time.Time `json:"created_ts"`//
17-
updated_ts time.Time `json:"updated_ts"`//
18-
logistics_id int64 `json:"logistics_id"`//'物流id',
19-
flag int `json:"flag"`//'01-已计算sold_amount,10-已经评论',
20-
}
21-
22-
func (s *ShopOrder) Pk() string {
23-
return "id"
24-
}
25-
func (s *ShopOrder) TableName() string {
26-
return "shop_order"
27-
}

v5/lexer.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (l *lex) Lex(lval *yySymType) int {
7575
str := l.readString()
7676
tok := findKeyword(str)
7777
if tok > 0 {
78-
return tok
78+
return tok + 1
7979
}
8080
lval.s = str
8181
return tString
@@ -88,8 +88,6 @@ func (l *lex) Lex(lval *yySymType) int {
8888
l.Error(err.Error())
8989
return 0
9090
}
91-
92-
fmt.Println("ret: ", "tString", tString)
9391
return tNumber
9492
}
9593
return 0

v5/out.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v5/lexer.y renamed to v5/parser.y

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ CreateTableStmt:
111111
$$.Receive($6,yylex)
112112
$$.Receive($8,yylex)
113113
}
114-
115-
116114
;
117115
ColumnsStmt:
118116

0 commit comments

Comments
 (0)