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 dao
to generate data models; - Interacting with the database using
dao
callingGoFrame ORM
; - Writing
api
files and usinggf gen ctrl
to generate controllers; - The
Controller
layer calls theLogic
layer to complete business logic; - Interface parameter validation and
i18n
.