houyaf 3 yıl önce
ebeveyn
işleme
681d081546
2 değiştirilmiş dosya ile 4 ekleme ve 6 silme
  1. 4 4
      viewmodels/access_token.go
  2. 0 2
      viewmodels/account_info.go

+ 4 - 4
viewmodels/access_token.go

@@ -1,8 +1,8 @@
 package viewmodels
 
 type AccessToken struct {
-	AccessToken string      `json:"accessToken"     `
-	User        interface{} `json:"user"            `
-	ExpiresIn   int64       `json:"expiresIn"       `
-	LeaseTime   int64       `json:"leaseTime"       `
+	AccessToken  string      `json:"accessToken"     `
+	User         interface{} `json:"user"            `
+	ExpiresIn    int64       `json:"expiresIn"       `
+	LeaseTime    int64       `json:"leaseTime"       `
 }

+ 0 - 2
viewmodels/account_info.go

@@ -1,6 +1,5 @@
 package viewmodels
 
-// AccountInfo Account Data Model
 type AccountInfo struct {
 	OcId            int64  `json:"ocId"             xorm:"'oc_id'             bigint         comment('组织ID:公司或机构或单位ID')"`
 	OcTypeId        int64  `json:"ocTypeId"         xorm:"'oc_type_id'        bigint         comment('OC TYPE ID')"`
@@ -23,7 +22,6 @@ type AccountInfo struct {
 	IsFixed         int64  `json:"isFixed"          xorm:"'isFixed'           bigint         default 1 comment('状态,默认值 1,[0:未激活; 1:正常; 2:锁定; -1:删除'])"`
 }
 
-// TableName table name
 func (t *AccountInfo) TableName() string {
 	return "account"
 }