Code Monkey home page Code Monkey logo

Comments (8)

inkss avatar inkss commented on June 23, 2024 1

所有 API 查询得到的评论数据在后续版本中增加 content_marked 字段,为后端 Markdown 解析后的 content

👌 感谢

from artalkgo.

qwqcode avatar qwqcode commented on June 23, 2024

😅😅😅

from artalkgo.

inkss avatar inkss commented on June 23, 2024

查询类的能给url加个模糊查询吗?随机文章/随机页面的区别。

另外,查评论类的返回的评论内容,后端能做下解析不?现在是直接返回了原始MD内容啦

from artalkgo.

inkss avatar inkss commented on June 23, 2024

另外能不能加这么一个Api,根据网站名称,用户名,邮件查询当前用户是否存在未读通知,返回数量和通知内容。

拿来实现:访问网站时,欢迎用户并提醒用户查阅未读消息。

from artalkgo.

qwqcode avatar qwqcode commented on June 23, 2024

OK 😀

from artalkgo.

qwqcode avatar qwqcode commented on June 23, 2024

那个模糊查询以后再做了,我决定引入 Graphql,想怎么查怎么查

用户未读信息查询其实有现成的 API:

POST /api/user-get

  • name:用户名
  • email:邮箱
  • site_name:站点名

响应体:

{
  "success": true,
  "data": {
    "is_login": false,
    "unread": [
        {
            "id": 419,
            "user_id": 76,
            "comment_id": 233,
            "is_read": false,
            "is_emailed": true,
            "read_link": "https://artalk.js.org/?atk_comment=233&atk_notify_key=xxxxxxx"
      }
    ],
    "unread_count": 3,
    "user": {
      "id": 233,
      "name": "用户名",
      "email": "邮箱@gmail.com",
      "link": "链接",
      "badge_name": "管理员",
      "badge_color": "#FF6C00",
      "is_admin": true,
      "site_names": null,
      "site_names_raw": "",
      "receive_email": true
    }
}

from artalkgo.

qwqcode avatar qwqcode commented on June 23, 2024

所有 API 查询得到的评论数据在后续版本中增加 content_marked 字段,为后端 Markdown 解析后的 content

from artalkgo.

qwqcode avatar qwqcode commented on June 23, 2024

新版构建已发布 v2.1.9

from artalkgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.