Initial commit

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 13:57:10 +08:00
co-authored by Claude Opus 5
commit 8679200f41
1897 changed files with 257900 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
package nakedchatorderdata
import (
"91porn-server/models/v/nakedchatordermod"
)
// FormatAppDataList 格式化app列表数据
func FormatAppDataList(origin []nakedchatordermod.NakedChatOrder) (res []*nakedchatordermod.NakedChatOrderInfo) {
res = make([]*nakedchatordermod.NakedChatOrderInfo, len(origin))
if len(origin) == 0 {
return
}
// 组装返回数据
for i, item := range origin {
res[i] = FormatAppData(item)
}
return
}
// FormatAppData 格式化app数据
func FormatAppData(item nakedchatordermod.NakedChatOrder) (res *nakedchatordermod.NakedChatOrderInfo) {
if item.ID.IsZero() {
return
}
// 组装返回数据
res = &nakedchatordermod.NakedChatOrderInfo{
ID: item.ID,
Nid: item.Nid,
Uid: item.Uid,
UserContact: item.UserContact,
Num: item.Num,
Price: item.Price,
Amount: item.Amount,
Remark: item.Remark,
Status: item.Status,
CreatedAt: item.CreatedAt,
UpdatedAt: item.UpdatedAt,
}
return
}