This commit is contained in:
11
.drone.sh
11
.drone.sh
@@ -5,16 +5,11 @@ export CGO_ENABLED=0
|
||||
|
||||
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
|
||||
echo $now
|
||||
pwd
|
||||
ls -lah ~
|
||||
go env
|
||||
go env GOPATH
|
||||
#GOCACHE=/tmp/cache
|
||||
#export GOCACHE
|
||||
#go env GOCACHE
|
||||
#pwd
|
||||
#ls -lah ~
|
||||
#go env
|
||||
echo "build commences"
|
||||
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o smt
|
||||
echo "build complete"
|
||||
sha256sum smt > smt_checksum.txt
|
||||
ls -lah
|
||||
find .
|
@@ -15,6 +15,8 @@ type User struct {
|
||||
RoleId int `db:"RoleId" json:"roleId"`
|
||||
UserName string `db:"UserName" json:"userName"`
|
||||
Password string `db:"Password" json:"-"`
|
||||
LdapUser bool `db:"LdapUser" json:"ldapUser"`
|
||||
LdapDn string `db:"LdapDN" json:"ldapDn"`
|
||||
}
|
||||
|
||||
type UserRole struct {
|
||||
|
Reference in New Issue
Block a user