Quellcode durchsuchen

240813-1757-Kim

EricKIm vor 3 Monaten
Ursprung
Commit
31e50e36a2
2 geänderte Dateien mit 1 neuen und 38 gelöschten Zeilen
  1. 0 6
      controller.go
  2. 1 32
      structs.go

+ 0 - 6
controller.go

@@ -12,8 +12,6 @@ import (
 )
 
 func (c *Controller) Init() (int, string) {
-	// status, msg := c.GetYDB()
-	// return status, msg
 
 	var gtb GateTokenBase
 
@@ -49,10 +47,6 @@ func (c *Controller) Init() (int, string) {
 		}
 	}
 
-	if c.Db, err = xorm.NewEngine(XConfig["DbType"], c.Gtb.ConnString); err != nil {
-		return 600, e.LogStr("ADASEF", "DBEngine Open Error")
-	}
-
 	if status, msg := c.AttachDB(); status != 200 { // DB 까지 붙여야 memory error 가 안난다.
 		return status, e.LogStr("PBUYJM-", msg)
 	}

+ 1 - 32
structs.go

@@ -80,6 +80,7 @@ type GateTokenBase struct {
 	UserPermId      int    `yaml:"user_perm_id"`
 	MemberId        int    `yaml:"member_id"`
 	MemberPermId    int    `yaml:"member_perm_id"`
+	SellerId        int    `yaml:"seller_id"`
 	SgroupId        int    `yaml:"sgroup_id"`
 	BranchId        int    `yaml:"branch_id"`
 	StorageId       int    `yaml:"storage_id"`
@@ -99,35 +100,3 @@ type GateTokenBase struct {
 	AccAmtPoint     int    `yaml:"acc_amt_point"`
 	OfcCode         string `yaml:"ofc_code"`
 }
-
-type GateTokenBaseOld struct {
-	ConnString      string
-	RemoteIp        string
-	DeviceDesc      string
-	FrontIp         string
-	FrontHost       string
-	Referer         string
-	SsoSubId        int
-	UserId          int
-	UserPermId      int
-	MemberId        int
-	MemberPermId    int
-	SgroupId        int
-	BranchId        int
-	StorageId       int
-	AgroupId        int
-	MemberBuyerId   int
-	MemberCompanyId int
-	CompanySort     string
-	SalesQtyPoint   int
-	SalesPrcPoint   int
-	SalesAmtPoint   int
-	PurchQtyPoint   int
-	PurchPrcPoint   int
-	PurchAmtPoint   int
-	StockQtyPoint   int
-	StockPrcPoint   int
-	StockAmtPoint   int
-	AccAmtPoint     int
-	OfcCode         string
-}