-
Notifications
You must be signed in to change notification settings - Fork 12
/
SingleLanguageDescriptionDto.go
34 lines (29 loc) · 1.52 KB
/
SingleLanguageDescriptionDto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package aesolution
import (
"sync"
)
// SingleLanguageDescriptionDto 结构体
type SingleLanguageDescriptionDto struct {
// Support: en(English) ru(Russian) es(Spanish) fr(French) it(Italian) tr(Turkish) pt(Portuguese) de(German) nl(Dutch) in(Indonesian) ar(Arabic) ja(Japanese) ko(Korean) th(Thai) vi(Vietnamese) iw(Hebrew).Must contains the original locale.
Language string `json:"language,omitempty" xml:"language,omitempty"`
// mobile detail for this language, do not support "html" and "dynamic" type, for more information, please check the format here https://developers.aliexpress.com/en/doc.htm?docId=109534&docType=1
MobileDetail string `json:"mobile_detail,omitempty" xml:"mobile_detail,omitempty"`
// web detail for this language, please check the format here: https://developers.aliexpress.com/en/doc.htm?docId=109534&docType=1
WebDetail string `json:"web_detail,omitempty" xml:"web_detail,omitempty"`
}
var poolSingleLanguageDescriptionDto = sync.Pool{
New: func() any {
return new(SingleLanguageDescriptionDto)
},
}
// GetSingleLanguageDescriptionDto() 从对象池中获取SingleLanguageDescriptionDto
func GetSingleLanguageDescriptionDto() *SingleLanguageDescriptionDto {
return poolSingleLanguageDescriptionDto.Get().(*SingleLanguageDescriptionDto)
}
// ReleaseSingleLanguageDescriptionDto 释放SingleLanguageDescriptionDto
func ReleaseSingleLanguageDescriptionDto(v *SingleLanguageDescriptionDto) {
v.Language = ""
v.MobileDetail = ""
v.WebDetail = ""
poolSingleLanguageDescriptionDto.Put(v)
}