Browse Source

add doc

tags/v1.21.12.1
yuyuanshifu 4 years ago
parent
commit
f460c5cc6d
3 changed files with 6 additions and 2 deletions
  1. BIN
      docs/开源社区平台与区块链平台对接方案.docx
  2. +4
    -0
      models/issue.go
  3. +2
    -2
      models/user.go

BIN
docs/开源社区平台与区块链平台对接方案.docx View File


+ 4
- 0
models/issue.go View File

@@ -66,6 +66,10 @@ type Issue struct {
// IsLocked limits commenting abilities to users on an issue
// with write access
IsLocked bool `xorm:"NOT NULL DEFAULT false"`

//block_chain
Amount int
IsTransformed bool `xorm:"INDEX NOT NULL DEFAULT false"`
}

var (


+ 2
- 2
models/user.go View File

@@ -174,8 +174,8 @@ type User struct {
Token string `xorm:"VARCHAR(1024)"`

//BlockChain
PublicKey string `xorm`
PrivateKey string `xorm`
PublicKey string `xorm:"INDEX"`
PrivateKey string `xorm:"INDEX"`
}

// SearchOrganizationsOptions options to filter organizations


Loading…
Cancel
Save