{"id":20812779,"url":"https://github.com/feast107/requestmapper","last_synced_at":"2026-02-05T23:32:01.904Z","repository":{"id":147887706,"uuid":"611585313","full_name":"feast107/RequestMapper","owner":"feast107","description":"Auto map model from request by attribute","archived":false,"fork":false,"pushed_at":"2023-05-14T07:18:21.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T00:01:48.615Z","etag":null,"topics":["attribute-based","automapper","http-requests","netstandard","objectmapper"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feast107.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-09T05:53:48.000Z","updated_at":"2023-03-20T15:33:11.000Z","dependencies_parsed_at":"2023-05-27T20:00:19.772Z","dependency_job_id":null,"html_url":"https://github.com/feast107/RequestMapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/feast107/RequestMapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feast107%2FRequestMapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feast107%2FRequestMapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feast107%2FRequestMapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feast107%2FRequestMapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feast107","download_url":"https://codeload.github.com/feast107/RequestMapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feast107%2FRequestMapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29138375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T23:14:48.546Z","status":"ssl_error","status_checked_at":"2026-02-05T23:14:35.724Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attribute-based","automapper","http-requests","netstandard","objectmapper"],"created_at":"2024-11-17T20:58:20.545Z","updated_at":"2026-02-05T23:32:01.883Z","avatar_url":"https://github.com/feast107.png","language":"C#","readme":"# RequestMapper\n通过注解自动映射到实例的类库，适用于请求结构复杂，传统的参数注解无法映射的情况\n\n## Effect\n![](./doc/Example.png)\n\n## Start\n+ 在需要映射的模型上添加注解，内置提供了一部分，他们在命名空间 `Feast.RequestMapper.Attribute` 下\n    \n    ```CSharp\n    [FromQuery]\n    public class Model \n    {\n        public string Id { get; set; }\n        public string? Name { get; init; }\n\n        [FromForm]\n        public IFormFile Logo { get; init; }\n        [FromForm]\n        public IReadOnlyList\u003cIFormFile\u003e Pictures { get; init; }\n    }\n    ```\n    \u003e 在 `class` 上添加的注解会自动应用到全部的 `property` ，在 `property` 上添加的注解会优先于 `class` 上的注解\n\n+ 如果需要使用自定义注解或者内置注解，可以通过注册\n  \n    ```CSharp\n    RequestMapper.RegisterAttribute\u003cYourAttribute\u003e(Registry.AsYourWish);\n    ```\n+ 通过请求的报文来生成\n\n    ```CSharp\n    var model = new Model();\n    var newModel = RequestMappper.Generate(this.Request);\n    model.Map(this.Request);\n    ```\n\n## Preview\n+ :construction: 映射处理系统（真的需要吗）","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeast107%2Frequestmapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeast107%2Frequestmapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeast107%2Frequestmapper/lists"}