Giter Club home page Giter Club logo

Comments (4)

chenggx avatar chenggx commented on June 13, 2024 1

我知道怎么回事了。因为在使用 Lin-CMS 前端项目的时候 email 字段传递的是空值,所以是可以成功的。我在 postman 上测试没有传递 email 字段。

在这里顺便问一下,那是在后台判断 email 是否存在好呢?还是就保持这样,跟前台沟通保证传递该字段呢?

from lin-cms-tp5.

chenggx avatar chenggx commented on June 13, 2024

不太会用 pull-request 😂就先提 issue 把

from lin-cms-tp5.

ChenJinchuang avatar ChenJinchuang commented on June 13, 2024

我知道怎么回事了。因为在使用 Lin-CMS 前端项目的时候 email 字段传递的是空值,所以是可以成功的。我在 postman 上测试没有传递 email 字段。

在这里顺便问一下,那是在后台判断 email 是否存在好呢?还是就保持这样,跟前台沟通保证传递该字段呢?

问:那是在后台判断 email 是否存在好呢?还是就保持这样,跟前台沟通保证传递该字段呢?

答:更倾向沟通保证传递字段。但我想了想,人这东西最不靠谱了,后端还是要判断一下,为了复用,可以封装一个公共方法专门用来解析传递的字段,比如约定的可空字段没传,那就生成对应的字段并赋空值。

from lin-cms-tp5.

chenggx avatar chenggx commented on June 13, 2024

好的,多谢解答。那我就先把 issue 关闭了。

from lin-cms-tp5.

Related Issues (13)

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.