feat(sub2api): add host adapter client and tests

This commit is contained in:
phamnazage-jpg
2026-05-13 00:41:12 +08:00
parent a1d7007397
commit 70ec9d393b
8 changed files with 965 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package sub2api
import "context"
func (c *Client) CreateGroup(ctx context.Context, req CreateGroupRequest) (GroupRef, error) {
var ref GroupRef
if err := c.postJSON(ctx, "/api/v1/admin/groups", req, &ref); err != nil {
return GroupRef{}, err
}
return ref, nil
}