code refactor

This commit is contained in:
MaysWind
2020-12-23 01:24:44 +08:00
parent 62ef7cbcbe
commit b3962e8af9
35 changed files with 256 additions and 255 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package models
// Level-One Account
const ACCOUNT_PARENT_ID_LEVEL_ONE = 0
// LevelOneAccountParentId represents the parent id of level-one account
const LevelOneAccountParentId = 0
// AccountCategory represents account category
type AccountCategory byte
+2 -2
View File
@@ -2,8 +2,8 @@ package models
import "github.com/mayswind/lab/pkg/core"
// The maximum size of user agent stored in database
const TOKEN_USER_AGENT_MAX_LENGTH = 255
// TokenMaxUserAgentLength represents the maximum size of user agent stored in database
const TokenMaxUserAgentLength = 255
// TokenRecord represents token data stored in database
type TokenRecord struct {
+2 -2
View File
@@ -1,7 +1,7 @@
package models
// Level-One Transaction Category
const TRANSACTION_PARENT_ID_LEVEL_ONE = 0
// LevelOneTransactionParentId represents the parent id of level-one transaction category
const LevelOneTransactionParentId = 0
// TransactionCategoryType represents transaction category type
type TransactionCategoryType byte