func CleanCatalogPushFetch( db db.Connector, in *event.Event) (out clean.Catalog_push_fetch, err Errors) { out = clean.Catalog_push_fetch{ Api_Build: in.Api_build, Api_Version: in.Api, Api_env: in.ApiEnv(), App_id: in.App_id.Value, App_groups: in.AppGroups(db), Catalogs: in.Catalogs.GetArray(), Client_addr: in.Ipv4Ipv6(in.IP), Client_app_version: in.ApiAppVersion(), Client_user_agent: in.User_agent, Dealers: in.GetDealers(), Is_archive_user: in.Is_archive_user.Value, Is_dealer_admin: in.Is_Dealer_admin.Value, Push_type: in.Push_type, Query_string: in.Query_string, Server_addr: in.Ipv4Ipv6(in.Server_ip), Timestamp: in.Times.Timestamp(), Type: in.Type(), User_id: in.User.Id.Value, Uuid: in.User.Uuid.Value, } err = eventChecker(in, out) return out, err }
func CleanOfferList( db db.Connector, in *event.Event) (out clean.Offer_list, err Errors) { out = clean.Offer_list{ Api_env: in.ApiEnv(), App_id: in.App_id.Value, Client_addr: in.Ipv4Ipv6(in.IP), App_groups: in.AppGroups(db), Client_app_version: in.ApiAppVersion(), Client_user_agent: in.User_agent, Dealers: in.GetDealers(), Is_archive_user: in.Is_archive_user.Value, Is_dealer_admin: in.Is_Dealer_admin.Value, Is_user_defined_location: in.Location.GeoCoded(), Is_uuid_ephemeral: in.Is_uuid_ephemeral.Value, Query_string: in.Query_string, Limit: in.Limit, Offers: in.Offers.GetArray(), Offset: in.Offset, Request_geohash: in.Geohash(), Request_latitude: in.Latitude(), Request_longitude: in.Longitude(), Request_radius: in.Location.ReqRadius, Server_addr: in.Ipv4Ipv6(in.Server_ip), Stores: in.Stores.GetArray(), Timestamp: in.Times.Timestamp(), Type: in.Type(), User_id: in.User.Id.Value, Uuid: in.User.Uuid.Value, } err = eventChecker(in, out) return out, err }
func CleanCatalogPushSend( db db.Connector, in *event.Event) (out clean.Catalog_push_send, err Errors) { out = clean.Catalog_push_send{ Api_Build: in.Api_build, Api_Version: in.Api, Api_env: in.ApiEnv(), Catalogs: in.Catalogs.GetArray(), Dealers: in.GetDealers(), Endpoint_id: in.Endpoint_id.Value, Push_type: in.Push_type, Timestamp: in.Times.Timestamp(), Type: in.Type(), User_id: in.User.Id.Value, Uuid: in.User.Uuid.Value, } err = eventChecker(in, out) return out, err }