add admin names api
CI / changes (push) Successful in 1s
CI / docker-bff (push) Successful in 23s
CI / docker-product (push) Successful in 16s
CI / docker-admin (push) Successful in 3m30s

This commit is contained in:
2026-08-14 17:11:00 +08:00
parent 867cee46bb
commit 1fd6c5bb23
11 changed files with 225 additions and 62 deletions
+6
View File
@@ -84,3 +84,9 @@ type AdminOutInfo struct {
Email string `json:"email"`
Roles []string `json:"roles"`
}
type AdminNames struct {
Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT;comment:ID" json:"id"`
Name string `gorm:"column:name;type:varchar(30);comment:真实姓名;NOT NULL" json:"name"`
Phone string `gorm:"column:phone;type:char(12);comment:电话" json:"phone"`
}