This commit is contained in:
parent
dd01ca31a3
commit
197e035f0b
@ -1,3 +1,4 @@
|
|||||||
|
# 打包前端
|
||||||
FROM node:18-alpine as build-stage
|
FROM node:18-alpine as build-stage
|
||||||
|
|
||||||
WORKDIR front
|
WORKDIR front
|
||||||
@ -10,6 +11,7 @@ RUN npm config set registry https://registry.npmmirror.com
|
|||||||
RUN pnpm install
|
RUN pnpm install
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
|
# 前后端集成打包
|
||||||
FROM golang:alpine as build
|
FROM golang:alpine as build
|
||||||
|
|
||||||
RUN apk add upx
|
RUN apk add upx
|
||||||
|
@ -194,7 +194,7 @@ func (r clientRepo) GetById(id string) (data entity.Client, err error) {
|
|||||||
// @return data
|
// @return data
|
||||||
// @return err
|
// @return err
|
||||||
func (r clientRepo) GetByPublicKey(publicKey string) (data entity.Client, err error) {
|
func (r clientRepo) GetByPublicKey(publicKey string) (data entity.Client, err error) {
|
||||||
err = r.Model(&entity.Client{}).Where("json_extract(keys, '.publicKey') = ?", publicKey).Preload("Server").First(&data).Error
|
err = r.Model(&entity.Client{}).Where("json_extract(keys, '.publicKey') = '?'", publicKey).Preload("Server").First(&data).Error
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user