In this chapter, we completed a registration interface using GoFrame. We initially got in touch with GoFrame and learned the following:
- Installing database drivers;
- Using
gf gen daoto generate data models; - Interacting with the database using
daocallingGoFrame ORM; - Writing
apifiles and usinggf gen ctrlto generate controllers; - The
Controllerlayer calls theLogiclayer to complete business logic; - Interface parameter validation and
i18n.