1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-14 09:45:25 +08:00
parent 50fd54c6d9
commit 0e3269b97e
3 changed files with 19 additions and 10 deletions

View File

@@ -42,12 +42,13 @@ func (c *TitleController) Get(ctx context.Context, req *GetReq) (res *cool.BaseR
for _, v := range alltitile {
tt := TitleRes{
ID: v,
Name: titles[v].Name,
ID: v,
}
if titles[v].Remark != nil {
tt.Desc = *titles[v].Remark
info := titles[v]
if info.Remark != nil {
tt.Desc = *info.Remark
}
tt.Name = info.Name
ret = append(ret, tt)
}