cd backend
go mod tidy
cd front
npm install
npm run build:prod
cp -rf front/dist/* backend/dist/
cd backend/script/init
go run main.go
实现backend/internal/middleware/types/IOaUser接口,并调用backend/internal/middleware.SetOa()
type IOaUser interface {
GetUser(r *http.Request) (OaUserInfo, error)
GetUserBySign(sign, userAgent string) (OaUserInfo, error)
GetUserInfoByDepId(r *http.Request, depId int) (users []OaUserInfo, err error)
}