Skip to content

Commit 8087536

Browse files
authored
Merge pull request #28 from yokowu/main
feat: 支持钉钉OAuth
2 parents e32a9ef + d68ac3d commit 8087536

43 files changed

Lines changed: 7258 additions & 54 deletions

Some content is hidden

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

backend/consts/user.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,16 @@ const (
1111
const (
1212
SessionName = "monkeycode_session"
1313
)
14+
15+
type UserPlatform string
16+
17+
const (
18+
UserPlatformEmail UserPlatform = "email"
19+
UserPlatformDingTalk UserPlatform = "dingtalk"
20+
)
21+
22+
type OAuthKind string
23+
24+
const (
25+
OAuthKindSignUpOrIn OAuthKind = "signup_or_in"
26+
)

backend/db/client.go

Lines changed: 177 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/db/ent.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/db/hook/hook.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/db/intercept/intercept.go

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)