@Override
    public int create(final RuleDTO ruleDTO) {
        RuleDO ruleDO = RuleDO.buildRuleDO(ruleDTO);
        final int ruleCount = ruleMapper.insertSelective(ruleDO);
        addCondition(ruleDO, ruleDTO.getRuleConditions());
        if (ruleCount > 0) {
            ruleEventPublisher.onCreated(ruleDO, ruleDTO.getRuleConditions());
        }
        return ruleCount;
    }
create or update rule.

@param ruleDTO {@linkplain RuleDTO}
@return rows
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/RuleServiceImpl.java