wanghuidong 4 年之前
父節點
當前提交
3a19c62b0d
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      lock/interface.go

+ 6 - 6
lock/interface.go

@@ -12,23 +12,23 @@ type Cost interface {
 type Deduction interface {
 }
 
-type LeftNumUserCost struct {
+type LeftNumCost struct {
 	AppID                string
 	ProductID            int
 	LeftNum              int
 	ProductType          int
 	DataNumLimitOneTimes int
 }
-type AccountBalanceUserCost struct {
+type AccountBalanceCost struct {
 	AppID          string
 	ProductID      int
 	AccountBalance int
 }
 
-func (l *LeftNumUserCost) deduction() {
+func (l *LeftNumCost) deduction() {
 }
 
-func (l *LeftNumUserCost) before() bool {
+func (l *LeftNumCost) before() bool {
 	switch l.ProductType {
 	case 0:
 		//按次扣费的产品-判断left_num
@@ -44,13 +44,13 @@ func (l *LeftNumUserCost) before() bool {
 	return true
 }
 
-func (l *LeftNumUserCost) after() {
+func (l *LeftNumCost) after() {
 	switch l.ProductType {
 	case 0:
 	case 1:
 	}
 }
 
-func (a *AccountBalanceUserCost) deduction() {
+func (a *AccountBalanceCost) deduction() {
 
 }