go-generalize / volcago

Model Generator for Firestore
MIT License
13 stars 1 forks source link

Nest した構造体に unique があると壊れる #261

Closed s-aska closed 2 months ago

s-aska commented 3 months ago

As-Is:

func (repo *taskRepository) GetByInner.Code(ctx context.Context, inner.Code string) (*Task, error) {
    return repo.getByXXX(ctx, "inner.code", inner.Code)
}

To-Be:

func (repo *taskRepository) GetByInnerCode(ctx context.Context, innerCode string) (*Task, error) {
    return repo.getByXXX(ctx, "inner.code", innerCode)
}