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() {
 
 }