update sqlc gen
This commit is contained in:
parent
6c22684890
commit
c3faa2a21c
@ -3474,6 +3474,31 @@ func (q *Queries) QuizCopyQid(ctx context.Context, arg QuizCopyQidParams) (QuizC
|
||||
return i, err
|
||||
}
|
||||
|
||||
const searchIDByAppIDanAppHash = `-- name: SearchIDByAppIDanAppHash :one
|
||||
SELECT id, apiid, apihash, phonenumber, password, status, deleted, createdat FROM tgAccounts WHERE ApiID = $1 and ApiHash=$2 and Deleted = false
|
||||
`
|
||||
|
||||
type SearchIDByAppIDanAppHashParams struct {
|
||||
Apiid int32 `db:"apiid" json:"apiid"`
|
||||
Apihash string `db:"apihash" json:"apihash"`
|
||||
}
|
||||
|
||||
func (q *Queries) SearchIDByAppIDanAppHash(ctx context.Context, arg SearchIDByAppIDanAppHashParams) (Tgaccount, error) {
|
||||
row := q.db.QueryRowContext(ctx, searchIDByAppIDanAppHash, arg.Apiid, arg.Apihash)
|
||||
var i Tgaccount
|
||||
err := row.Scan(
|
||||
&i.ID,
|
||||
&i.Apiid,
|
||||
&i.Apihash,
|
||||
&i.Phonenumber,
|
||||
&i.Password,
|
||||
&i.Status,
|
||||
&i.Deleted,
|
||||
&i.Createdat,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
|
||||
const setQuizSettings = `-- name: SetQuizSettings :one
|
||||
INSERT INTO rules (AccountID, QuizID, PerformerID, PipelineID, StepID, FieldsRule,TagsToAdd)
|
||||
SELECT u.AmoID AS AccountID,$1 AS QuizID,$2 AS PerformerID,$3 AS PipelineID,
|
||||
|
Loading…
Reference in New Issue
Block a user