优化结构

This commit is contained in:
Yvan
2026-08-27 22:33:43 +08:00
parent 5052835fcb
commit e407d3ac10
86 changed files with 3151 additions and 726 deletions
@@ -0,0 +1,14 @@
package system
import (
"testing"
"kra/internal/service/dto"
)
func TestAnnouncementDomainUsesAuthenticatedUser(t *testing.T) {
value := announcementDO(&dto.AnnouncementRequest{Title: "notice"}, 42)
if value.UserID == nil || *value.UserID != 42 {
t.Fatalf("announcement user = %#v, want 42", value.UserID)
}
}