refactor: remove user-level API methods, keep admin and send only
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -65,22 +65,6 @@ type SmsSignature struct {
|
||||
ReviewedAt *time.Time `json:"reviewed_at"`
|
||||
}
|
||||
|
||||
type CreateSignatureReq struct {
|
||||
Title string `json:"title"`
|
||||
ApplicantName string `json:"applicant_name"`
|
||||
ApplicantIDCard string `json:"applicant_id_card,omitempty"`
|
||||
ApplicantCompany string `json:"applicant_company,omitempty"`
|
||||
LicenseURL string `json:"license_url,omitempty"`
|
||||
}
|
||||
|
||||
type UpdateSignatureReq struct {
|
||||
Title string `json:"title,omitempty"`
|
||||
ApplicantName string `json:"applicant_name,omitempty"`
|
||||
ApplicantIDCard string `json:"applicant_id_card,omitempty"`
|
||||
ApplicantCompany string `json:"applicant_company,omitempty"`
|
||||
LicenseURL string `json:"license_url,omitempty"`
|
||||
}
|
||||
|
||||
type AdminCreateSignatureReq struct {
|
||||
UserID uint `json:"user_id"`
|
||||
Title string `json:"title"`
|
||||
@@ -130,19 +114,6 @@ type SmsTemplate struct {
|
||||
ReviewedAt *time.Time `json:"reviewed_at"`
|
||||
}
|
||||
|
||||
type CreateTemplateReq struct {
|
||||
Name string `json:"name"`
|
||||
Content string `json:"content"`
|
||||
Params []TemplateParam `json:"params,omitempty"`
|
||||
RecommendedID *uint `json:"recommended_id,omitempty"`
|
||||
}
|
||||
|
||||
type UpdateTemplateReq struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
Content string `json:"content,omitempty"`
|
||||
Params []TemplateParam `json:"params,omitempty"`
|
||||
}
|
||||
|
||||
type AdminCreateTemplateReq struct {
|
||||
UserID uint `json:"user_id"`
|
||||
Name string `json:"name"`
|
||||
@@ -203,13 +174,6 @@ type SmsUserToken struct {
|
||||
LastUsedIP string `json:"last_used_ip"`
|
||||
}
|
||||
|
||||
type CreateTokenReq struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
QuotaLimit *int `json:"quota_limit,omitempty"`
|
||||
TemplateIDs []uint `json:"template_ids,omitempty"`
|
||||
ExpireAt string `json:"expire_at,omitempty"`
|
||||
}
|
||||
|
||||
type UpdateTokenReq struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
QuotaLimit *int `json:"quota_limit,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user