mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 08:14:55 +08:00
fix(glossary): 补齐术语删除和审核门禁
This commit is contained in:
@@ -595,6 +595,13 @@ type GlossaryReviewParams struct {
|
||||
Reason string `json:"reason,omitempty"`
|
||||
}
|
||||
|
||||
type GlossaryDeleteParams struct {
|
||||
GlossaryPath string `json:"glossary_path,omitempty"`
|
||||
TermID string `json:"term_id"`
|
||||
Reviewer string `json:"reviewer"`
|
||||
Reason string `json:"reason"`
|
||||
}
|
||||
|
||||
type GlossarySummaryReport struct {
|
||||
Available bool `json:"available"`
|
||||
Path string `json:"path"`
|
||||
@@ -615,6 +622,7 @@ type GlossaryMutationReport struct {
|
||||
Available bool `json:"available"`
|
||||
Path string `json:"path"`
|
||||
SchemaVersion *uint64 `json:"schema_version,omitempty"`
|
||||
Deleted bool `json:"deleted,omitempty"`
|
||||
Term GlossaryTerm `json:"term"`
|
||||
}
|
||||
|
||||
@@ -944,6 +952,12 @@ func (c *Client) GlossaryDeprecate(ctx context.Context, params GlossaryReviewPar
|
||||
return &out, err
|
||||
}
|
||||
|
||||
func (c *Client) GlossaryDelete(ctx context.Context, params GlossaryDeleteParams) (*GlossaryMutationReport, error) {
|
||||
var out GlossaryMutationReport
|
||||
_, err := c.Call(ctx, "translation.glossary.delete", params, &out)
|
||||
return &out, err
|
||||
}
|
||||
|
||||
func (c *Client) LocalizedPublish(ctx context.Context, params LocalizedPublishParams) (json.RawMessage, error) {
|
||||
return c.rawData(ctx, "localized.publish", params)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user