From 919cce7fa211c594a51ce08f51a17dfa173704cf Mon Sep 17 00:00:00 2001 From: hwf452 Date: Sat, 1 Mar 2025 17:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=94=B9=E7=94=A8or?= =?UTF-8?q?m=E6=A1=86=E6=9E=B6=20gorm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 34 +++++++- go.mod | 8 +- go.sum | 16 ++++ install_go.sh | 194 +++++++++++++++++++++++++++++++++++++++++- main.go | 123 +++++++++++++++----------- models/Order.go | 38 +++++++++ models/Product.go | 45 ++++++++++ models/Temperature.go | 39 +++++++-- models/User.go | 47 ++++++++++ mydb/initialize.go | 58 +++++++++++++ utils/RandomNumber.go | 81 ++++++++++++++++++ 11 files changed, 622 insertions(+), 61 deletions(-) create mode 100644 models/Order.go create mode 100644 models/Product.go create mode 100644 models/User.go create mode 100644 mydb/initialize.go create mode 100644 utils/RandomNumber.go diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 35215e3..855b203 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,12 +4,31 @@