type UserQuery struct {
PageQuery
Account *string `condition:"(username = ? OR email = ?)"`
//...
}
userQuery := UserQuery{Account: P("John")}
users, err := userDataAccess.Query(ctx, userQuery)
// SQL="SELECT id, name, score, memo, deleted FROM t_user
// WHERE (username = ? OR email = ?)" args="[John John]"