(ctx context.Context, id string)
| 33 | } |
| 34 | |
| 35 | func (q *Queries) GetCFDomainByID(ctx context.Context, id string) (GetCFDomainByIDRow, error) { |
| 36 | row := q.db.QueryRow(ctx, getCFDomainByID, id) |
| 37 | var i GetCFDomainByIDRow |
| 38 | err := row.Scan( |
| 39 | &i.ID, |
| 40 | &i.CfToken, |
| 41 | &i.ZoneID, |
| 42 | &i.ZoneName, |
| 43 | &i.Remark, |
| 44 | ) |
| 45 | return i, err |
| 46 | } |
| 47 | |
| 48 | const listCFDomains = `-- name: ListCFDomains :many |
| 49 | SELECT id, cf_token, zone_id, zone_name, COALESCE(remark, '') AS remark |