This commit is contained in:
oneao committed 2026-02-26 17:31:08 +08:00
1 parent 4ce951dd56
commit 8a3dea8545
44 files changed
+1599 -30

No files matched your search

@@ -0,0 +1,40 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
// source: user_oauth.sql
package repo
import (
"context"
)
const insertUserOAuth = `-- name: InsertUserOAuth :exec
INSERT INTO user_oauth (
id,
user_id,
type,
openid,
create_time,
update_time
) VALUES (
$1, $2, $3, $4, NOW(), NOW()
)
`
type InsertUserOAuthParams struct {
ID int64
UserID int64
Type int32
Openid string
}
func (q *Queries) InsertUserOAuth(ctx context.Context, arg InsertUserOAuthParams) error {
_, err := q.db.Exec(ctx, insertUserOAuth,
arg.ID,
arg.UserID,
arg.Type,
arg.Openid,
)
return err
}