fix(store,api): идемпотентный import (UNIQUE+ON CONFLICT) + PATCH привязки шаблона к домену

This commit is contained in:
2026-07-03 15:24:08 +07:00
parent 2aca92d070
commit ddab6e2162
9 changed files with 364 additions and 1 deletions
+6
View File
@@ -47,6 +47,12 @@ type domainRequest struct {
TemplateID *string `json:"templateId,omitempty"`
}
// updateDomainTemplateRequest is the PATCH .../domains/{did} body used to
// bind (or clear, when templateId is null/omitted) a domain's DNS template.
type updateDomainTemplateRequest struct {
TemplateID *string `json:"templateId"`
}
type domainResponse struct {
ID string `json:"id"`
ProviderAccountID string `json:"providerAccountId"`