refactor: reorganize modules and add Linux build tooling

This commit is contained in:
2026-08-09 12:41:08 +08:00
parent 86024fa81d
commit 5cc5fd92ed
1461 changed files with 4054 additions and 4724 deletions

View File

@@ -0,0 +1,32 @@
package staff
import (
"time"
"bsm/full/module/ec/mall/internal/models"
pb "bsm/full/module/ec/mall/pb"
)
func ref(data []*models.MallStaff) (list []*pb.StaffItem) {
if len(data) == 0 {
return
}
for _, in := range data {
row := pb.StaffItem{
Identity: in.Identity,
Name: in.Name,
Account: in.Account,
Password: "***",
Profile: in.Profile,
Phone: in.Phone,
Email: in.Email,
Avatar: in.Avatar,
Role: "staff",
CreatedAt: in.CreatedAt.Format(time.DateTime),
}
list = append(list, &row)
}
return
}