package region_sync

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestSyncTypes_Structures(t *testing.T) {
	// 验证结构体是否正确定义
	req := SyncUserRequest{}
	assert.NotNil(t, req.Username)
	assert.NotNil(t, req.Email)
	assert.NotNil(t, req.PasswordHash)
	assert.NotNil(t, req.Quota)
	assert.NotNil(t, req.RemoteUserId)
	assert.NotNil(t, req.Group)

	resp := SyncUserResponse{}
	assert.NotNil(t, resp.Success)
	assert.NotNil(t, resp.Message)

	queryReq := QueryQuotaRequest{}
	assert.NotNil(t, queryReq.UserId)

	queryResp := QueryQuotaResponse{}
	assert.NotNil(t, queryResp.Success)

	batchRecord := BatchDeductRecord{}
	assert.NotNil(t, batchRecord.UserId)
	assert.NotNil(t, batchRecord.RequestId)
	assert.NotNil(t, batchRecord.Quota)

	deductResult := DeductResult{}
	assert.NotNil(t, deductResult.UserId)
	assert.NotNil(t, deductResult.Success)
}