east-and-west-magic / django-pgsns

our social networks website
MIT License
0 stars 1 forks source link

【design】ai-patcher #37

Open yao-eastside opened 3 months ago

yao-eastside commented 3 months ago

把'ai-patcher'里面已有的和没有的, 都迁徙到pgsns上面来,成为pgsns下面的一个app。

coding前,先想清楚要做什么,怎么做。 一切明朗以后,从开始coding。

Beracles commented 3 months ago

需要做的工作有:

  1. 新建app “aipatcher” 并配置路径
  2. 定义模型aipatch并在admin中注册,包含字段有:id、game、patch、creator、status,其中patch为jsonfield,包含command、result、desc三个key
  3. 实现aipatcher的功能:
    • 提供用户访问aipatcher功能界面的入口
    • 功能列表和信息展示页面:
    • 显示所有类型patch的页面入口
    • 展示用户提交的patch列表和状态信息
    • 设计简单的表单,供用户提交patch:用户提交后,数据保存至database
    • 供管理员使用的patch审核页面
    • 审核通过后,调用pgai,将对应patch添加到ai,并更新patch的状态
    • 提供批量操作功能
yao-eastside commented 3 months ago

fb4ai: feedback for AI

yao-eastside commented 3 months ago

I will discuss this offline with @Beracles

yao-eastside commented 3 months ago

Do not close yet.