diff options
| author | ckonstanski <kostcarl@isu.edu> | 2026-05-10 21:22:32 -0600 |
|---|---|---|
| committer | ckonstanski <kostcarl@isu.edu> | 2026-05-10 21:22:32 -0600 |
| commit | a60fa48142fe205a4ac3802336da83dff1242c5e (patch) | |
| tree | da50a28c3abc1959724038b0bd80f48d3c2615a0 /lisp/sql | |
| parent | a90d9f82753b4269d449c0efc40a47e976b7b953 (diff) | |
generalized About Us for Lessons and Gigs
Diffstat (limited to 'lisp/sql')
| -rw-r--r-- | lisp/sql/about-us.lisp | 3 | ||||
| -rw-r--r-- | lisp/sql/general-pkg.lisp | 4 | ||||
| -rw-r--r-- | lisp/sql/generics.lisp | 5 |
3 files changed, 8 insertions, 4 deletions
diff --git a/lisp/sql/about-us.lisp b/lisp/sql/about-us.lisp index ea09ee8..423e413 100644 --- a/lisp/sql/about-us.lisp +++ b/lisp/sql/about-us.lisp @@ -7,6 +7,9 @@ ((id :initarg :id :initform nil :accessor id) + (category :initarg :category + :initform nil + :accessor category) (content :initarg :content :initform nil :accessor content) diff --git a/lisp/sql/general-pkg.lisp b/lisp/sql/general-pkg.lisp index 571bec6..b48ded5 100644 --- a/lisp/sql/general-pkg.lisp +++ b/lisp/sql/general-pkg.lisp @@ -7,8 +7,8 @@ () (:documentation "")) -(defmethod get-about-us ((general-pkg general-pkg)) - (get-record general-pkg (make-instance 'about-us))) +(defmethod get-about-us ((general-pkg general-pkg) category) + (get-record general-pkg (make-instance 'about-us :category category))) (defmethod get-testimonials ((general-pkg general-pkg)) (get-record general-pkg (make-instance 'testimonials))) diff --git a/lisp/sql/generics.lisp b/lisp/sql/generics.lisp index 48c50c7..fea632a 100644 --- a/lisp/sql/generics.lisp +++ b/lisp/sql/generics.lisp @@ -88,8 +88,9 @@ session.")) (:documentation "Creates a new user session and returns the sessionid.")) -(defgeneric get-about-us (record-pkg) - (:documentation "Gets the one and only general.about_us record.")) +(defgeneric get-about-us (record-pkg category) + (:documentation "Gets the one and only general.about_us record with the given +`category'.")) (defgeneric get-testimonials (record-pkg) (:documentation "Gets the one and only general.testimonials record.")) |
