{"id":20189882,"url":"https://github.com/alittlegreens/aop_login","last_synced_at":"2025-03-03T07:24:43.444Z","repository":{"id":242878078,"uuid":"198974897","full_name":"aLittleGreens/AOP_LOGIN","owner":"aLittleGreens","description":"使用AOP切面，完成集中式登录架构设计、埋点统计。","archived":false,"fork":false,"pushed_at":"2019-09-15T13:22:23.000Z","size":138,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T18:49:35.790Z","etag":null,"topics":["aop","aspectj"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aLittleGreens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-07-26T08:06:41.000Z","updated_at":"2019-09-15T13:22:25.000Z","dependencies_parsed_at":"2024-06-05T14:02:55.312Z","dependency_job_id":"bccae584-b305-4a7d-9cbe-2b884497d086","html_url":"https://github.com/aLittleGreens/AOP_LOGIN","commit_stats":null,"previous_names":["alittlegreens/aop_login"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aLittleGreens%2FAOP_LOGIN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aLittleGreens%2FAOP_LOGIN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aLittleGreens%2FAOP_LOGIN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aLittleGreens%2FAOP_LOGIN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aLittleGreens","download_url":"https://codeload.github.com/aLittleGreens/AOP_LOGIN/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241624722,"owners_count":19992934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aop","aspectj"],"created_at":"2024-11-14T03:39:27.231Z","updated_at":"2025-03-03T07:24:43.399Z","avatar_url":"https://github.com/aLittleGreens.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AOP_LOGIN\n使用AOP切面，完成集中式登录架构设计、埋点统计。\n\n## 使用场景\n### 1、告别繁琐的行为统计\n 通常会对用户的点击行为进行统计，耗时统计等等。采用传统的javac编译方式，会造成大量代码冗余，不利于维护，而且如果有300个埋点统计，那开发者的工作量比较大。而且无意义。使用AOP思想一个注解就可以搞定统计行为。\n```Kotlin\n    @ClickBehavior(\"我的优惠券\")\n ```\n### 2、用户在进入购物车、优惠券、个人中心前，都要判断是否登录，未登录则跳转到登录页面。\n通过一个注解搞定 ，AOP切面后，会在切入点判断是否登陆成功，成功后，跳转到指定页面，否则，跳转到登陆界面。用户不用理会这些无聊的操作。\n\n```Kotlin\n    @ClickBehavior(\"我的专区\")\n    @LoginCheck\n    fun area(view: View) {\n        Log.e(TAG, \"开始跳转到 -\u003e 我的专区 Activity\")\n        val intent = Intent(this, OtherActivity::class.java)\n        startActivity(intent)\n    }\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falittlegreens%2Faop_login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falittlegreens%2Faop_login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falittlegreens%2Faop_login/lists"}