feat: support basic user system
This commit is contained in:
28
internal/repository/config.sql.go
Normal file
28
internal/repository/config.sql.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.30.0
|
||||
// source: config.sql
|
||||
|
||||
package repository
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
const getConfig = `-- name: GetConfig :one
|
||||
SELECT id, "Jwt.Alg", "Jwt.SignKey", "Jwt.VerifyKye"
|
||||
FROM config
|
||||
WHERE id = 0
|
||||
`
|
||||
|
||||
func (q *Queries) GetConfig(ctx context.Context) (Config, error) {
|
||||
row := q.db.QueryRow(ctx, getConfig)
|
||||
var i Config
|
||||
err := row.Scan(
|
||||
&i.ID,
|
||||
&i.JwtAlg,
|
||||
&i.JwtSignKey,
|
||||
&i.JwtVerifyKye,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
Reference in New Issue
Block a user