Skip to content

Commit f92d4cc

Browse files
committed
-
1 parent 1638109 commit f92d4cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2268
-812
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@
2323
skill_sheet.xlsx
2424
.~lock.skill_sheet.xlsx#
2525

26+
bin/
27+

Makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.PHONY: redoc-lint
2+
redoc-lint:
3+
npx @redocly/cli lint ./schema/root.yml
4+
5+
.PHONY: redoc
6+
redoc: redoc-lint
7+
npx @redocly/cli bundle ./schema/root.yml -o ./schema/openapi.yml
8+
9+
.PHONY: gen
10+
gen: redoc
11+
go tool oapi-codegen --config=openapi-codegen-config.yml ./schema/openapi.yml > ./src/rest/generated.go
12+
13+
.PHONY: build
14+
build:
15+
go build -o ./bin/cvadmin ./src/main.go
16+
17+
.PHONY: serve
18+
serve: build
19+
./bin/cvadmin server
20+
21+
.PHONY: migrate
22+
migrate: build
23+
./bin/cvadmin migrate
24+
25+
.PHONY: output
26+
output: build
27+
./bin/cvadmin export --userid 1 --dir /Users/sky0621/work/github.com/sky0621/cv/app2/public/data
28+
29+
.PHONY: submit
30+
submit: build
31+
./bin/cvadmin submission --userid 1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Oops. 未実装が目立つ・・・。
1818

1919
## function
2020

21-
※ローカル実行は [go (v1.19)](https://go.dev/) インストール済みが前提。
21+
※ローカル実行は [go (v1.24)](https://go.dev/) インストール済みが前提。
2222

2323
cv-admin ディレクトリ直下で以下を叩く。
2424

TOOL.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## ref
2+
3+
https://github.com/oapi-codegen/oapi-codegen
4+
5+
## get
6+
7+
```
8+
go get -tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
9+
```
10+
11+
## update
12+
13+
```
14+
go get -u tool
15+
```
16+
17+
## exec
18+
19+
20+
## check
21+
22+
```
23+
go tool
24+
```

go.mod

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
module github.com/sky0621/cv-admin
22

3-
go 1.23.0
4-
5-
toolchain go1.23.4
3+
go 1.24.2
64

75
require (
86
entgo.io/ent v0.14.1
9-
github.com/getkin/kin-openapi v0.128.0
7+
github.com/getkin/kin-openapi v0.131.0
108
github.com/go-ozzo/ozzo-validation/v4 v4.3.0
119
github.com/labstack/echo/v4 v4.13.3
1210
github.com/mattn/go-sqlite3 v1.14.24
@@ -27,39 +25,48 @@ require (
2725
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
2826
github.com/bmatcuk/doublestar v1.3.4 // indirect
2927
github.com/davecgh/go-spew v1.1.1 // indirect
28+
github.com/dprotaso/go-yit v0.0.0-20240618133044-5a0af90af097 // indirect
3029
github.com/go-openapi/inflect v0.21.0 // indirect
31-
github.com/go-openapi/jsonpointer v0.21.0 // indirect
32-
github.com/go-openapi/swag v0.23.0 // indirect
30+
github.com/go-openapi/jsonpointer v0.21.1 // indirect
31+
github.com/go-openapi/swag v0.23.1 // indirect
3332
github.com/google/go-cmp v0.6.0 // indirect
3433
github.com/google/uuid v1.6.0 // indirect
3534
github.com/hashicorp/hcl/v2 v2.23.0 // indirect
3635
github.com/inconshreveable/mousetrap v1.1.0 // indirect
37-
github.com/invopop/yaml v0.3.1 // indirect
3836
github.com/josharian/intern v1.0.0 // indirect
3937
github.com/labstack/gommon v0.4.2 // indirect
4038
github.com/mailru/easyjson v0.9.0 // indirect
4139
github.com/mattn/go-colorable v0.1.13 // indirect
4240
github.com/mattn/go-isatty v0.0.20 // indirect
4341
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
4442
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
43+
github.com/oapi-codegen/oapi-codegen/v2 v2.4.1 // indirect
44+
github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037 // indirect
45+
github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 // indirect
4546
github.com/perimeterx/marshmallow v1.1.5 // indirect
4647
github.com/pmezard/go-difflib v1.0.0 // indirect
4748
github.com/richardlehane/mscfb v1.0.4 // indirect
4849
github.com/richardlehane/msoleps v1.0.4 // indirect
50+
github.com/speakeasy-api/jsonpath v0.6.1 // indirect
51+
github.com/speakeasy-api/openapi-overlay v0.10.1 // indirect
4952
github.com/spf13/pflag v1.0.5 // indirect
5053
github.com/ugorji/go/codec v1.2.12 // indirect
5154
github.com/valyala/bytebufferpool v1.0.0 // indirect
5255
github.com/valyala/fasttemplate v1.2.2 // indirect
56+
github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect
5357
github.com/xuri/efp v0.0.0-20241211021726-c4e992084aa6 // indirect
5458
github.com/xuri/nfp v0.0.0-20240318013403-ab9948c2c4a7 // indirect
5559
github.com/zclconf/go-cty v1.15.1 // indirect
56-
golang.org/x/crypto v0.31.0 // indirect
57-
golang.org/x/mod v0.22.0 // indirect
58-
golang.org/x/net v0.33.0 // indirect
59-
golang.org/x/sync v0.10.0 // indirect
60-
golang.org/x/sys v0.28.0 // indirect
61-
golang.org/x/text v0.21.0 // indirect
60+
golang.org/x/crypto v0.36.0 // indirect
61+
golang.org/x/mod v0.24.0 // indirect
62+
golang.org/x/net v0.37.0 // indirect
63+
golang.org/x/sync v0.13.0 // indirect
64+
golang.org/x/sys v0.31.0 // indirect
65+
golang.org/x/text v0.23.0 // indirect
6266
golang.org/x/time v0.8.0 // indirect
63-
golang.org/x/tools v0.28.0 // indirect
67+
golang.org/x/tools v0.31.0 // indirect
68+
gopkg.in/yaml.v2 v2.4.0 // indirect
6469
gopkg.in/yaml.v3 v3.0.1 // indirect
6570
)
71+
72+
tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen

0 commit comments

Comments
 (0)