Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
9497729378 | ||
|
48a58759da | ||
|
36f0202c57 |
@ -1,9 +1,9 @@
|
|||||||
# 打包前端
|
# 打包前端
|
||||||
FROM node:18-alpine as build-front
|
FROM node:18-alpine AS build-front
|
||||||
|
|
||||||
WORKDIR front
|
WORKDIR /front
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR web
|
WORKDIR ./web
|
||||||
|
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
RUN corepack prepare pnpm@8.6.10 --activate
|
RUN corepack prepare pnpm@8.6.10 --activate
|
||||||
@ -13,7 +13,7 @@ RUN pnpm build
|
|||||||
RUN ls -lh && pwd
|
RUN ls -lh && pwd
|
||||||
|
|
||||||
# 前后端集成打包
|
# 前后端集成打包
|
||||||
FROM golang:alpine as build-backend
|
FROM golang:alpine AS build-backend
|
||||||
|
|
||||||
RUN apk add upx
|
RUN apk add upx
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
3
main.go
3
main.go
@ -8,6 +8,7 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"time"
|
"time"
|
||||||
tui "wireguard-ui/cli"
|
tui "wireguard-ui/cli"
|
||||||
|
"wireguard-ui/cron"
|
||||||
"wireguard-ui/http"
|
"wireguard-ui/http"
|
||||||
"wireguard-ui/initialize"
|
"wireguard-ui/initialize"
|
||||||
"wireguard-ui/script"
|
"wireguard-ui/script"
|
||||||
@ -18,7 +19,7 @@ func init() {
|
|||||||
if err := script.New().Do(); err != nil {
|
if err := script.New().Do(); err != nil {
|
||||||
log.Errorf("执行脚本失败: %v", err.Error())
|
log.Errorf("执行脚本失败: %v", err.Error())
|
||||||
}
|
}
|
||||||
|
cron.Task()
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
package model
|
|
||||||
|
|
||||||
// AuthClient
|
|
||||||
// @description: 认证客户端
|
|
||||||
type AuthClient struct {
|
|
||||||
Base
|
|
||||||
Name string `json:"name" gorm:"type:varchar(255);not null;comment: '客户端名称'"`
|
|
||||||
ClientID string `json:"clientID" gorm:"type:varchar(255);not null;comment: '客户端ID'"`
|
|
||||||
ClientKey string `json:"clientKey" gorm:"type:varchar(255);not null;comment: '客户端key'"`
|
|
||||||
ExpireAt string `json:"expireAt" gorm:"type:varchar(255);not null;comment: '过期时间'"`
|
|
||||||
IsEnabled int `json:"isEnabled" gorm:"type:int(1);not null;comment: '是否启用'"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (AuthClient) TableName() string {
|
|
||||||
return "t_oauth_client"
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user