Skip to content

Interface Rules

Introduction

You can customize the design rules for interfaces, such as how interfaces should be designed or how many interfaces should be controlled, etc. You can define and describe these in the new rules, and then select the rules you have defined when generating interface designs. If no custom rules are defined, the system will use the default rules to design the interfaces.

Custom Interface Rules

  1. Click "Rules" and select "Add Rule File".

  1. Select scope, enter rule name, select type, and input other field information.

Description:

  • Scope: Project rules are effective only for this project, with rule files stored in .feisuan/rule. Global rules apply to all projects.
  • Model Decision: The model autonomously decides whether to use this rule based on the rule description and requirements, without user selection. Note that rule effectiveness depends on the description content, so please describe clearly.
  • Always Effective: This rule will always take effect, meaning the rule will be applied every time a request is made to generate corresponding content, without user selection.
  • Effective for Specified Files: The rule will automatically retrieve files that meet the specified file matching patterns (such as .java, src/*/.ts) and apply the rule, without user selection.
  • Manual Import: Manually select the rule file to take effect from the dropdown list.

  1. Customize rule content, then save.

  1. Select the custom rule, then click "Start Generation" to generate according to the rule content. If the generation does not follow the rules, you need to adjust the rule description content and try again.

邮箱:chendw@feisuanyz.com 邮编:518000 地址:深圳市前海深港合作区前湾一路1号A栋201室