package request import ( "eta/eta_mini_crm_ht/services" ) type IndexListReq struct { PageSize int CurrentIndex int SortColumn string SortOrder string KeyWord string SourceName string Unit string Frequency string } type IndexDataListReq struct { PageSize int CurrentIndex int IndexCode string } type IndexesDeleteReq struct { KeyWord string SourceName string Unit string Frequency string DeleteAll bool UnDeleteList []string DeleteList []string } func (idr *IndexListReq) ToEtaRequest() (req services.IndexListRequest) { return services.IndexListRequest{ PageSize: idr.PageSize, CurrentIndex: idr.CurrentIndex, KeyWord: idr.KeyWord, SortColumn: idr.SortColumn, SortOrder: idr.SortOrder, SourceName: idr.SourceName, Frequency: idr.Frequency, SysSource: "ht_mini_crm", } } func (idr *IndexDataListReq) ToEtaDataRequest() (req services.IndexDataListRequest) { return services.IndexDataListRequest{ PageSize: idr.PageSize, CurrentIndex: idr.CurrentIndex, IndexCode: idr.IndexCode, } }